summaryrefslogtreecommitdiff
path: root/reconfigure/tests/parsers/nsd_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'reconfigure/tests/parsers/nsd_tests.py')
-rw-r--r--reconfigure/tests/parsers/nsd_tests.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/reconfigure/tests/parsers/nsd_tests.py b/reconfigure/tests/parsers/nsd_tests.py
new file mode 100644
index 0000000..54bd7a4
--- /dev/null
+++ b/reconfigure/tests/parsers/nsd_tests.py
@@ -0,0 +1,29 @@
+from reconfigure.tests.parsers.base_test import BaseParserTest
+from reconfigure.parsers import NSDParser
+from reconfigure.nodes import *
+
+
+class BIND9ParserTest (BaseParserTest):
+ parser = NSDParser()
+ source = """# asd
+ server:
+ ip4-only: no
+key:
+ name: "mskey"
+"""
+
+ parsed = RootNode(
+ None,
+ Node(
+ 'server',
+ PropertyNode('ip4-only', 'no'),
+ comment='asd'
+ ),
+ Node(
+ 'key',
+ PropertyNode('name', '"mskey"'),
+ )
+ )
+
+
+del BaseParserTest