summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorScott Worley <scottworley@scottworley.com>2020-09-16 10:01:10 -0700
committerFrederik Rietdijk <fridh@fridh.nl>2020-10-25 11:01:31 +0100
commitf99b6369b1fe48759e7c40fdf18bc5281f2dd24a (patch)
tree6cd3a2695bfd8e2a11b9fbdc2750a8f23ba6032b /nixos
parentc25ccf6b4b1269cb9e2694779dd4590495e68c57 (diff)
downloadnixpkgs-f99b6369b1fe48759e7c40fdf18bc5281f2dd24a.tar
nixpkgs-f99b6369b1fe48759e7c40fdf18bc5281f2dd24a.tar.gz
nixpkgs-f99b6369b1fe48759e7c40fdf18bc5281f2dd24a.tar.bz2
nixpkgs-f99b6369b1fe48759e7c40fdf18bc5281f2dd24a.tar.lz
nixpkgs-f99b6369b1fe48759e7c40fdf18bc5281f2dd24a.tar.xz
nixpkgs-f99b6369b1fe48759e7c40fdf18bc5281f2dd24a.tar.zst
nixpkgs-f99b6369b1fe48759e7c40fdf18bc5281f2dd24a.zip
nixos/tests/hadoop: Use curl --fail
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/hadoop/hdfs.nix4
-rw-r--r--nixos/tests/hadoop/yarn.nix4
2 files changed, 4 insertions, 4 deletions
diff --git a/nixos/tests/hadoop/hdfs.nix b/nixos/tests/hadoop/hdfs.nix
index 85aaab34b15..f1f98ed42eb 100644
--- a/nixos/tests/hadoop/hdfs.nix
+++ b/nixos/tests/hadoop/hdfs.nix
@@ -48,7 +48,7 @@ import ../make-test-python.nix ({...}: {
     datanode.wait_for_open_port(9866)
     datanode.wait_for_open_port(9867)
 
-    namenode.succeed("curl http://namenode:9870")
-    datanode.succeed("curl http://datanode:9864")
+    namenode.succeed("curl -f http://namenode:9870")
+    datanode.succeed("curl -f http://datanode:9864")
   '';
 })
diff --git a/nixos/tests/hadoop/yarn.nix b/nixos/tests/hadoop/yarn.nix
index 2264ecaff15..01077245d39 100644
--- a/nixos/tests/hadoop/yarn.nix
+++ b/nixos/tests/hadoop/yarn.nix
@@ -40,7 +40,7 @@ import ../make-test-python.nix ({...}: {
     nodemanager.wait_for_open_port(8042)
     nodemanager.wait_for_open_port(8041)
 
-    resourcemanager.succeed("curl http://localhost:8088")
-    nodemanager.succeed("curl http://localhost:8042")
+    resourcemanager.succeed("curl -f http://localhost:8088")
+    nodemanager.succeed("curl -f http://localhost:8042")
   '';
 })