summary refs log tree commit diff
path: root/nixos/tests/haproxy.nix
diff options
context:
space:
mode:
authorScott Worley <scottworley@scottworley.com>2020-09-15 15:38:02 -0700
committerFrederik Rietdijk <fridh@fridh.nl>2020-10-25 11:01:30 +0100
commit5e6dfb17f91b2eb5374bffc4d0c28bcc9645e605 (patch)
tree7abaecdaa7a993cd78404db82152518f075b494f /nixos/tests/haproxy.nix
parentd2eec4bb1158fcfd820e2d9c64a0123330d51012 (diff)
downloadnixpkgs-5e6dfb17f91b2eb5374bffc4d0c28bcc9645e605.tar
nixpkgs-5e6dfb17f91b2eb5374bffc4d0c28bcc9645e605.tar.gz
nixpkgs-5e6dfb17f91b2eb5374bffc4d0c28bcc9645e605.tar.bz2
nixpkgs-5e6dfb17f91b2eb5374bffc4d0c28bcc9645e605.tar.lz
nixpkgs-5e6dfb17f91b2eb5374bffc4d0c28bcc9645e605.tar.xz
nixpkgs-5e6dfb17f91b2eb5374bffc4d0c28bcc9645e605.tar.zst
nixpkgs-5e6dfb17f91b2eb5374bffc4d0c28bcc9645e605.zip
nixos/tests/haproxy: Use curl --fail
Diffstat (limited to 'nixos/tests/haproxy.nix')
-rw-r--r--nixos/tests/haproxy.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/haproxy.nix b/nixos/tests/haproxy.nix
index ffb77c052a2..2c3878131b6 100644
--- a/nixos/tests/haproxy.nix
+++ b/nixos/tests/haproxy.nix
@@ -39,9 +39,9 @@ import ./make-test-python.nix ({ pkgs, ...}: {
     machine.wait_for_unit("multi-user.target")
     machine.wait_for_unit("haproxy.service")
     machine.wait_for_unit("httpd.service")
-    assert "We are all good!" in machine.succeed("curl -k http://localhost:80/index.txt")
+    assert "We are all good!" in machine.succeed("curl -fk http://localhost:80/index.txt")
     assert "haproxy_process_pool_allocated_bytes" in machine.succeed(
-        "curl -k http://localhost:80/metrics"
+        "curl -fk http://localhost:80/metrics"
     )
 
     with subtest("reload"):
@@ -49,7 +49,7 @@ import ./make-test-python.nix ({ pkgs, ...}: {
         # wait some time to ensure the following request hits the reloaded haproxy
         machine.sleep(5)
         assert "We are all good!" in machine.succeed(
-            "curl -k http://localhost:80/index.txt"
+            "curl -fk http://localhost:80/index.txt"
         )
   '';
 })