nixos/telegraf: port test to python
This commit is contained in:
parent
8060e76037
commit
c0c04737ed
@ -1,4 +1,4 @@
|
|||||||
import ./make-test.nix ({ pkgs, ...} : {
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
||||||
name = "telegraf";
|
name = "telegraf";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
maintainers = [ mic92 ];
|
maintainers = [ mic92 ];
|
||||||
@ -22,9 +22,9 @@ import ./make-test.nix ({ pkgs, ...} : {
|
|||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
startAll;
|
start_all()
|
||||||
|
|
||||||
$machine->waitForUnit("telegraf.service");
|
machine.wait_for_unit("telegraf.service")
|
||||||
$machine->waitUntilSucceeds("grep -q example /tmp/metrics.out");
|
machine.wait_until_succeeds("grep -q example /tmp/metrics.out")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user