nixos/powerdns: add test

+13
+1
nixos/release.nix
··· 329 tests.postgresql = callSubTests tests/postgresql.nix {}; 330 tests.pgmanage = callTest tests/pgmanage.nix {}; 331 tests.postgis = callTest tests/postgis.nix {}; 332 #tests.pgjwt = callTest tests/pgjwt.nix {}; 333 tests.predictable-interface-names = callSubTests tests/predictable-interface-names.nix {}; 334 tests.printing = callTest tests/printing.nix {};
··· 329 tests.postgresql = callSubTests tests/postgresql.nix {}; 330 tests.pgmanage = callTest tests/pgmanage.nix {}; 331 tests.postgis = callTest tests/postgis.nix {}; 332 + tests.powerdns = callTest tests/powerdns.nix {}; 333 #tests.pgjwt = callTest tests/pgjwt.nix {}; 334 tests.predictable-interface-names = callSubTests tests/predictable-interface-names.nix {}; 335 tests.printing = callTest tests/printing.nix {};
+12
nixos/tests/powerdns.nix
···
··· 1 + import ./make-test.nix ({ pkgs, ... }: { 2 + name = "powerdns"; 3 + 4 + nodes.server = { config, pkgs, ... }: { 5 + services.powerdns.enable = true; 6 + }; 7 + 8 + testScript = '' 9 + $server->waitForUnit("pdns"); 10 + $server->succeed("${pkgs.dnsutils}/bin/dig version.bind txt chaos \@127.0.0.1"); 11 + ''; 12 + })