blob: bb44006ea256e4f657311fee85ab9c173f164839 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
from reconfigure.configs import ExportsConfig
from reconfigure.tests.configs.base_test import BaseConfigTest
class ExportsConfigTest (BaseConfigTest):
sources = {
None: """
"/another/exported/directory" 192.168.0.3(rw,sync) \
192.168.0.4(ro) # test
"/one" 192.168.0.1 # comment
"""
}
result = {
"exports": [
{
"comment": "test",
"name": '/another/exported/directory',
"clients": [
{
"name": "192.168.0.3",
"options": "rw,sync"
},
{
"name": "192.168.0.4",
"options": "ro"
}
]
},
{
"comment": "comment",
"name": '/one',
"clients": [
{
"name": "192.168.0.1",
"options": ""
}
]
}
]
}
config = ExportsConfig
del BaseConfigTest
|