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

tests that would have caught tag renaming bug. js tests now don't marahsl expected through the go object. Instead minify both sides to compare

This commit is contained in:
Craig Peterson
2017-07-20 17:41:15 -04:00
parent d106c88488
commit 710d14b1a9
11 changed files with 41 additions and 25 deletions

View File

@@ -27,8 +27,7 @@
"transform": "0.0.0.0 ~ 1.1.1.1 ~ 2.2.2.2 ~ ; 1.1.1.1 ~ 2.2.2.2 ~ 3.3.3.3,4.4.4.4,5.5.5.5 ~ ; 1.1.1.1 ~ 2.2.2.2 ~ ~ 3.3.3.3,4.4.4.4,5.5.5.5"
}
}
],
"keepunknown": false
]
}
]
}

View File

@@ -16,8 +16,7 @@
"transform_table": "0.0.0.0 ~ 1.1.1.1 ~ 2.2.2.2 ~ "
}
}
],
"keepunknown": false
]
}
]
}

View File

@@ -12,8 +12,7 @@
"name": "@",
"target": "1.2.3.4"
}
],
"keepunknown": false
]
}
]
}

View File

@@ -6,8 +6,7 @@
"name": "2.1.in-addr.arpa",
"registrar": "none",
"dnsProviders": {},
"records": [],
"keepunknown": false
"records": []
}
]
}

View File

@@ -12,8 +12,7 @@
"name": "@",
"target": "foo.com."
}
],
"keepunknown": false
]
}
]
}

View File

@@ -17,8 +17,7 @@
"name": "@",
"target": "test.foo.com,https://goo.com/$1"
}
],
"keepunknown": false
]
}
]
}

View File

@@ -37,9 +37,7 @@
"target": "1.2.3.4",
"ttl":259200
}
],
"keepunknown": false
]
}
]
}

View File

@@ -0,0 +1,3 @@
D("foo.com","none",
MX("@",15,"foo.com.")
);

View File

@@ -0,0 +1,19 @@
{
"registrars": [],
"dns_providers": [],
"domains": [
{
"name": "foo.com",
"registrar": "none",
"dnsProviders": {},
"records": [
{
"type": "MX",
"name": "@",
"target": "foo.com.",
"mxpreference": 15
}
]
}
]
}