Fix tests broken due to the firewall being enabled by default

This commit is contained in:
Eelco Dolstra
2014-04-11 17:16:44 +02:00
parent 017408e048
commit 13185280fe
16 changed files with 52 additions and 25 deletions
+2 -1
View File
@@ -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.