nixpkgs/nixos/tests/pdns-recursor.nix

13 lines
294 B
Nix
Raw Normal View History

2019-04-04 18:38:56 +00:00
import ./make-test.nix ({ pkgs, lib, ... }: {
name = "powerdns";
nodes.server = { ... }: {
services.pdns-recursor.enable = true;
};
testScript = ''
$server->waitForUnit("pdns-recursor");
$server->succeed("echo | ${lib.getBin pkgs.netcat}/bin/nc -v localhost 53")
'';
})