Skip to content

Commit

Permalink
nisosTests: fixup tests/common/resolver to work with a local resolver
Browse files Browse the repository at this point in the history
When 757a455 refactored the zones to go
from a list to a map, this broke the tests/common/resolver helper.
  • Loading branch information
baloo committed Oct 6, 2024
1 parent 1c2278e commit f9c0238
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos/tests/common/resolver.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@
services.bind.forwarders = lib.mkForce [];
services.bind.zones = lib.singleton {
name = ".";
master = true;
file = let
addDot = zone: zone + lib.optionalString (!lib.hasSuffix "." zone) ".";
mkNsdZoneNames = zones: map addDot (lib.attrNames zones);
mkBindZoneNames = zones: map (zone: addDot zone.name) zones;
mkBindZoneNames = zones: map addDot (lib.attrNames zones);
getZones = cfg: mkNsdZoneNames cfg.services.nsd.zones
++ mkBindZoneNames cfg.services.bind.zones;

Expand Down

0 comments on commit f9c0238

Please sign in to comment.