about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/nzbhydra2.nix
blob: e1d528cd9520e994838305bdad88ed23f3e3b5f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import ./make-test-python.nix ({ lib, ... }:
  {
    name = "nzbhydra2";
    meta.maintainers = with lib.maintainers; [ jamiemagee ];

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