diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-11 17:15:56 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-11 17:16:44 +0200 |
commit | 13185280fee4111dc07f794e528fa3a73f421f3a (patch) | |
tree | 40f813ae0cf436e9bbe3a8364b046c6f93ffc2fc /nixos/tests/containers.nix | |
parent | 017408e048ae2419baf0adba424b51d85b063a30 (diff) | |
download | nixlib-13185280fee4111dc07f794e528fa3a73f421f3a.tar nixlib-13185280fee4111dc07f794e528fa3a73f421f3a.tar.gz nixlib-13185280fee4111dc07f794e528fa3a73f421f3a.tar.bz2 nixlib-13185280fee4111dc07f794e528fa3a73f421f3a.tar.lz nixlib-13185280fee4111dc07f794e528fa3a73f421f3a.tar.xz nixlib-13185280fee4111dc07f794e528fa3a73f421f3a.tar.zst nixlib-13185280fee4111dc07f794e528fa3a73f421f3a.zip |
Fix tests broken due to the firewall being enabled by default
Diffstat (limited to 'nixos/tests/containers.nix')
-rw-r--r-- | nixos/tests/containers.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/tests/containers.nix b/nixos/tests/containers.nix index d72e80b71aff..06b793ed7ac1 100644 --- a/nixos/tests/containers.nix +++ b/nixos/tests/containers.nix @@ -17,6 +17,8 @@ config = { services.httpd.enable = true; services.httpd.adminAddr = "foo@example.org"; + networking.firewall.allowedTCPPorts = [ 80 ]; + networking.firewall.allowPing = true; }; }; @@ -65,7 +67,7 @@ $machine->succeed("nixos-container start $id1"); # Execute commands via the root shell. - $machine->succeed("echo uname | nixos-container root-shell $id1") =~ /Linux/; + $machine->succeed("nixos-container run $id1 -- uname") =~ /Linux/; $machine->succeed("nixos-container set-root-password $id1 foobar"); # Destroy the containers. |