nixpkgs/nixos/tests/nzbhydra2.nix

19 lines
379 B
Nix
Raw Permalink Normal View History

{ lib, ... }:
{
name = "nzbhydra2";
meta.maintainers = with lib.maintainers; [ matteopacini ];
2020-10-04 16:06:53 +02:00
nodes.machine =
{ pkgs, ... }:
{
services.nzbhydra2.enable = true;
};
2020-10-04 16:06:53 +02:00
testScript = ''
machine.start()
machine.wait_for_unit("nzbhydra2.service")
machine.wait_for_open_port(5076)
machine.succeed("curl --fail http://localhost:5076/")
'';
}