mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-08 10:04:25 +00:00
Fix tests
Signed-off-by: Joshua Snider <jsnider@mtu.edu>
This commit is contained in:
parent
9377f70840
commit
6699bfab8c
1 changed files with 3 additions and 3 deletions
|
@ -1066,10 +1066,10 @@ func Test_Eval_In_String_Set_Fail(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
// test passes if ALL of the values in "key" are NOT in "value" ("key" is not a subset of "value")
|
||||
// test passes if ONE of the values in "key" is NOT in "value" ("key" is not a subset of "value")
|
||||
func Test_Eval_NotIn_String_Set_Pass(t *testing.T) {
|
||||
ctx := context.NewContext()
|
||||
key := [2]string{"4.4.4.4", "5.5.5.5"}
|
||||
key := [3]string{"1.1.1.1", "4.4.4.4", "5.5.5.5"}
|
||||
keyInterface := make([]interface{}, len(key), len(key))
|
||||
for i := range key {
|
||||
keyInterface[i] = key[i]
|
||||
|
@ -1094,7 +1094,7 @@ func Test_Eval_NotIn_String_Set_Pass(t *testing.T) {
|
|||
// test passes if ALL of the values in "key" are in "value" ("key" is a subset of "value")
|
||||
func Test_Eval_NotIn_String_Set_Fail(t *testing.T) {
|
||||
ctx := context.NewContext()
|
||||
key := [2]string{"1.1.1.1", "4.4.4.4"}
|
||||
key := [2]string{"1.1.1.1", "2.2.2.2"}
|
||||
keyInterface := make([]interface{}, len(key), len(key))
|
||||
for i := range key {
|
||||
keyInterface[i] = key[i]
|
||||
|
|
Loading…
Add table
Reference in a new issue