forked from mirrors/nixpkgs
tests/pdns-recursor: add
This commit is contained in:
parent
d03ced8648
commit
d8445c9925
|
@ -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
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")
|
||||
'';
|
||||
})
|
Loading…
Reference in a new issue