nixos/radarr: Add test for radarr to ensure startup

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

View file

@ -178,6 +178,7 @@ in
quagga = handleTest ./quagga.nix {};
quake3 = handleTest ./quake3.nix {};
rabbitmq = handleTest ./rabbitmq.nix {};
radarr = handleTest ./radarr.nix {};
radicale = handleTest ./radicale.nix {};
redmine = handleTest ./redmine.nix {};
roundcube = handleTest ./roundcube.nix {};

18
nixos/tests/radarr.nix Normal file
View file

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