summaryrefslogtreecommitdiff
path: root/reconfigure/tests/configs
diff options
context:
space:
mode:
Diffstat (limited to 'reconfigure/tests/configs')
-rw-r--r--reconfigure/tests/configs/base_test.py1
-rw-r--r--reconfigure/tests/configs/exports_tests.py4
-rw-r--r--reconfigure/tests/configs/netatalk_tests.py4
-rw-r--r--reconfigure/tests/configs/samba_tests.py24
4 files changed, 30 insertions, 3 deletions
diff --git a/reconfigure/tests/configs/base_test.py b/reconfigure/tests/configs/base_test.py
index aefb13c..ff0fc78 100644
--- a/reconfigure/tests/configs/base_test.py
+++ b/reconfigure/tests/configs/base_test.py
@@ -19,6 +19,7 @@ class BaseConfigTest (unittest.TestCase):
if config.includer:
config.includer.content_map = self.sources
config.load()
+ #print config.tree._node
#print 'RESULT', config.tree.to_dict()
#print 'SOURCE', self.__class__.result
#self.assertTrue(self.__class__.result== config.tree.to_dict())
diff --git a/reconfigure/tests/configs/exports_tests.py b/reconfigure/tests/configs/exports_tests.py
index 28b53d1..bb44006 100644
--- a/reconfigure/tests/configs/exports_tests.py
+++ b/reconfigure/tests/configs/exports_tests.py
@@ -5,9 +5,9 @@ from reconfigure.tests.configs.base_test import BaseConfigTest
class ExportsConfigTest (BaseConfigTest):
sources = {
None: """
-/another/exported/directory 192.168.0.3(rw,sync) \
+"/another/exported/directory" 192.168.0.3(rw,sync) \
192.168.0.4(ro) # test
-/one 192.168.0.1 # comment
+"/one" 192.168.0.1 # comment
"""
}
result = {
diff --git a/reconfigure/tests/configs/netatalk_tests.py b/reconfigure/tests/configs/netatalk_tests.py
index 7d6d563..d844e9c 100644
--- a/reconfigure/tests/configs/netatalk_tests.py
+++ b/reconfigure/tests/configs/netatalk_tests.py
@@ -12,7 +12,7 @@ afp port=123
path=/home ;comment
valid users=root
ea=sys
-password=
+file perm=0755
"""
}
@@ -33,6 +33,8 @@ password=
"cnid_scheme": "dbd",
"path": "/home",
"password": '',
+ "file_perm": '0755',
+ "directory_perm": '',
}
]
}
diff --git a/reconfigure/tests/configs/samba_tests.py b/reconfigure/tests/configs/samba_tests.py
index 2604639..35a7e02 100644
--- a/reconfigure/tests/configs/samba_tests.py
+++ b/reconfigure/tests/configs/samba_tests.py
@@ -16,6 +16,10 @@ security=user
[homes]
comment=Home Directories
browseable=no
+preopen:names=/*.frm/
+preopen:num_bytes=123
+preopen:helpers=2
+preopen:queuelen=20
[profiles]
comment=Users profiles
@@ -59,6 +63,16 @@ directory mask=0700
"valid_users": "",
"read_list": "",
"dfree_cache_time": "",
+ "oplocks": True,
+ "locking": True,
+ "preopen:queuelen": "20",
+ "preopen:names": "/*.frm/",
+ "preopen:num_bytes": "123",
+ "preopen:helpers": "2",
+ "vfs_objects": "",
+ "recycle:keeptree": False,
+ "recycle:repository": "",
+ "recycle:exclude": '',
},
{
"name": "profiles",
@@ -82,6 +96,16 @@ directory mask=0700
"valid_users": "",
"read_list": "",
"dfree_cache_time": "",
+ "oplocks": True,
+ "locking": True,
+ "preopen:queuelen": "",
+ "preopen:names": "",
+ "preopen:num_bytes": "",
+ "preopen:helpers": "",
+ "vfs_objects": "",
+ "recycle:keeptree": False,
+ "recycle:repository": "",
+ "recycle:exclude": '',
}
]
}