Skip to content

Commit

Permalink
A test case for 'keyword{value;};'
Browse files Browse the repository at this point in the history
json is as currently parsed, that is, wrong
  • Loading branch information
mvidner committed May 27, 2016
1 parent 37cf8c0 commit 506cf69
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/data/braces-without-space/etc/named.conf
@@ -0,0 +1,12 @@
zone "localhost" in {
type master;
file "localhost.zone";
allow-update {none;};
};

zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
# here a space is missing which caused trouble in bsc#976643 (c16)
allow-update{none;};
};
69 changes: 69 additions & 0 deletions test/data/braces-without-space/etc/named.conf.json
@@ -0,0 +1,69 @@
{
"comment": "",
"file": -1,
"kind": "section",
"name": "",
"type": -1,
"value": [
{
"comment": "",
"file": -1,
"kind": "section",
"name": "zone \"localhost\" in",
"type": 0,
"value": [
{
"comment": "",
"kind": "value",
"name": "type",
"type": 0,
"value": "master"
},
{
"comment": "",
"kind": "value",
"name": "file",
"type": 0,
"value": "\"localhost.zone\""
},
{
"comment": "",
"kind": "value",
"name": "allow-update",
"type": 0,
"value": "{none;}"
}
]
},
{
"comment": "\n",
"file": -1,
"kind": "section",
"name": "zone \"0.0.127.in-addr.arpa\" in",
"type": 0,
"value": [
{
"comment": "",
"kind": "value",
"name": "type",
"type": 0,
"value": "master"
},
{
"comment": "",
"kind": "value",
"name": "file",
"type": 0,
"value": "\"127.0.0.zone\""
},
{
"comment": " # here a space is missing which caused trouble in bsc#976643 (c16)\n",
"kind": "value",
"name": "allow-update",
"type": 1,
"value": ""
}
]
}
]
}

0 comments on commit 506cf69

Please sign in to comment.