1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00
nixpkgs/nixos/tests/pdns-recursor.nix
2019-04-04 19:42:49 +01:00

13 lines
294 B
Nix

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