about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/lidarr.nix
blob: 85fcbd21d8c091aa8188380f2ee5e298d8b9e7b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import ./make-test.nix ({ lib, ... }:

with lib;

{
  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/");
  '';
})