From f2ec610455f3756afebfcbd99c108abc86a5015d Mon Sep 17 00:00:00 2001 From: Cao Shufeng Date: Fri, 18 Aug 2017 16:28:30 +0800 Subject: [PATCH] [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 --- staging/src/k8s.io/apiserver/pkg/apis/audit/fuzzer/fuzzer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/staging/src/k8s.io/apiserver/pkg/apis/audit/fuzzer/fuzzer.go b/staging/src/k8s.io/apiserver/pkg/apis/audit/fuzzer/fuzzer.go index 24b06367350..1ec4464c5b3 100644 --- a/staging/src/k8s.io/apiserver/pkg/apis/audit/fuzzer/fuzzer.go +++ b/staging/src/k8s.io/apiserver/pkg/apis/audit/fuzzer/fuzzer.go @@ -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