mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
nixos/lidarr: Add test for lidarr to ensure startup
This commit is contained in:
parent
ddcb2c473d
commit
eb356ef3f8
@ -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
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/");
|
||||
'';
|
||||
})
|
Loading…
Reference in New Issue
Block a user