3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/tests/nzbhydra2.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
413 B
Nix
Raw Permalink Normal View History

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