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

{
  name = "radarr";
  meta.maintainers = with lib.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/")
  '';
})