2021-01-15 22:18:51 +00:00
|
|
|
import ./make-test-python.nix ({ lib, ... }:
|
|
|
|
{
|
|
|
|
name = "nzbhydra2";
|
2024-07-27 06:49:29 +00:00
|
|
|
meta.maintainers = with lib.maintainers; [ matteopacini ];
|
2021-01-15 22:18:51 +00: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/")
|
|
|
|
'';
|
|
|
|
})
|