mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-05 17:16:59 +02:00
Fix broken test lacking PaidZones init in Cloudflare provider
This commit is contained in:
parent
b9f9cde0ed
commit
a19a8e6a8a
@ -373,6 +373,7 @@ func NewCloudFlareProvider(
|
||||
DryRun: dryRun,
|
||||
RegionalServicesConfig: regionalServicesConfig,
|
||||
DNSRecordsConfig: dnsRecordsConfig,
|
||||
PaidZones: make(map[string]bool),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
@ -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"))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user