policy: reject unsupported fields (#2764)
This commit is contained in:
parent
1b1c989268
commit
2938d03878
10 changed files with 1177 additions and 133 deletions
|
|
@ -1885,7 +1885,7 @@ func TestPolicyBrokenConfigCommand(t *testing.T) {
|
|||
policyFilePath,
|
||||
},
|
||||
)
|
||||
assert.ErrorContains(t, err, "compiling filter rules: invalid action")
|
||||
assert.ErrorContains(t, err, `invalid action "unknown-action"`)
|
||||
|
||||
// The new policy was invalid, the old one should still be in place, which
|
||||
// is none.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue