nixos/tests/hadoop: Use curl --fail
commitf99b6369b1fe48759e7c40fdf18bc5281f2dd24a
authorScott Worley <scottworley@scottworley.com>
dateWed 16 Sep 2020, 10:01 (6 years ago)
parentc25ccf6
nixos/tests/hadoop/hdfs.nix+2−2
@@ -48,7 +48,7 @@ import ../make-test-python.nix ({...}: {
4848 datanode.wait_for_open_port(9866)
4949 datanode.wait_for_open_port(9867)
5050
51− namenode.succeed("curl http://namenode:9870")
52− datanode.succeed("curl http://datanode:9864")
51+ namenode.succeed("curl -f http://namenode:9870")
52+ datanode.succeed("curl -f http://datanode:9864")
5353 '';
5454})
nixos/tests/hadoop/yarn.nix+2−2
@@ -40,7 +40,7 @@ import ../make-test-python.nix ({...}: {
4040 nodemanager.wait_for_open_port(8042)
4141 nodemanager.wait_for_open_port(8041)
4242
43− resourcemanager.succeed("curl http://localhost:8088")
44− nodemanager.succeed("curl http://localhost:8042")
43+ resourcemanager.succeed("curl -f http://localhost:8088")
44+ nodemanager.succeed("curl -f http://localhost:8042")
4545 '';
4646})