mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 01:16:55 +00:00
feat(gctx): move ready check to runtime Signed-off-by: Khaled Emara <khaled.emara@nirmata.com> Co-authored-by: shuting <shuting@nirmata.com>
19 lines
362 B
Go
19 lines
362 B
Go
package policy
|
|
|
|
import (
|
|
"testing"
|
|
|
|
kyverno "github.com/kyverno/kyverno/api/kyverno/v1"
|
|
|
|
fuzz "github.com/AdaLogics/go-fuzz-headers"
|
|
)
|
|
|
|
func FuzzValidatePolicy(f *testing.F) {
|
|
f.Fuzz(func(t *testing.T, data []byte) {
|
|
ff := fuzz.NewConsumer(data)
|
|
p := &kyverno.ClusterPolicy{}
|
|
ff.GenerateStruct(p)
|
|
|
|
Validate(p, nil, nil, true, "admin", "admin")
|
|
})
|
|
}
|