nixos/powerdns: add test
This commit is contained in:
parent
03d9a36941
commit
ba27be7955
@ -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
12
nixos/tests/powerdns.nix
Normal 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");
|
||||
'';
|
||||
})
|
Loading…
Reference in New Issue
Block a user