tests/pdns-recursor: add

This commit is contained in:
Jörg Thalheim
2019-04-04 19:42:49 +01:00
parent d03ced8648
commit d8445c9925
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -223,6 +223,7 @@ in
syncthing-relay = handleTest ./syncthing-relay.nix {};
systemd = handleTest ./systemd.nix {};
systemd-confinement = handleTest ./systemd-confinement.nix {};
pdns-recursor = handleTest ./pdns-recursor.nix {};
taskserver = handleTest ./taskserver.nix {};
telegraf = handleTest ./telegraf.nix {};
tomcat = handleTest ./tomcat.nix {};
+12
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")
'';
})