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

with lib;

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

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

  testScript = ''
    machine.wait_for_unit("sonarr.service")
    machine.wait_for_open_port(8989)
    machine.succeed("curl --fail http://localhost:8989/")
  '';
})