mirror of
https://github.com/jmozd/cert-manager-webhook-variomedia.git
synced 2025-12-25 02:02:38 +01:00
31 lines
818 B
Go
31 lines
818 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/jetstack/cert-manager/test/acme/dns"
|
|
)
|
|
|
|
var (
|
|
zone = os.Getenv("TEST_ZONE_NAME")
|
|
)
|
|
|
|
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.
|
|
|
|
fixture := dns.NewFixture(&customDNSProviderSolver{},
|
|
dns.SetResolvedZone(zone),
|
|
dns.SetAllowAmbientCredentials(false),
|
|
dns.SetManifestPath("testdata/my-custom-solver"),
|
|
// dns.SetBinariesPath("_test/kubebuilder/bin"),
|
|
)
|
|
//need to uncomment and RunConformance delete runBasic and runExtended once https://github.com/cert-manager/cert-manager/pull/4835 is merged
|
|
//fixture.RunConformance(t)
|
|
fixture.RunBasic(t)
|
|
fixture.RunExtended(t)
|
|
|
|
}
|