• Anand Singh Kunwar's avatar
    Fixed Bug in PowerDNS provider and added testcases · e84630f0
    Anand Singh Kunwar authored
    * Fixed PowerDNS provider bug affecting endpoint conversion to
      zone in a particular case
    * Added a regressive test case, covered an additional case
    
    PowerDNS provider bug: In the function ConvertEndpointsToZones,
    the endpoints are sorted lexicographically increasing
    (and by record type in case of match). The zones are sorted by
    decreasing order of length. There's a loop through of zones
    under which the code loops through endpoints. In the case
    the first endpoint does not match with the first zone,
    the complete zone won't get populated with any endpoints.
    e84630f0
pdns.go 11.9 KB