Set SkipTLSVerify bool during DNS01 tests

This commit is contained in:
James Munnelly 2018-04-10 00:39:17 +01:00
parent ca154bf1fe
commit 09e055b453
2 changed files with 6 additions and 2 deletions

View File

@ -77,6 +77,7 @@ var _ = framework.CertManagerDescribe("ACME Certificate (DNS01)", func() {
issuer := generate.Issuer(generate.IssuerConfig{
Name: issuerName,
Namespace: f.Namespace.Name,
ACMESkipTLSVerify: true,
ACMEServer: framework.TestContext.ACMEURL,
ACMEEmail: testingACMEEmail,
ACMEPrivateKeyName: testingACMEPrivateKey,
@ -129,6 +130,7 @@ var _ = framework.CertManagerDescribe("ACME Certificate (DNS01)", func() {
By("Cleaning up")
f.CertManagerClientSet.CertmanagerV1alpha1().Issuers(f.Namespace.Name).Delete(issuerName, nil)
f.KubeClientSet.CoreV1().Secrets(f.Namespace.Name).Delete(testingACMEPrivateKey, nil)
f.KubeClientSet.CoreV1().Secrets(f.Namespace.Name).Delete(cloudflareSecretName, nil)
})
It("should obtain a signed certificate for a wildcard domain", func() {

View File

@ -9,6 +9,7 @@ import (
type IssuerConfig struct {
Name, Namespace string
ACMESkipTLSVerify bool
ACMEServer, ACMEEmail, ACMEPrivateKeyName string
HTTP01 *v1alpha1.ACMEIssuerHTTP01Config
DNS01 *v1alpha1.ACMEIssuerDNS01Config
@ -26,8 +27,9 @@ func Issuer(cfg IssuerConfig) *v1alpha1.Issuer {
Spec: v1alpha1.IssuerSpec{
IssuerConfig: v1alpha1.IssuerConfig{
ACME: &v1alpha1.ACMEIssuer{
Server: cfg.ACMEServer,
Email: cfg.ACMEEmail,
SkipTLSVerify: cfg.ACMESkipTLSVerify,
Server: cfg.ACMEServer,
Email: cfg.ACMEEmail,
PrivateKey: v1alpha1.SecretKeySelector{
LocalObjectReference: v1alpha1.LocalObjectReference{
Name: cfg.ACMEPrivateKeyName,