mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
prometheus postfix exporter test: check showq
This commit is contained in:
parent
f412df1f6b
commit
0e3f631831
|
@ -466,10 +466,12 @@ let
|
||||||
};
|
};
|
||||||
exporterTest = ''
|
exporterTest = ''
|
||||||
wait_for_unit("prometheus-postfix-exporter.service")
|
wait_for_unit("prometheus-postfix-exporter.service")
|
||||||
|
wait_for_file("/var/lib/postfix/queue/public/showq")
|
||||||
wait_for_open_port(9154)
|
wait_for_open_port(9154)
|
||||||
succeed(
|
succeed(
|
||||||
"curl -sSf http://localhost:9154/metrics | grep -q 'postfix_smtpd_connects_total 0'"
|
"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'")
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue