diff options
author | Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> | 2022-04-14 18:02:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-14 18:02:29 +0200 |
commit | e674ea69563efc502c2ed323fad28c42d8a192c3 (patch) | |
tree | 20a0a54f38ea4d1fb3f929a837a6fe356e01de20 /nixos/tests | |
parent | 289f38a65b4a9cbd06131d7a58eeb6aefb27daf8 (diff) | |
parent | bad701b1d3f28345cfeef0c3950a5d5b7bd06a1f (diff) | |
download | nixpkgs-e674ea69563efc502c2ed323fad28c42d8a192c3.tar nixpkgs-e674ea69563efc502c2ed323fad28c42d8a192c3.tar.gz nixpkgs-e674ea69563efc502c2ed323fad28c42d8a192c3.tar.bz2 nixpkgs-e674ea69563efc502c2ed323fad28c42d8a192c3.tar.lz nixpkgs-e674ea69563efc502c2ed323fad28c42d8a192c3.tar.xz nixpkgs-e674ea69563efc502c2ed323fad28c42d8a192c3.tar.zst nixpkgs-e674ea69563efc502c2ed323fad28c42d8a192c3.zip |
Merge pull request #168535 from rnhmjoj/pr-pdns-nixos
nixos/pdns-recursor: update default values
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/pdns-recursor.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/tests/pdns-recursor.nix b/nixos/tests/pdns-recursor.nix index de1b60e0b1c..cf473a06431 100644 --- a/nixos/tests/pdns-recursor.nix +++ b/nixos/tests/pdns-recursor.nix @@ -1,12 +1,15 @@ import ./make-test-python.nix ({ pkgs, ... }: { - name = "powerdns"; + 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") ''; }) |