nixos/sonarr: Add test for sonarr to ensure startup
This commit is contained in:
@@ -194,6 +194,7 @@ in
|
|||||||
smokeping = handleTest ./smokeping.nix {};
|
smokeping = handleTest ./smokeping.nix {};
|
||||||
snapper = handleTest ./snapper.nix {};
|
snapper = handleTest ./snapper.nix {};
|
||||||
solr = handleTest ./solr.nix {};
|
solr = handleTest ./solr.nix {};
|
||||||
|
sonarr = handleTest ./sonarr.nix {};
|
||||||
strongswan-swanctl = handleTest ./strongswan-swanctl.nix {};
|
strongswan-swanctl = handleTest ./strongswan-swanctl.nix {};
|
||||||
sudo = handleTest ./sudo.nix {};
|
sudo = handleTest ./sudo.nix {};
|
||||||
switchTest = handleTest ./switch-test.nix {};
|
switchTest = handleTest ./switch-test.nix {};
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
import ./make-test.nix ({ lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
rec {
|
||||||
|
name = "sonarr";
|
||||||
|
meta.maintainers = with maintainers; [ etu ];
|
||||||
|
|
||||||
|
nodes.machine =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{ services.sonarr.enable = true; };
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
$machine->waitForUnit('sonarr.service');
|
||||||
|
$machine->waitForOpenPort('8989');
|
||||||
|
$machine->succeed("curl --fail http://localhost:8989/");
|
||||||
|
'';
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user