diff options
Diffstat (limited to 'nixos/tests/haka.nix')
-rw-r--r-- | nixos/tests/haka.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nixos/tests/haka.nix b/nixos/tests/haka.nix new file mode 100644 index 00000000000..dd65a6bcf11 --- /dev/null +++ b/nixos/tests/haka.nix @@ -0,0 +1,24 @@ +# This test runs haka and probes it with hakactl + +import ./make-test-python.nix ({ pkgs, ...} : { + name = "haka"; + meta = with pkgs.lib.maintainers; { + maintainers = [ tvestelind ]; + }; + + nodes = { + haka = + { ... }: + { + services.haka.enable = true; + }; + }; + + testScript = '' + start_all() + + haka.wait_for_unit("haka.service") + haka.succeed("hakactl status") + haka.succeed("hakactl stop") + ''; +}) |