Skip to content

Commit

Permalink
Merge branch 'UD-1369' of github.com:undistro/cel-playground into UD-…
Browse files Browse the repository at this point in the history
…1369
  • Loading branch information
joaovictor3g committed Apr 30, 2024
2 parents 408917f + 3a98516 commit bd80c04
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions k8s/validatingadmissionpolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,13 @@ func TestValidationEval(t *testing.T) {
Value: "default",
Cost: uint64ptr(6),
}, {
Name: "containers",
Error: strptr("unexpected error evaluating expression containers: no such key: spc"),
Name: "containers",
IsError: true,
Error: strptr("unexpected error evaluating expression containers: no such key: spc"),
}},
Validations: []*k8s.EvalResult{{
Error: strptr("unexpected error evaluating expression 'variables.foo == 'default' && variables.containers.all(c, c.image.startsWith(\"test\"))', caused by nested exception: 'no such key: spc'"),
IsError: true,
Error: strptr("unexpected error evaluating expression 'variables.foo == 'default' && variables.containers.all(c, c.image.startsWith(\"test\"))', caused by nested exception: 'no such key: spc'"),
}},
AuditAnnotations: []*k8s.EvalResult{{
Name: strptr("foo-label"),
Expand Down

0 comments on commit bd80c04

Please sign in to comment.