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

throw an error if a domain name is declared more than once (#247)

* throw an error if a domain name is declared more than once in the js file
This commit is contained in:
Pat Moroney
2017-11-14 21:14:45 -07:00
committed by Tom Limoncelli
parent 2ef1fc42f8
commit 106790b0d5
5 changed files with 74 additions and 109 deletions

View File

@@ -77,6 +77,7 @@ func TestErrors(t *testing.T) {
{"CF_REDIRECT With comma", `D("foo.com","reg",CF_REDIRECT("foo.com,","baaa"))`},
{"CF_TEMP_REDIRECT With comma", `D("foo.com","reg",CF_TEMP_REDIRECT("foo.com","baa,a"))`},
{"Bad cidr", `D(reverse("foo.com"), "reg")`},
{"Dup domains", `D("example.org", "reg"); D("example.org", "reg")`},
}
for _, tst := range tests {
t.Run(tst.desc, func(t *testing.T) {