mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
gen
This commit is contained in:
7
pkg/js/parse_tests/012-duration.js
Normal file
7
pkg/js/parse_tests/012-duration.js
Normal file
@@ -0,0 +1,7 @@
|
||||
D("foo.com","none",
|
||||
A("@","1.2.3.4", TTL("300s")),
|
||||
A("@","1.2.3.4", TTL("300")),
|
||||
A("@","1.2.3.4", TTL("3m")),
|
||||
A("@","1.2.3.4", TTL("3h")),
|
||||
A("@","1.2.3.4", TTL("3d"))
|
||||
);
|
||||
45
pkg/js/parse_tests/012-duration.json
Normal file
45
pkg/js/parse_tests/012-duration.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"registrars": [],
|
||||
"dns_providers": [],
|
||||
"domains": [
|
||||
{
|
||||
"name": "foo.com",
|
||||
"registrar": "none",
|
||||
"dnsProviders": {},
|
||||
"records": [
|
||||
{
|
||||
"type": "A",
|
||||
"name": "@",
|
||||
"target": "1.2.3.4",
|
||||
"ttl":300
|
||||
},
|
||||
{
|
||||
"type": "A",
|
||||
"name": "@",
|
||||
"target": "1.2.3.4",
|
||||
"ttl":300
|
||||
},
|
||||
{
|
||||
"type": "A",
|
||||
"name": "@",
|
||||
"target": "1.2.3.4",
|
||||
"ttl":180
|
||||
},
|
||||
{
|
||||
"type": "A",
|
||||
"name": "@",
|
||||
"target": "1.2.3.4",
|
||||
"ttl":10800
|
||||
},
|
||||
{
|
||||
"type": "A",
|
||||
"name": "@",
|
||||
"target": "1.2.3.4",
|
||||
"ttl":259200
|
||||
}
|
||||
],
|
||||
|
||||
"keepunknown": false
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user