mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
Fix user fuzzer to avoid round trip flake
This commit is contained in:
parent
d64434c056
commit
2963f32c4a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user