summaryrefslogtreecommitdiffstats
path: root/nixos/tests/cadvisor.nix
diff options
context:
space:
mode:
authorScott Worley <scottworley@scottworley.com>2020-09-16 09:02:28 -0700
committerFrederik Rietdijk <fridh@fridh.nl>2020-10-25 11:01:31 +0100
commitecbd2a8bc15684e6157bef2e4ae97ea1d4ac2b03 (patch)
tree446d88ccf371089448b1715234716288dea7d0d5 /nixos/tests/cadvisor.nix
parenteff7338d982744cd43f0e94166da7ed68500d261 (diff)
nixos/tests/cadvisor: Use curl --fail
Diffstat (limited to 'nixos/tests/cadvisor.nix')
-rw-r--r--nixos/tests/cadvisor.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/cadvisor.nix b/nixos/tests/cadvisor.nix
index 60c04f147800..664aa3ad876a 100644
--- a/nixos/tests/cadvisor.nix
+++ b/nixos/tests/cadvisor.nix
@@ -19,16 +19,16 @@ import ./make-test-python.nix ({ pkgs, ... } : {
testScript = ''
start_all()
machine.wait_for_unit("cadvisor.service")
- machine.succeed("curl http://localhost:8080/containers/")
+ machine.succeed("curl -f http://localhost:8080/containers/")
influxdb.wait_for_unit("influxdb.service")
# create influxdb database
influxdb.succeed(
- 'curl -XPOST http://localhost:8086/query --data-urlencode "q=CREATE DATABASE root"'
+ 'curl -f -XPOST http://localhost:8086/query --data-urlencode "q=CREATE DATABASE root"'
)
influxdb.wait_for_unit("cadvisor.service")
- influxdb.succeed("curl http://localhost:8080/containers/")
+ influxdb.succeed("curl -f http://localhost:8080/containers/")
'';
})