1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

TRANSIP: Fixed integration tests: Edge cases and TXT records fixed (#2673)

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
Vincent Hagen
2023-12-04 17:54:03 +01:00
committed by GitHub
parent a366e4bc4d
commit ef081da1a6
4 changed files with 90 additions and 17 deletions

View File

@@ -1035,11 +1035,17 @@ func makeTests(t *testing.T) []*TestGroup {
// that.
testgroup("CNAME",
tc("Record pointing to @", cname("foo", "**current-domain**")),
tc("Record pointing to @",
cname("foo", "**current-domain**"),
a("@", "1.2.3.4"),
),
),
testgroup("MX",
tc("Record pointing to @", mx("foo", 8, "**current-domain**")),
tc("Record pointing to @",
mx("foo", 8, "**current-domain**"),
a("@", "1.2.3.4"),
),
tc("Null MX", mx("@", 0, ".")), // RFC 7505
),
@@ -1246,6 +1252,7 @@ func makeTests(t *testing.T) []*TestGroup {
"NAMEDOTCOM", // Their API is so damn slow. We'll add it back as needed.
"NS1", // Free acct only allows 50 records, therefore we skip
//"ROUTE53", // Batches up changes in pages.
"TRANSIP", // Doesn't page. Works fine. Due to the slow API we skip.
),
tc("99 records", manyA("rec%04d", "1.2.3.4", 99)...),
tc("100 records", manyA("rec%04d", "1.2.3.4", 100)...),
@@ -1515,10 +1522,15 @@ func makeTests(t *testing.T) []*TestGroup {
// them here. If you are writing a new provider, I have some good
// news: These don't apply to you!
testgroup("ALIAS",
testgroup("ALIAS on apex",
requires(providers.CanUseAlias),
tc("ALIAS at root", alias("@", "foo.com.")),
tc("change it", alias("@", "foo2.com.")),
),
testgroup("ALIAS on subdomain",
requires(providers.CanUseAlias),
not("TRANSIP"), // TransIP does support ALIAS records, but only for apex records (@)
tc("ALIAS at subdomain", alias("test", "foo.com.")),
tc("change it", alias("test", "foo2.com.")),
),