integration: fix error message assertion for invalid ACL action
Action.UnmarshalJSON produces the format 'action="unknown-action" is not supported: invalid ACL action', not the reversed format the test expected. Updates #2180
This commit is contained in:
parent
3ca4ff8f3f
commit
9db5fb6393
1 changed files with 1 additions and 1 deletions
|
|
@ -1762,7 +1762,7 @@ func TestPolicyBrokenConfigCommand(t *testing.T) {
|
||||||
policyFilePath,
|
policyFilePath,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
require.ErrorContains(t, err, `invalid ACL action: "unknown-action"`)
|
require.ErrorContains(t, err, `action="unknown-action" is not supported: invalid ACL action`)
|
||||||
|
|
||||||
// The new policy was invalid, the old one should still be in place, which
|
// The new policy was invalid, the old one should still be in place, which
|
||||||
// is none.
|
// is none.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue