diff options
author | Tomas Vestelind <tomas.vestelind@gmail.com> | 2016-01-23 00:44:35 +0100 |
---|---|---|
committer | Tomas Vestelind <tomas.vestelind@gmail.com> | 2016-01-23 01:20:14 +0100 |
commit | 198c03bffe189dd06cabd23caede8c2e6b447614 (patch) | |
tree | 0c87217725a2479139cf0c3c99ce6c96c1421c7a /nixos | |
parent | 11d475af2994f26d9daf5a682402726d367c21e7 (diff) | |
download | nixlib-198c03bffe189dd06cabd23caede8c2e6b447614.tar nixlib-198c03bffe189dd06cabd23caede8c2e6b447614.tar.gz nixlib-198c03bffe189dd06cabd23caede8c2e6b447614.tar.bz2 nixlib-198c03bffe189dd06cabd23caede8c2e6b447614.tar.lz nixlib-198c03bffe189dd06cabd23caede8c2e6b447614.tar.xz nixlib-198c03bffe189dd06cabd23caede8c2e6b447614.tar.zst nixlib-198c03bffe189dd06cabd23caede8c2e6b447614.zip |
haka: very basic testing
Diffstat (limited to 'nixos')
-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 000000000000..40548f34690f --- /dev/null +++ b/nixos/tests/haka.nix @@ -0,0 +1,24 @@ +# This test runs haka and probes it with hakactl + +import ./make-test.nix ({ pkgs, ...} : { + name = "haka"; + meta = with pkgs.stdenv.lib.maintainers; { + maintainers = [ tvestelind ]; + }; + + nodes = { + haka = + { config, pkgs, ... }: + { + services.haka.enable = true; + }; + }; + + testScript = '' + startAll; + + $haka->waitForUnit("haka.service"); + $haka->succeed("hakactl status"); + $haka->succeed("hakactl stop"); + ''; +}) |