tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
haka: very basic testing
Tomas Vestelind
10 years ago
198c03bf
11d475af
+24
1 changed file
expand all
collapse all
unified
split
nixos
tests
haka.nix
+24
nixos/tests/haka.nix
···
1
1
+
# This test runs haka and probes it with hakactl
2
2
+
3
3
+
import ./make-test.nix ({ pkgs, ...} : {
4
4
+
name = "haka";
5
5
+
meta = with pkgs.stdenv.lib.maintainers; {
6
6
+
maintainers = [ tvestelind ];
7
7
+
};
8
8
+
9
9
+
nodes = {
10
10
+
haka =
11
11
+
{ config, pkgs, ... }:
12
12
+
{
13
13
+
services.haka.enable = true;
14
14
+
};
15
15
+
};
16
16
+
17
17
+
testScript = ''
18
18
+
startAll;
19
19
+
20
20
+
$haka->waitForUnit("haka.service");
21
21
+
$haka->succeed("hakactl status");
22
22
+
$haka->succeed("hakactl stop");
23
23
+
'';
24
24
+
})