| Giorgi Lekveishvili | 0048a78 | 2023-06-20 18:32:21 +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.SetResolvedZone(zone), |
| 22 | dns.SetAllowAmbientCredentials(false), |
| 23 | dns.SetManifestPath("testdata/gandi"), |
| 24 | ) |
| 25 | |
| 26 | fixture.RunConformance(t) |
| 27 | } |