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