Merge pull request #42678 from liggitt/user-fuzzer

Automatic merge from submit-queue

Fix user fuzzer to avoid round trip flake

Fixes #42651
This commit is contained in:
Kubernetes Submit Queue 2017-03-08 10:02:32 -08:00 committed by GitHub
commit c48b2cab0f

View File

@ -686,6 +686,10 @@ func rbacFuncs(t apitesting.TestingCommon) []interface{} {
r.Kind = rbac.UserKind
r.APIGroup = rbac.GroupName
c.FuzzNoCustom(&r.Name)
// user "*" won't round trip because we convert it to the system:authenticated group. try again.
for r.Name == "*" {
c.FuzzNoCustom(&r.Name)
}
case 2:
r.Kind = rbac.GroupKind
r.APIGroup = rbac.GroupName