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