mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
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 = ''
|
||||
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/")
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user