My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/nixos/tests/haka.nix

24 lines
450 B

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