nixosTests.haka: port to python (#76707)

nixosTests.haka: port to python
This commit is contained in:
Silvan Mosberger 2020-01-01 03:31:11 +01:00 committed by GitHub
commit fd7a019c70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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")
'';
})