nixos/powerdns: add test

This commit is contained in:
Jörg Thalheim 2018-02-17 13:36:28 +00:00
parent 03d9a36941
commit ba27be7955
2 changed files with 13 additions and 0 deletions

View File

@ -329,6 +329,7 @@ in rec {
tests.postgresql = callSubTests tests/postgresql.nix {};
tests.pgmanage = callTest tests/pgmanage.nix {};
tests.postgis = callTest tests/postgis.nix {};
tests.powerdns = callTest tests/powerdns.nix {};
#tests.pgjwt = callTest tests/pgjwt.nix {};
tests.predictable-interface-names = callSubTests tests/predictable-interface-names.nix {};
tests.printing = callTest tests/printing.nix {};

12
nixos/tests/powerdns.nix Normal file
View File

@ -0,0 +1,12 @@
import ./make-test.nix ({ pkgs, ... }: {
name = "powerdns";
nodes.server = { config, pkgs, ... }: {
services.powerdns.enable = true;
};
testScript = ''
$server->waitForUnit("pdns");
$server->succeed("${pkgs.dnsutils}/bin/dig version.bind txt chaos \@127.0.0.1");
'';
})