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:
Kristoffer Dalby
2026-03-25 15:10:47 +00:00
parent 3ca4ff8f3f
commit 9db5fb6393

View File

@@ -1762,7 +1762,7 @@ func TestPolicyBrokenConfigCommand(t *testing.T) {
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
// is none.