mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-24 23:53:01 +08:00
CHORE: Refactor integration tests to support multiple tests
This commit is contained in:
parent
2cb4dcfc5a
commit
fab3172fee
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
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)
|
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
|
firstGroup := *startIdx
|
||||||
if firstGroup == -1 {
|
if firstGroup == -1 {
|
||||||
|
|
Loading…
Reference in a new issue