mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-11-08 04:19:07 +00:00
fix unit tests for cel-go upgrade to v0.33.0
Signed-off-by: Ryan Richard <richardry@vmware.com>
This commit is contained in:
1 parent
03b2b2f98d
commit
903c29cf1f
1 file changed
+6
-6
@@ -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()
|
||||
| ...........^`,
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user