From 9db5fb6393a0f4b08f3a253d728592e1699bf3a8 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Wed, 25 Mar 2026 15:10:47 +0000 Subject: [PATCH] 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 --- integration/cli_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/cli_test.go b/integration/cli_test.go index bb4bf6e9..49ff2a0a 100644 --- a/integration/cli_test.go +++ b/integration/cli_test.go @@ -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.