nixosTests.haka: port to python

This commit is contained in:
Oleksii Filonenko 2019-12-30 17:57:00 +02:00
parent 1a5cdc8fc3
commit ab63902d1f
No known key found for this signature in database
GPG key ID: F3510FE5691629A1

View file

@ -1,6 +1,6 @@
# This test runs haka and probes it with hakactl
import ./make-test.nix ({ pkgs, ...} : {
import ./make-test-python.nix ({ pkgs, ...} : {
name = "haka";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ tvestelind ];
@ -15,10 +15,10 @@ import ./make-test.nix ({ pkgs, ...} : {
};
testScript = ''
startAll;
start_all()
$haka->waitForUnit("haka.service");
$haka->succeed("hakactl status");
$haka->succeed("hakactl stop");
haka.wait_for_unit("haka.service")
haka.succeed("hakactl status")
haka.succeed("hakactl stop")
'';
})