[advanced audit api] fuzz Event with random value

This is an error import by me:
https://github.com/kubernetes/kubernetes/pull/49115

We need to fuzz other parts of Event with random value, otherwise
this round trip test will not make too much sense.
@sttts @ericchiang

Kubernetes-commit: f2ec610455f3756afebfcbd99c108abc86a5015d
This commit is contained in:
Cao Shufeng 2017-08-18 16:28:30 +08:00 committed by Kubernetes Publisher
parent 998e4f134a
commit d7bd79fee1
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import (
func Funcs(codecs runtimeserializer.CodecFactory) []interface{} {
return []interface{}{
func(e *audit.Event, c fuzz.Continue) {
c.FuzzNoCustom(e)
switch c.RandBool() {
case true:
e.RequestObject = nil