summaryrefslogtreecommitdiffstats
path: root/main_test.go
diff options
context:
space:
mode:
authorjetstack-bot <32282838+jetstack-bot@users.noreply.github.com>2021-02-22 17:10:48 +0100
committerGitHub <noreply@github.com>2021-02-22 17:10:48 +0100
commitaf909124d322650cbfd2d629353e0682c0778e48 (patch)
tree93030d2ca3abb06f543be9b9b844458e89c1a319 /main_test.go
parent7a722fd8517afee606f0c13673880f6eedee5d87 (diff)
parent13383858a8c76e4b01acecd526163a74f1ccda77 (diff)
downloadcert-manager-webhook-hostinger-af909124d322650cbfd2d629353e0682c0778e48.tar.gz
cert-manager-webhook-hostinger-af909124d322650cbfd2d629353e0682c0778e48.zip
Merge pull request #21 from jakexks/smoke_tests
Update to cert-manager 1.2 and prepare for automated testing.
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go20
1 files changed, 17 insertions, 3 deletions
diff --git a/main_test.go b/main_test.go
index 4e32419..c731751 100644
--- a/main_test.go
+++ b/main_test.go
@@ -5,6 +5,8 @@ import (
"testing"
"github.com/jetstack/cert-manager/test/acme/dns"
+
+ "github.com/jetstack/cert-manager-webhook-example/example"
)
var (
@@ -15,11 +17,23 @@ func TestRunsSuite(t *testing.T) {
// The manifest path should contain a file named config.json that is a
// snippet of valid configuration that should be included on the
// ChallengeRequest passed as part of the test cases.
+ //
+
+ // Uncomment the below fixture when implementing your custom DNS provider
+ //fixture := dns.NewFixture(&customDNSProviderSolver{},
+ // dns.SetResolvedZone(zone),
+ // dns.SetAllowAmbientCredentials(false),
+ // dns.SetManifestPath("testdata/my-custom-solver"),
+ // dns.SetBinariesPath("_test/kubebuilder/bin"),
+ //)
- fixture := dns.NewFixture(&customDNSProviderSolver{},
- dns.SetResolvedZone(zone),
- dns.SetAllowAmbientCredentials(false),
+ solver := example.New("59351")
+ fixture := dns.NewFixture(solver,
+ dns.SetResolvedZone("example.com."),
dns.SetManifestPath("testdata/my-custom-solver"),
+ dns.SetBinariesPath("_test/kubebuilder/bin"),
+ dns.SetDNSServer("127.0.0.1:59351"),
+ dns.SetUseAuthoritative(false),
)
fixture.RunConformance(t)