about summary refs log tree commit diff
path: root/nixos/tests/radarr.nix
blob: ed90025ac42056f9ed6caf686672a79f17c9f4d5 (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 = "radarr";
  meta.maintainers = with maintainers; [ etu ];

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

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