diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-02-17 13:36:28 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-02-17 16:43:41 +0000 |
commit | ba27be7955632b1d470ed86a260b7cac3cf03fd8 (patch) | |
tree | e5ee290368dd5cfa8a53b222ea8c3085b967d0b9 /nixos/tests | |
parent | 03d9a36941d5d7366dca4de36894f1c3fb5340e4 (diff) |
nixos/powerdns: add test
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/powerdns.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/tests/powerdns.nix b/nixos/tests/powerdns.nix new file mode 100644 index 0000000000000..0d5b0f715f52b --- /dev/null +++ b/nixos/tests/powerdns.nix @@ -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"); + ''; +}) |