diff options
author | Florian Klink <flokli@flokli.de> | 2019-11-08 17:18:37 +0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2019-11-08 17:19:23 +0100 |
commit | b0e081549eabe181754bdd467a91c08e3a021864 (patch) | |
tree | 4fed810f28425630259d80cf7f47474efb88bdcb /nixos/tests/powerdns.nix | |
parent | a2429cffa3451f3d5c8e80a295663fef0a96bd9b (diff) |
nixos/powerdns: port test to python
Diffstat (limited to 'nixos/tests/powerdns.nix')
-rw-r--r-- | nixos/tests/powerdns.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/tests/powerdns.nix b/nixos/tests/powerdns.nix index 8addcc784012d..75d71315e644d 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") ''; }) |