Merge pull request #73060 from flokli/nixos-test-port-powerdns
nixos/powerdns: port test to python
This commit is contained in:
commit
1d3da3befc
@ -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 New Issue
Block a user