nixos/tests/prometheus-exporters.smartctl: update test script
We can't actually get metrics for a virtual disk drive so the exporter fails to start with 0.9.x. Instead let's just make sure it said that /dev/vda was unavailable.
This commit is contained in:
parent
fdcc9e8202
commit
c7fbae1289
1 changed files with 1 additions and 6 deletions
|
@ -1086,13 +1086,8 @@ let
|
|||
];
|
||||
};
|
||||
exporterTest = ''
|
||||
wait_for_unit("prometheus-smartctl-exporter.service")
|
||||
wait_for_open_port(9633)
|
||||
wait_until_succeeds(
|
||||
"curl -sSf 'localhost:9633/metrics'"
|
||||
)
|
||||
wait_until_succeeds(
|
||||
'journalctl -eu prometheus-smartctl-exporter.service -o cat | grep "/dev/vda: Unable to detect device type"'
|
||||
'journalctl -eu prometheus-smartctl-exporter.service -o cat | grep "Device unavailable"'
|
||||
)
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue