blob: 7fe68abbbd52a9f500c2c68972224ef9e863e14a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{ runTest }:
{
default = runTest (
{ lib, ... }:
{
name = "Shoko";
nodes.machine = {
services.shoko.enable = true;
};
testScript = ''
machine.wait_for_unit("shoko.service")
machine.wait_for_open_port(8111)
machine.succeed("curl --fail http://localhost:8111")
'';
meta.maintainers = with lib.maintainers; [ nanoyaki ];
}
);
withPlugins = runTest (
{ pkgs, lib, ... }:
{
name = "Shoko with plugins";
nodes.machine = {
services.shoko = {
enable = true;
plugins = [ pkgs.luarenamer ];
};
};
testScript = ''
machine.wait_for_unit("shoko.service")
machine.wait_for_open_port(8111)
machine.succeed("curl --fail http://localhost:8111")
'';
meta.maintainers = with lib.maintainers; [ nanoyaki ];
}
);
}
|