Browse code

fix flaky configapi fuzzing for SA grant method

deads2k authored on 2016/05/20 05:05:51
Showing 1 changed files
... ...
@@ -203,6 +203,12 @@ func fuzzInternalObject(t *testing.T, forVersion unversioned.GroupVersion, item
203 203
 				obj.NodeSelectorLabelBlacklist = []string{"kubernetes.io/hostname"}
204 204
 			}
205 205
 		},
206
+		func(obj *configapi.GrantConfig, c fuzz.Continue) {
207
+			c.FuzzNoCustom(obj)
208
+			if len(obj.ServiceAccountMethod) == 0 {
209
+				obj.ServiceAccountMethod = "prompt"
210
+			}
211
+		},
206 212
 	)
207 213
 
208 214
 	f.Fuzz(item)