CHORE: Refactor integration tests to support multiple tests

This commit is contained in:
Tom Limoncelli 2024-02-08 16:39:30 -05:00
parent 2cb4dcfc5a
commit fab3172fee

View file

@ -276,8 +276,12 @@ func makeChanges(t *testing.T, prv providers.DNSServiceProvider, dc *models.Doma
}
func runTests(t *testing.T, prv providers.DNSServiceProvider, domainName string, knownFailures map[int]bool, origConfig map[string]string) {
dc := getDomainConfigWithNameservers(t, prv, domainName)
testGroups := makeTests(t)
runTestsHelper(t, prv, domainName, testGroups, origConfig)
}
func runTestsHelper(t *testing.T, prv providers.DNSServiceProvider, domainName string, testGroups []*TestGroup, origConfig map[string]string) {
dc := getDomainConfigWithNameservers(t, prv, domainName)
firstGroup := *startIdx
if firstGroup == -1 {