mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
VULTR: Fix TXT quoting issue (#1239)
* VULTR: Fix TXT quoting issue * VULTR: Add tests that trigger Vultr's SPF mode * VULTR: Enforce the fact that VULTR only supports a single string in TXT records Co-authored-by: Lee Martin <lmartin@stackoverflow.com>
This commit is contained in:
@@ -789,6 +789,12 @@ func makeTests(t *testing.T) []*TestGroup {
|
||||
tc("Create a TXT with spaces", txt("foo", "with spaces")),
|
||||
),
|
||||
|
||||
testgroup("simple TXT-spf1",
|
||||
// This was added because Vultr syntax-checks TXT records with
|
||||
// SPF contents.
|
||||
tc("Create a TXT/SPF", txt("foo", "v=spf1 ip4:99.99.99.99 -all")),
|
||||
),
|
||||
|
||||
testgroup("long TXT",
|
||||
tc("Create long TXT", txt("foo", strings.Repeat("A", 300))),
|
||||
tc("Change long TXT", txt("foo", strings.Repeat("B", 310))),
|
||||
|
Reference in New Issue
Block a user