Fix broken test lacking PaidZones init in Cloudflare provider

This commit is contained in:
Tom M G 2025-07-21 20:55:14 +02:00
parent b9f9cde0ed
commit a19a8e6a8a
No known key found for this signature in database
GPG Key ID: 90674BFE48C97FB0
2 changed files with 3 additions and 0 deletions

View File

@ -373,6 +373,7 @@ func NewCloudFlareProvider(
DryRun: dryRun,
RegionalServicesConfig: regionalServicesConfig,
DNSRecordsConfig: dnsRecordsConfig,
PaidZones: make(map[string]bool),
}, nil
}

View File

@ -2646,6 +2646,7 @@ func TestZoneHasPaidPlan(t *testing.T) {
Client: client,
domainFilter: endpoint.NewDomainFilter([]string{"foo.com", "bar.com"}),
zoneIDFilter: provider.NewZoneIDFilter([]string{""}),
PaidZones: make(map[string]bool),
}
assert.False(t, cfprovider.ZoneHasPaidPlan("subdomain.foo.com"))
@ -2657,6 +2658,7 @@ func TestZoneHasPaidPlan(t *testing.T) {
Client: client,
domainFilter: endpoint.NewDomainFilter([]string{"foo.com", "bar.com"}),
zoneIDFilter: provider.NewZoneIDFilter([]string{""}),
PaidZones: make(map[string]bool),
}
assert.False(t, cfproviderWithZoneError.ZoneHasPaidPlan("subdomain.foo.com"))
}