blob: 03aa4dc9e9f200a8ebd615511eb75215af1ae731 (
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
|
{ lib, ... }:
{
name = "sabnzbd";
meta.maintainers = with lib.maintainers; [ jojosch ];
node.pkgsReadOnly = false;
nodes.machine =
{ lib, ... }:
{
services.sabnzbd = {
enable = true;
};
};
testScript = ''
machine.wait_for_unit("sabnzbd.service")
machine.wait_until_succeeds(
"curl --fail -L http://localhost:8080/"
)
_, out = machine.execute("grep SABCTools /var/lib/sabnzbd/logs/sabnzbd.log")
machine.log(out)
machine.fail("grep 'SABCTools disabled: no correct version found!' /var/lib/sabnzbd/logs/sabnzbd.log")
'';
}
|