2020-10-04 16:06:53 +02:00
|
|
|
import ./make-test-python.nix ({ lib, ... }:
|
|
|
|
{
|
|
|
|
name = "nzbhydra2";
|
2023-04-30 16:26:18 +02:00
|
|
|
meta.maintainers = with lib.maintainers; [ jamiemagee ];
|
2020-10-04 16:06:53 +02:00
|
|
|
|
|
|
|
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/")
|
|
|
|
'';
|
|
|
|
})
|