mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
fix test
This commit is contained in:
parent
fa53519e2a
commit
786cbf5522
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ import (
|
|||
"encoding/json"
|
||||
"testing"
|
||||
|
||||
kubepolicy "github.com/nirmata/kyverno/pkg/api/kyverno/v1alpha1"
|
||||
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1alpha1"
|
||||
"gotest.tools/assert"
|
||||
)
|
||||
|
||||
|
@ -1566,7 +1566,7 @@ func TestValidate_ServiceTest(t *testing.T) {
|
|||
}
|
||||
`)
|
||||
|
||||
var policy kubepolicy.Policy
|
||||
var policy kyverno.ClusterPolicy
|
||||
json.Unmarshal(rawPolicy, &policy)
|
||||
|
||||
resourceUnstructured, err := ConvertToUnstructured(rawResource)
|
||||
|
@ -1663,7 +1663,7 @@ func TestValidate_MapHasFloats(t *testing.T) {
|
|||
}
|
||||
`)
|
||||
|
||||
var policy kubepolicy.Policy
|
||||
var policy kyverno.ClusterPolicy
|
||||
json.Unmarshal(rawPolicy, &policy)
|
||||
|
||||
resourceUnstructured, err := ConvertToUnstructured(rawResource)
|
||||
|
|
Loading…
Reference in a new issue