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

with lib;

{
  name = "lidarr";
  meta.maintainers = with maintainers; [ etu ];

  nodes.machine =
    { pkgs, ... }:
    { services.lidarr.enable = true; };

  testScript = ''
    start_all()

    machine.wait_for_unit("lidarr.service")
    machine.wait_for_open_port("8686")
    machine.succeed("curl --fail http://localhost:8686/")
  '';
})