mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
* refactor: openapi package * kubectl validate * rm * fix * fix * go mod * fix vscode --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
19 lines
353 B
Go
19 lines
353 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")
|
|
})
|
|
}
|