nixos/lidarr: Add test for lidarr to ensure startup

This commit is contained in:
Elis Hirwing 2019-01-24 23:09:42 +01:00
parent ddcb2c473d
commit eb356ef3f8
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
2 changed files with 19 additions and 0 deletions

@ -120,6 +120,7 @@ in
latestKernel.login = handleTest ./login.nix { latestKernel = true; };
ldap = handleTest ./ldap.nix {};
leaps = handleTest ./leaps.nix {};
lidarr = handleTest ./lidarr.nix {};
#lightdm = handleTest ./lightdm.nix {};
login = handleTest ./login.nix {};
#logstash = handleTest ./logstash.nix {};

18
nixos/tests/lidarr.nix Normal file

@ -0,0 +1,18 @@
import ./make-test.nix ({ lib, ... }:
with lib;
rec {
name = "lidarr";
meta.maintainers = with maintainers; [ etu ];
nodes.machine =
{ pkgs, ... }:
{ services.lidarr.enable = true; };
testScript = ''
$machine->waitForUnit('lidarr.service');
$machine->waitForOpenPort('8686');
$machine->succeed("curl --fail http://localhost:8686/");
'';
})