Fix tests broken due to the firewall being enabled by default
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ services.httpd.enable = true;
|
||||
services.httpd.adminAddr = "foo@example.org";
|
||||
networking.firewall.enable = false;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -33,7 +34,7 @@
|
||||
$walled->succeed("curl -v http://localhost/ >&2");
|
||||
|
||||
# Connections to the firewalled machine should fail.
|
||||
$attacker->fail("curl -v http://walled/ >&2");
|
||||
$attacker->fail("curl --fail --connect-timeout 2 http://walled/ >&2");
|
||||
$attacker->fail("ping -c 1 walled >&2");
|
||||
|
||||
# Outgoing connections/pings should still work.
|
||||
|
||||
Reference in New Issue
Block a user