tests/pdns-recursor: add

This commit is contained in:
Jörg Thalheim 2019-04-04 19:38:56 +01:00
parent d03ced8648
commit d8445c9925
No known key found for this signature in database
GPG Key ID: B3F5D81B0C6967C4
2 changed files with 13 additions and 0 deletions

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 {};

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")
'';
})