mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Remove test for empty TXT strings. (#633)
This commit is contained in:
@@ -565,12 +565,18 @@ func makeTests(t *testing.T) []*TestCase {
|
|||||||
tc("Create a 255-byte TXT", txt("foo", "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")),
|
tc("Create a 255-byte TXT", txt("foo", "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")),
|
||||||
)
|
)
|
||||||
|
|
||||||
// TXT (empty)
|
// FUTURE(tal): https://github.com/StackExchange/dnscontrol/issues/598
|
||||||
if *providerToRun != "CLOUDFLAREAPI" {
|
// We decided that handling an empty TXT string is not a
|
||||||
tests = append(tests, tc("Empty"),
|
// requirement. In the future we might make it a "capability" to
|
||||||
tc("TXT with empty str", txt("foo1", "")),
|
// indicate which vendors fully support RFC 1035, which requires
|
||||||
)
|
// that a TXT string can be empty.
|
||||||
}
|
//
|
||||||
|
// // TXT (empty)
|
||||||
|
// if (provider supports empty txt strings) {
|
||||||
|
// tests = append(tests, tc("Empty"),
|
||||||
|
// tc("TXT with empty str", txt("foo1", "")),
|
||||||
|
// )
|
||||||
|
// }
|
||||||
|
|
||||||
// TXTMulti
|
// TXTMulti
|
||||||
if !providers.ProviderHasCapability(*providerToRun, providers.CanUseTXTMulti) {
|
if !providers.ProviderHasCapability(*providerToRun, providers.CanUseTXTMulti) {
|
||||||
|
|||||||
Reference in New Issue
Block a user