about summary refs log tree commit diff
path: root/nixos/tests/lidarr.nix
blob: 58bf82503f8c38d11a82219ce4c0c23156a2b58b (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;

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