summary refs log tree commit diff
path: root/nixos/tests/sonarr.nix
blob: 764a4d05b381b301ac27c659fc7f11a131ec46d4 (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/")
  '';
})