diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2019-04-04 19:38:56 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2019-04-04 19:42:49 +0100 |
commit | d8445c9925bc4c62a104fffef43065264d7d1c4f (patch) | |
tree | 77984594d2151c3238b9354e93754f74f8cff6ce /nixos | |
parent | d03ced8648b4e92b6d06fe2120bf5d8764593e1d (diff) | |
download | nixpkgs-d8445c9925bc4c62a104fffef43065264d7d1c4f.tar nixpkgs-d8445c9925bc4c62a104fffef43065264d7d1c4f.tar.gz nixpkgs-d8445c9925bc4c62a104fffef43065264d7d1c4f.tar.bz2 nixpkgs-d8445c9925bc4c62a104fffef43065264d7d1c4f.tar.lz nixpkgs-d8445c9925bc4c62a104fffef43065264d7d1c4f.tar.xz nixpkgs-d8445c9925bc4c62a104fffef43065264d7d1c4f.tar.zst nixpkgs-d8445c9925bc4c62a104fffef43065264d7d1c4f.zip |
tests/pdns-recursor: add
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/pdns-recursor.nix | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index d47ebd4a51c..b366f019f6e 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -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 {}; diff --git a/nixos/tests/pdns-recursor.nix b/nixos/tests/pdns-recursor.nix new file mode 100644 index 00000000000..fb24cfc72f1 --- /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") + ''; +}) |