1import ./make-test-python.nix ({ lib, ... }:
2 {
3 name = "nzbhydra2";
4 meta.maintainers = with lib.maintainers; [ jamiemagee ];
5
6 nodes.machine = { pkgs, ... }: { services.nzbhydra2.enable = true; };
7
8 testScript = ''
9 machine.start()
10 machine.wait_for_unit("nzbhydra2.service")
11 machine.wait_for_open_port(5076)
12 machine.succeed("curl --fail http://localhost:5076/")
13 '';
14 })