Fix user fuzzer to avoid round trip flake

This commit is contained in:
Jordan Liggitt 2017-03-07 17:41:01 -05:00
parent d64434c056
commit 2963f32c4a
No known key found for this signature in database
GPG Key ID: 24E7ADF9A3B42012

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