nixos/tests/cadvisor: Use curl --fail
This commit is contained in:
parent
eff7338d98
commit
ecbd2a8bc1
|
@ -19,16 +19,16 @@ import ./make-test-python.nix ({ pkgs, ... } : {
|
||||||
testScript = ''
|
testScript = ''
|
||||||
start_all()
|
start_all()
|
||||||
machine.wait_for_unit("cadvisor.service")
|
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")
|
influxdb.wait_for_unit("influxdb.service")
|
||||||
|
|
||||||
# create influxdb database
|
# create influxdb database
|
||||||
influxdb.succeed(
|
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.wait_for_unit("cadvisor.service")
|
||||||
influxdb.succeed("curl http://localhost:8080/containers/")
|
influxdb.succeed("curl -f http://localhost:8080/containers/")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue