fix unit tests for cel-go upgrade to v0.33.0

Signed-off-by: Ryan Richard <richardry@vmware.com>
This commit is contained in:
Ryan Richard committed 2026-10-27 11:08:53 -07:00
1 parent 03b2b2f98d
commit 903c29cf1f
1 file changed
+6 -6
+6 -6
View File
@@ -668,10 +668,10 @@ func TestTransformer(t *testing.T) {
&UsernameTransformation{Expression: `foobar.junk()`},
},
wantCompileErr: here.Doc(`
CEL expression compile error: ERROR: <input>:1:1: undeclared reference to 'foobar' (in container '')
CEL expression compile error: ERROR: <input>:1:1: undeclared reference to 'foobar'
| foobar.junk()
| ^
ERROR: <input>:1:12: undeclared reference to 'junk' (in container '')
ERROR: <input>:1:12: undeclared reference to 'junk'
| foobar.junk()
| ...........^`,
),
@@ -682,10 +682,10 @@ func TestTransformer(t *testing.T) {
&GroupsTransformation{Expression: `foobar.junk()`},
},
wantCompileErr: here.Doc(`
CEL expression compile error: ERROR: <input>:1:1: undeclared reference to 'foobar' (in container '')
CEL expression compile error: ERROR: <input>:1:1: undeclared reference to 'foobar'
| foobar.junk()
| ^
ERROR: <input>:1:12: undeclared reference to 'junk' (in container '')
ERROR: <input>:1:12: undeclared reference to 'junk'
| foobar.junk()
| ...........^`,
),
@@ -696,10 +696,10 @@ func TestTransformer(t *testing.T) {
&AllowAuthenticationPolicy{Expression: `foobar.junk()`},
},
wantCompileErr: here.Doc(`
CEL expression compile error: ERROR: <input>:1:1: undeclared reference to 'foobar' (in container '')
CEL expression compile error: ERROR: <input>:1:1: undeclared reference to 'foobar'
| foobar.junk()
| ^
ERROR: <input>:1:12: undeclared reference to 'junk' (in container '')
ERROR: <input>:1:12: undeclared reference to 'junk'
| foobar.junk()
| ...........^`,
),