about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-11-08 20:48:34 +0000
committerGitHub <noreply@github.com>2019-11-08 20:48:34 +0000
commit1d3da3befcda7ba36546e30ad1e4bf609b24e5c2 (patch)
treeffc4f7e3d244bc3fd809fcda098175e4c821ef8f /nixos/tests
parent9cc610c5761bac1f93510f5bdb713dc1ee35d977 (diff)
parentb0e081549eabe181754bdd467a91c08e3a021864 (diff)
downloadnixlib-1d3da3befcda7ba36546e30ad1e4bf609b24e5c2.tar
nixlib-1d3da3befcda7ba36546e30ad1e4bf609b24e5c2.tar.gz
nixlib-1d3da3befcda7ba36546e30ad1e4bf609b24e5c2.tar.bz2
nixlib-1d3da3befcda7ba36546e30ad1e4bf609b24e5c2.tar.lz
nixlib-1d3da3befcda7ba36546e30ad1e4bf609b24e5c2.tar.xz
nixlib-1d3da3befcda7ba36546e30ad1e4bf609b24e5c2.tar.zst
nixlib-1d3da3befcda7ba36546e30ad1e4bf609b24e5c2.zip
Merge pull request #73060 from flokli/nixos-test-port-powerdns
nixos/powerdns: port test to python
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/powerdns.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/tests/powerdns.nix b/nixos/tests/powerdns.nix
index 8addcc784012..75d71315e644 100644
--- a/nixos/tests/powerdns.nix
+++ b/nixos/tests/powerdns.nix
@@ -1,12 +1,13 @@
-import ./make-test.nix ({ pkgs, ... }: {
+import ./make-test-python.nix ({ pkgs, ... }: {
   name = "powerdns";
 
   nodes.server = { ... }: {
     services.powerdns.enable = true;
+    environment.systemPackages = [ pkgs.dnsutils ];
   };
 
   testScript = ''
-    $server->waitForUnit("pdns");
-    $server->succeed("${pkgs.dnsutils}/bin/dig version.bind txt chaos \@127.0.0.1");
+    server.wait_for_unit("pdns")
+    server.succeed("dig version.bind txt chaos \@127.0.0.1")
   '';
 })