From ba27be7955632b1d470ed86a260b7cac3cf03fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 17 Feb 2018 13:36:28 +0000 Subject: [PATCH] nixos/powerdns: add test --- nixos/release.nix | 1 + nixos/tests/powerdns.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 nixos/tests/powerdns.nix diff --git a/nixos/release.nix b/nixos/release.nix index 6bf2e4d8c7f8..5c179767fb60 100644 --- a/nixos/release.nix +++ b/nixos/release.nix @@ -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 {}; diff --git a/nixos/tests/powerdns.nix b/nixos/tests/powerdns.nix new file mode 100644 index 000000000000..0d5b0f715f52 --- /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"); + ''; +})