From d8445c9925bc4c62a104fffef43065264d7d1c4f Mon Sep 17 00:00:00 2001 From: Jörg Thalheim Date: Thu, 4 Apr 2019 19:38:56 +0100 Subject: tests/pdns-recursor: add --- nixos/tests/pdns-recursor.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 nixos/tests/pdns-recursor.nix (limited to 'nixos/tests/pdns-recursor.nix') diff --git a/nixos/tests/pdns-recursor.nix b/nixos/tests/pdns-recursor.nix new file mode 100644 index 000000000000..fb24cfc72f14 --- /dev/null +++ b/nixos/tests/pdns-recursor.nix @@ -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") + ''; +}) -- cgit 1.4.1