about summary refs log tree commit diff
path: root/nixos/tests/powerdns.nix
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2018-02-17 13:36:28 +0000
committerJörg Thalheim <joerg@thalheim.io>2018-02-17 16:43:41 +0000
commitba27be7955632b1d470ed86a260b7cac3cf03fd8 (patch)
treee5ee290368dd5cfa8a53b222ea8c3085b967d0b9 /nixos/tests/powerdns.nix
parent03d9a36941d5d7366dca4de36894f1c3fb5340e4 (diff)
nixos/powerdns: add test
Diffstat (limited to 'nixos/tests/powerdns.nix')
-rw-r--r--nixos/tests/powerdns.nix12
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");
+  '';
+})