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

NS1 Fix URLFWD implementation by being more consistent (#2320)

This commit is contained in:
Florent Thoumie
2023-05-05 06:11:57 -07:00
committed by GitHub
parent f0ea71584f
commit a8b0d4ca66
3 changed files with 11 additions and 11 deletions

View File

@@ -645,8 +645,8 @@ func tlsa(name string, usage, selector, matchingtype uint8, target string) *mode
return r
}
func urlfwd(name, target string) *models.RecordConfig {
return makeRec(name, target, "URLFWD")
func ns1_urlfwd(name, target string) *models.RecordConfig {
return makeRec(name, target, "NS1_URLFWD")
}
func clear(items ...interface{}) *TestCase {
@@ -1678,8 +1678,8 @@ func makeTests(t *testing.T) []*TestGroup {
testgroup("NS1_URLFWD tests",
only("NS1"),
tc("Add a urlfwd", urlfwd("urlfwd1", "/ http://example.com 302 2 0")),
tc("Update a urlfwd", urlfwd("urlfwd1", "/ http://example.org 301 2 0")),
tc("Add a urlfwd", ns1_urlfwd("urlfwd1", "/ http://example.com 302 2 0")),
tc("Update a urlfwd", ns1_urlfwd("urlfwd1", "/ http://example.org 301 2 0")),
),
//// IGNORE* features