mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-07 21:47:46 +09:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user