summaryrefslogtreecommitdiffstats
path: root/nixos/tests/nzbhydra2.nix
blob: b446d82369774890ced7be10f74ef10c94b2571a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ lib, ... }:
{
  name = "nzbhydra2";
  meta.maintainers = with lib.maintainers; [ matteopacini ];

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

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