diff options
author | WilliButz <wbutz@cyberfnord.de> | 2019-07-17 14:17:58 +0200 |
---|---|---|
committer | WilliButz <wbutz@cyberfnord.de> | 2019-07-22 16:41:09 +0200 |
commit | 01ee2ee2ba5b1d4763c77a6ed46523c17df97167 (patch) | |
tree | 2cb47653c0c37df846b2b6908b0a563b2cb15dcb /nixos/tests/prometheus-exporters.nix | |
parent | 95be462d07043feb710f587eaf09a006d5fb438d (diff) | |
download | nixpkgs-01ee2ee2ba5b1d4763c77a6ed46523c17df97167.tar nixpkgs-01ee2ee2ba5b1d4763c77a6ed46523c17df97167.tar.gz nixpkgs-01ee2ee2ba5b1d4763c77a6ed46523c17df97167.tar.bz2 nixpkgs-01ee2ee2ba5b1d4763c77a6ed46523c17df97167.tar.lz nixpkgs-01ee2ee2ba5b1d4763c77a6ed46523c17df97167.tar.xz nixpkgs-01ee2ee2ba5b1d4763c77a6ed46523c17df97167.tar.zst nixpkgs-01ee2ee2ba5b1d4763c77a6ed46523c17df97167.zip |
nixos/test: fix prometheus-{bind,varnish}-exporter tests
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-rw-r--r-- | nixos/tests/prometheus-exporters.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index 9a85501d15f..fb01b501821 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -73,7 +73,7 @@ let exporterTest = '' waitForUnit("prometheus-bind-exporter.service"); waitForOpenPort(9119); - succeed("curl -sSf http://localhost:9119/metrics" | grep -q 'bind_query_recursions_total 0'); + succeed("curl -sSf http://localhost:9119/metrics | grep -q 'bind_query_recursions_total 0'"); ''; }; @@ -311,6 +311,7 @@ let }; exporterTest = '' waitForUnit("prometheus-varnish-exporter.service"); + waitForOpenPort(6081); waitForOpenPort(9131); succeed("curl -sSf http://localhost:9131/metrics | grep -q 'varnish_up 1'"); ''; |