tests/pdns-recursor: add
This commit is contained in:
12
nixos/tests/pdns-recursor.nix
Normal file
12
nixos/tests/pdns-recursor.nix
Normal 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")
|
||||
'';
|
||||
})
|
||||
Reference in New Issue
Block a user