mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-17 16:36:02 +00:00
integration/acl: fix TestACLPolicyPropagationOverTime infrastructure
Add embedded DERP server, TLS, and netfilter=off to match the infrastructure configuration used by all other ACL integration tests. Without these options, the test fails intermittently because traffic routes through external DERP relays and iptables initialization fails in Docker containers. Updates #3139
This commit is contained in:
parent
2058343ad6
commit
ebc57d9a38
1 changed files with 4 additions and 3 deletions
|
|
@ -1911,14 +1911,15 @@ func TestACLPolicyPropagationOverTime(t *testing.T) {
|
|||
|
||||
err = scenario.CreateHeadscaleEnv(
|
||||
[]tsic.Option{
|
||||
// Install iptables to enable packet filtering for ACL tests.
|
||||
// Packet filters are essential for testing autogroup:self and other ACL policies.
|
||||
tsic.WithPackages("curl", "iptables", "ip6tables"),
|
||||
tsic.WithNetfilter("off"),
|
||||
tsic.WithPackages("curl"),
|
||||
tsic.WithWebserver(80),
|
||||
tsic.WithDockerWorkdir("/"),
|
||||
},
|
||||
hsic.WithTestName("aclpropagation"),
|
||||
hsic.WithPolicyMode(types.PolicyModeDB),
|
||||
hsic.WithEmbeddedDERPServerOnly(),
|
||||
hsic.WithTLS(),
|
||||
)
|
||||
require.NoError(t, err)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue