summaryrefslogtreecommitdiff
path: root/reconfigure/tests/configs/bind9_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'reconfigure/tests/configs/bind9_tests.py')
-rw-r--r--reconfigure/tests/configs/bind9_tests.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/reconfigure/tests/configs/bind9_tests.py b/reconfigure/tests/configs/bind9_tests.py
new file mode 100644
index 0000000..ee0c05a
--- /dev/null
+++ b/reconfigure/tests/configs/bind9_tests.py
@@ -0,0 +1,28 @@
+from reconfigure.configs import BIND9Config
+from base_test import BaseConfigTest
+
+
+class BIND9ConfigTest (BaseConfigTest):
+ sources = {
+ None: """
+zone "asd" {
+ type master;
+ file "/file";
+};
+
+"""
+ }
+ result = {
+ "zones": [
+ {
+ "type": "master",
+ "name": "asd",
+ "file": "/file"
+ }
+ ]
+ }
+
+ config = BIND9Config
+
+
+del BaseConfigTest