3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/tests/pdns-recursor.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
429 B
Nix
Raw Normal View History

import ./make-test-python.nix ({ pkgs, ... }: {
name = "powerdns-recursor";
2019-04-04 19:38:56 +01:00
nodes.server = { ... }: {
services.pdns-recursor.enable = true;
services.pdns-recursor.exportHosts= true;
networking.hosts."192.0.2.1" = [ "example.com" ];
2019-04-04 19:38:56 +01:00
};
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")
2019-04-04 19:38:56 +01:00
'';
})