My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/nixos/tests/pdns-recursor.nix

15 lines
431 B

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")
'';
})