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
1 changed files with 5 additions and 5 deletions

View File

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