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

NAMEDOTCOM: add TXTMulti capability (#299)

* add TXTMulti capability to the namedotcom provider
* run go generate
* escape multi txt records before sending to the API
This commit is contained in:
Pat Moroney
2018-01-11 05:23:59 -07:00
committed by Tom Limoncelli
parent c4ec6c8246
commit 91e2cf67ef
4 changed files with 31 additions and 3 deletions

View File

@@ -466,11 +466,17 @@ func makeTests(t *testing.T) []*TestCase {
txtmulti("foo2", []string{"one", "two"}),
txtmulti("foo3", []string{"eh", "bee", "cee"}),
),
tc("Create TXTMulti with quotes",
txtmulti("foo1", []string{"simple"}),
txtmulti("foo2", []string{"o\"ne", "tw\"o"}),
txtmulti("foo3", []string{"eh", "bee", "cee"}),
),
tc("Change TXTMulti",
txtmulti("foo1", []string{"dimple"}),
txtmulti("foo2", []string{"fun", "two"}),
txtmulti("foo3", []string{"eh", "bzz", "cee"}),
),
tc("Empty"),
)
}