nixpkgs/nixos/tests/powerdns.nix

13 lines
280 B
Nix
Raw Normal View History

2018-02-17 16:36:28 +03:00
import ./make-test.nix ({ pkgs, ... }: {
name = "powerdns";
nodes.server = { ... }: {
2018-02-17 16:36:28 +03:00
services.powerdns.enable = true;
};
testScript = ''
$server->waitForUnit("pdns");
$server->succeed("${pkgs.dnsutils}/bin/dig version.bind txt chaos \@127.0.0.1");
'';
})