nixpkgs-suyu/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 20:38:56 +02:00
nodes.server = { ... }: {
services.pdns-recursor.enable = true;
services.pdns-recursor.exportHosts= true;
networking.hosts."192.0.2.1" = [ "example.com" ];
2019-04-04 20:38:56 +02: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 20:38:56 +02:00
'';
})