at 23.11-pre 429 B view raw
1import ./make-test-python.nix ({ pkgs, ... }: { 2 name = "powerdns-recursor"; 3 4 nodes.server = { ... }: { 5 services.pdns-recursor.enable = true; 6 services.pdns-recursor.exportHosts= true; 7 networking.hosts."192.0.2.1" = [ "example.com" ]; 8 }; 9 10 testScript = '' 11 server.wait_for_unit("pdns-recursor") 12 server.wait_for_open_port(53) 13 assert "192.0.2.1" in server.succeed("host example.com localhost") 14 ''; 15})