nixos/radarr: Add test for radarr to ensure startup
This commit is contained in:
parent
8be2345baf
commit
ddcb2c473d
2 changed files with 19 additions and 0 deletions
|
@ -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
18
nixos/tests/radarr.nix
Normal 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/");
|
||||
'';
|
||||
})
|
Loading…
Reference in a new issue