nixosTests.haka: port to python
This commit is contained in:
parent
1a5cdc8fc3
commit
ab63902d1f
|
@ -1,6 +1,6 @@
|
||||||
# This test runs haka and probes it with hakactl
|
# This test runs haka and probes it with hakactl
|
||||||
|
|
||||||
import ./make-test.nix ({ pkgs, ...} : {
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
||||||
name = "haka";
|
name = "haka";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
maintainers = [ tvestelind ];
|
maintainers = [ tvestelind ];
|
||||||
|
@ -15,10 +15,10 @@ import ./make-test.nix ({ pkgs, ...} : {
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
startAll;
|
start_all()
|
||||||
|
|
||||||
$haka->waitForUnit("haka.service");
|
haka.wait_for_unit("haka.service")
|
||||||
$haka->succeed("hakactl status");
|
haka.succeed("hakactl status")
|
||||||
$haka->succeed("hakactl stop");
|
haka.succeed("hakactl stop")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue