summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-02-06 20:32:39 +0100
committerRobin Gloster <mail@glob.in>2016-02-06 20:32:39 +0100
commitf7aa92177355dc94d7e554cb6b089eb81cb320fa (patch)
tree5c545f283a302b8801aa014fdf8ea70487c09a49 /nixos/tests
parent415e1db505405ae4584d986f53e127dd0eb8b836 (diff)
parentde2d609317b813096e00d00ab93da836f07947a5 (diff)
downloadnixpkgs-f7aa92177355dc94d7e554cb6b089eb81cb320fa.tar
nixpkgs-f7aa92177355dc94d7e554cb6b089eb81cb320fa.tar.gz
nixpkgs-f7aa92177355dc94d7e554cb6b089eb81cb320fa.tar.bz2
nixpkgs-f7aa92177355dc94d7e554cb6b089eb81cb320fa.tar.lz
nixpkgs-f7aa92177355dc94d7e554cb6b089eb81cb320fa.tar.xz
nixpkgs-f7aa92177355dc94d7e554cb6b089eb81cb320fa.tar.zst
nixpkgs-f7aa92177355dc94d7e554cb6b089eb81cb320fa.zip
Merge pull request #12560 from tvestelind/haka
Haka: new package
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/haka.nix24
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..40548f34690
--- /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");
+  '';
+})