nodeidentifier: require nodes to have wellformed usernames

This commit is contained in:
Mike Danese
2017-06-01 14:39:17 -07:00
committed by Jordan Liggitt
parent 5404948e7b
commit 73e47f652b
2 changed files with 14 additions and 11 deletions

View File

@@ -45,7 +45,7 @@ func TestDefaultNodeIdentifier_NodeIdentity(t *testing.T) {
name: "node group without username",
user: &user.DefaultInfo{Name: "foo", Groups: []string{"system:nodes"}},
expectNodeName: "",
expectIsNode: true,
expectIsNode: false,
},
{
name: "node group and username",