nixos/powerdns: port test to python
This commit is contained in:
parent
a2429cffa3
commit
b0e081549e
|
@ -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")
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue