mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
TESTING: pkg/js/parse_tests: fix a broken test (#1498)
012_duration creates multiple records under the same label, with different TTLs We plan to deprecate this going forward, in #1372. Modify the test in a way that creates one label per record, each having a different TTL format as before, to be validated.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
D("foo.com","none",
|
||||
A("@","1.2.3.4", TTL("300s")),
|
||||
A("@","1.2.3.5", TTL("300")),
|
||||
A("@","1.2.3.6", TTL("3m")),
|
||||
A("@","1.2.3.7", TTL("3h")),
|
||||
A("@","1.2.3.8", TTL("3d"))
|
||||
A("a","1.2.3.5", TTL("300")),
|
||||
A("b","1.2.3.6", TTL("3m")),
|
||||
A("c","1.2.3.7", TTL("3h")),
|
||||
A("d","1.2.3.8", TTL("3d"))
|
||||
);
|
||||
|
@ -15,25 +15,25 @@
|
||||
},
|
||||
{
|
||||
"type": "A",
|
||||
"name": "@",
|
||||
"name": "a",
|
||||
"target": "1.2.3.5",
|
||||
"ttl": 300
|
||||
},
|
||||
{
|
||||
"type": "A",
|
||||
"name": "@",
|
||||
"name": "b",
|
||||
"target": "1.2.3.6",
|
||||
"ttl": 180
|
||||
},
|
||||
{
|
||||
"type": "A",
|
||||
"name": "@",
|
||||
"name": "c",
|
||||
"target": "1.2.3.7",
|
||||
"ttl": 10800
|
||||
},
|
||||
{
|
||||
"type": "A",
|
||||
"name": "@",
|
||||
"name": "d",
|
||||
"target": "1.2.3.8",
|
||||
"ttl": 259200
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
$TTL 300
|
||||
@ IN A 1.2.3.4
|
||||
IN A 1.2.3.5
|
||||
180 IN A 1.2.3.6
|
||||
10800 IN A 1.2.3.7
|
||||
259200 IN A 1.2.3.8
|
||||
a IN A 1.2.3.5
|
||||
b 180 IN A 1.2.3.6
|
||||
c 10800 IN A 1.2.3.7
|
||||
d 259200 IN A 1.2.3.8
|
||||
|
Reference in New Issue
Block a user