mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-24 01:28:49 +02: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,
|
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user