tests/pdns-recursor: add

This commit is contained in:
Jörg Thalheim
2019-04-04 19:38:56 +01:00
parent d03ced8648
commit d8445c9925
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
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")
'';
})