summaryrefslogtreecommitdiffstats
path: root/nixos/tests/sonarr.nix
blob: 2c6237f51c54f811d434373879c595947f7bc912 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ lib, ... }:

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

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