mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 05:37:40 +03:00
5803706662
Fix some fallout from de3e423
(PR #171280).
16 lines
429 B
Nix
16 lines
429 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "powerdns-recursor";
|
|
|
|
nodes.server = { ... }: {
|
|
services.pdns-recursor.enable = true;
|
|
services.pdns-recursor.exportHosts= true;
|
|
networking.hosts."192.0.2.1" = [ "example.com" ];
|
|
};
|
|
|
|
testScript = ''
|
|
server.wait_for_unit("pdns-recursor")
|
|
server.wait_for_open_port(53)
|
|
assert "192.0.2.1" in server.succeed("host example.com localhost")
|
|
'';
|
|
})
|