summary refs log tree commit diff
path: root/nixos/tests/tomcat.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-11 17:15:56 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-11 17:16:44 +0200
commit13185280fee4111dc07f794e528fa3a73f421f3a (patch)
tree40f813ae0cf436e9bbe3a8364b046c6f93ffc2fc /nixos/tests/tomcat.nix
parent017408e048ae2419baf0adba424b51d85b063a30 (diff)
downloadnixpkgs-13185280fee4111dc07f794e528fa3a73f421f3a.tar
nixpkgs-13185280fee4111dc07f794e528fa3a73f421f3a.tar.gz
nixpkgs-13185280fee4111dc07f794e528fa3a73f421f3a.tar.bz2
nixpkgs-13185280fee4111dc07f794e528fa3a73f421f3a.tar.lz
nixpkgs-13185280fee4111dc07f794e528fa3a73f421f3a.tar.xz
nixpkgs-13185280fee4111dc07f794e528fa3a73f421f3a.tar.zst
nixpkgs-13185280fee4111dc07f794e528fa3a73f421f3a.zip
Fix tests broken due to the firewall being enabled by default
Diffstat (limited to 'nixos/tests/tomcat.nix')
-rw-r--r--nixos/tests/tomcat.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/nixos/tests/tomcat.nix b/nixos/tests/tomcat.nix
index 6bc88ec82fa..6ec21a72192 100644
--- a/nixos/tests/tomcat.nix
+++ b/nixos/tests/tomcat.nix
@@ -5,13 +5,12 @@
     server =
       { pkgs, config, ... }:
 
-      {
-        services.tomcat.enable = true;
+      { services.tomcat.enable = true;
         services.httpd.enable = true;
         services.httpd.adminAddr = "foo@bar.com";
-        services.httpd.extraSubservices = [
-          { serviceType = "tomcat-connector"; }
-        ];
+        services.httpd.extraSubservices =
+          [ { serviceType = "tomcat-connector"; } ];
+        networking.firewall.allowedTCPPorts = [ 80 ];
       };
 
     client = { };