summaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2017-01-13 21:46:16 +0700
committerDaniil Baturin <daniil@baturin.org>2017-01-13 21:46:16 +0700
commit3de4790370ec8ee485c3f723c3471116dd094019 (patch)
treee839e0fd9e7b1d879033dca0932e09c98dabb260 /test/data
parentae5ad1099d6e751354ca4b1ded35cf178639c29f (diff)
downloadvyconf-3de4790370ec8ee485c3f723c3471116dd094019.tar.gz
vyconf-3de4790370ec8ee485c3f723c3471116dd094019.zip
T254: disallow node names with characters significant to the curly config parser
(whitespace, braces, square brackets, quotes, and hash).
Diffstat (limited to 'test/data')
-rw-r--r--test/data/interface_definition_sample.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/data/interface_definition_sample.xml b/test/data/interface_definition_sample.xml
index c6185c0..292231e 100644
--- a/test/data/interface_definition_sample.xml
+++ b/test/data/interface_definition_sample.xml
@@ -60,4 +60,21 @@
</node>
</children>
</node>
+ <node name="interfaces">
+ <children>
+ <tagNode name="ethernet">
+ <properties>
+ <!-- no constraint, for testing if tag nodes with invalid characters in names
+ are detected -->
+ </properties>
+ <children>
+ <leafNode name="disable">
+ <properties>
+ <valueless/>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
+ </children>
+ </node>
</interfaceDefinition>