mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
add some backslash parse tests
This commit is contained in:
13
pkg/js/parse_tests/016-backslash.js
Normal file
13
pkg/js/parse_tests/016-backslash.js
Normal file
@ -0,0 +1,13 @@
|
||||
dmarc = [
|
||||
"v=DMARC1\\;",
|
||||
'p=reject\\;',
|
||||
'sp=reject\\;',
|
||||
'pct=100\\;',
|
||||
'rua=mailto:xx...@yyyy.com\\;',
|
||||
'ruf=mailto:xx...@yyyy.com\\;',
|
||||
'fo=1'
|
||||
].join(' ');
|
||||
|
||||
D("foo.com","none",
|
||||
TXT('_dmarc', dmarc, TTL(300))
|
||||
);
|
19
pkg/js/parse_tests/016-backslash.json
Normal file
19
pkg/js/parse_tests/016-backslash.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"registrars": [],
|
||||
"dns_providers": [],
|
||||
"domains": [
|
||||
{
|
||||
"name": "foo.com",
|
||||
"registrar": "none",
|
||||
"dnsProviders": {},
|
||||
"records": [
|
||||
{
|
||||
"type": "TXT",
|
||||
"name": "_dmarc",
|
||||
"target": "v=DMARC1\\; p=reject\\; sp=reject\\; pct=100\\; rua=mailto:xx...@yyyy.com\\; ruf=mailto:xx...@yyyy.com\\; fo=1",
|
||||
"ttl": 300
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user