diff options
author | Linus Heckemann <git@sphalerite.org> | 2020-09-25 14:27:29 +0200 |
---|---|---|
committer | Linus Heckemann <git@sphalerite.org> | 2020-09-25 14:27:29 +0200 |
commit | 0e3f6318312f8510287b15f15b42823b0695883c (patch) | |
tree | 7376ecdea48add9839624dd868c4d32ad261957a /nixos/tests/prometheus-exporters.nix | |
parent | f412df1f6bf9104e3444375946434fe3cd35de26 (diff) | |
download | nixpkgs-0e3f6318312f8510287b15f15b42823b0695883c.tar nixpkgs-0e3f6318312f8510287b15f15b42823b0695883c.tar.gz nixpkgs-0e3f6318312f8510287b15f15b42823b0695883c.tar.bz2 nixpkgs-0e3f6318312f8510287b15f15b42823b0695883c.tar.lz nixpkgs-0e3f6318312f8510287b15f15b42823b0695883c.tar.xz nixpkgs-0e3f6318312f8510287b15f15b42823b0695883c.tar.zst nixpkgs-0e3f6318312f8510287b15f15b42823b0695883c.zip |
prometheus postfix exporter test: check showq
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-rw-r--r-- | nixos/tests/prometheus-exporters.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index fdcc4072132..5b9fff5a4f2 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -466,10 +466,12 @@ let }; exporterTest = '' wait_for_unit("prometheus-postfix-exporter.service") + wait_for_file("/var/lib/postfix/queue/public/showq") wait_for_open_port(9154) succeed( "curl -sSf http://localhost:9154/metrics | grep -q 'postfix_smtpd_connects_total 0'" ) + succeed("curl -sSf http://localhost:9154/metrics | grep -q 'postfix_up{.*} 1'") ''; }; |