| giolekva | eea069c | 2021-07-19 18:13:08 +0400 | [diff] [blame] | 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | "os" |
| 5 | "testing" |
| 6 | |
| 7 | "github.com/jetstack/cert-manager/test/acme/dns" |
| 8 | ) |
| 9 | |
| 10 | var ( |
| 11 | zone = os.Getenv("TEST_ZONE_NAME") |
| 12 | ) |
| 13 | |
| 14 | func TestRunsSuite(t *testing.T) { |
| 15 | // The manifest path should contain a file named config.json that is a |
| 16 | // snippet of valid configuration that should be included on the |
| 17 | // ChallengeRequest passed as part of the test cases. |
| 18 | |
| 19 | solver := &gandiDNSProviderSolver{} |
| 20 | fixture := dns.NewFixture(solver, |
| 21 | dns.SetBinariesPath("__main__/hack/bin"), |
| 22 | dns.SetResolvedZone(zone), |
| 23 | dns.SetAllowAmbientCredentials(false), |
| 24 | dns.SetManifestPath("testdata/gandi"), |
| 25 | ) |
| 26 | |
| 27 | fixture.RunConformance(t) |
| 28 | } |