Fix user fuzzer to avoid round trip flake

parent d64434c0
...@@ -686,6 +686,10 @@ func rbacFuncs(t apitesting.TestingCommon) []interface{} { ...@@ -686,6 +686,10 @@ func rbacFuncs(t apitesting.TestingCommon) []interface{} {
r.Kind = rbac.UserKind r.Kind = rbac.UserKind
r.APIGroup = rbac.GroupName r.APIGroup = rbac.GroupName
c.FuzzNoCustom(&r.Name) 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: case 2:
r.Kind = rbac.GroupKind r.Kind = rbac.GroupKind
r.APIGroup = rbac.GroupName r.APIGroup = rbac.GroupName
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment