From 2963f32c4aea1213ab83325106976719bcea3811 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Tue, 7 Mar 2017 17:41:01 -0500 Subject: [PATCH] Fix user fuzzer to avoid round trip flake --- pkg/api/testing/fuzzer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/api/testing/fuzzer.go b/pkg/api/testing/fuzzer.go index 539e034b858..5cfe3d1c764 100644 --- a/pkg/api/testing/fuzzer.go +++ b/pkg/api/testing/fuzzer.go @@ -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