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

CLOUDNS: Implement AUTOSPLIT (#1035)

* implement AUTOSPLIT for ClouDNS

Co-authored-by: IT-Sumpfling <it-sumpfling@maxit-con.de>
Co-authored-by: bentaybi jamal <jamal@pfalzcloud.de>
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
taybinakh
2021-01-31 13:40:03 +01:00
committed by GitHub
parent bb57893044
commit 2d5a09f217
2 changed files with 8 additions and 4 deletions

View File

@ -742,14 +742,15 @@ func makeTests(t *testing.T) []*TestGroup {
testgroup("single TXT with single-quote", testgroup("single TXT with single-quote",
not( not(
"INWX", // Bug in the API prevents this. "INWX", // Bug in the API prevents this.
"MSDNS", // TODO(tlim): Should be easy to implement. "MSDNS", // TODO(tlim): Should be easy to implement.
"CLOUDNS", // support txt("foo", "blah'blah") but does not support txt("foo","blah`blah")
), ),
tc("Create TXT with single-quote", txt("foo", "blah`blah")), tc("Create TXT with single-quote", txt("foo", "blah`blah")),
), ),
testgroup("ws TXT", testgroup("ws TXT",
not("CLOUDFLAREAPI", "HEXONET", "INWX", "NAMEDOTCOM"), not("CLOUDFLAREAPI", "HEXONET", "INWX", "NAMEDOTCOM", "CLOUDNS"),
// These providers strip whitespace at the end of TXT records. // These providers strip whitespace at the end of TXT records.
// TODO(tal): Add a check for this in normalize/validate.go // TODO(tal): Add a check for this in normalize/validate.go
tc("Change a TXT with ws at end", txt("foo", "with space at end ")), tc("Change a TXT with ws at end", txt("foo", "with space at end ")),
@ -762,6 +763,7 @@ func makeTests(t *testing.T) []*TestGroup {
"INWX", // Not supported. "INWX", // Not supported.
"MSDNS", // Not supported. "MSDNS", // Not supported.
"NETCUP", // Not supported. "NETCUP", // Not supported.
"CLOUDNS", // Not supported.
), ),
tc("TXT with empty str", txt("foo1", "")), tc("TXT with empty str", txt("foo1", "")),
// https://github.com/StackExchange/dnscontrol/issues/598 // https://github.com/StackExchange/dnscontrol/issues/598
@ -932,6 +934,7 @@ func makeTests(t *testing.T) []*TestGroup {
), ),
testgroup("TXTMulti", testgroup("TXTMulti",
not("CLOUDNS"), //TODO: not implemented. same Issue as #996
requires(providers.CanUseTXTMulti), requires(providers.CanUseTXTMulti),
tc("Create TXTMulti 1", tc("Create TXTMulti 1",
txtmulti("foo1", []string{"simple"}), txtmulti("foo1", []string{"simple"}),

View File

@ -49,7 +49,8 @@ var features = providers.DocumentationNotes{
providers.CanUsePTR: providers.Can(), providers.CanUsePTR: providers.Can(),
providers.CanGetZones: providers.Can(), providers.CanGetZones: providers.Can(),
providers.CanUseDSForChildren: providers.Can(), providers.CanUseDSForChildren: providers.Can(),
//providers.CanUseDS: providers.Can(), providers.CanUseTXTMulti: providers.Can(),
//providers.CanUseDS: providers.Can(), // in ClouDNS we can add DS record just for a subdomain(child)
} }
func init() { func init() {