Add unit test to dns testing
Signed-off-by: Max Ehrlich <max.ehr@gmail.com>
This commit is contained in:
parent
310a6f8689
commit
992602b472
@ -28,6 +28,7 @@ import (
|
||||
"github.com/jetstack/cert-manager/pkg/issuer/acme/dns/clouddns"
|
||||
"github.com/jetstack/cert-manager/pkg/issuer/acme/dns/cloudflare"
|
||||
"github.com/jetstack/cert-manager/pkg/issuer/acme/dns/route53"
|
||||
"github.com/jetstack/cert-manager/pkg/issuer/acme/dns/acmedns"
|
||||
"github.com/jetstack/cert-manager/pkg/issuer/acme/dns/util"
|
||||
)
|
||||
|
||||
@ -154,6 +155,10 @@ func newFakeDNSProviders() *fakeDNSProviders {
|
||||
f.call("azuredns", clientID, clientSecret, subscriptionID, tenentID, resourceGroupName, hostedZoneName, util.RecursiveNameservers)
|
||||
return nil, nil
|
||||
},
|
||||
acmeDNS: func(host string, accountJson []byte) (*acmedns.DNSProvider, error) {
|
||||
f.call("acmedns", host, accountJson)
|
||||
return nil, nil
|
||||
},
|
||||
}
|
||||
return f
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user