summaryrefslogtreecommitdiff
path: root/reconfigure/tests/configs/netatalk_tests.py
blob: 30dfcd0aa403f1b18f282804bd23b073547c95c6 (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
46
47
from reconfigure.configs import NetatalkConfig
from reconfigure.tests.configs.base_test import BaseConfigTest


class NetatalkConfigTest (BaseConfigTest):
    sources = {
        None: """
[Global]
afp port=123

[test]
path=/home ;comment
valid users=root
ea=sys
file perm=0755
"""
    }

    result = {
        "global": {
            "zeroconf": True,
            "cnid_listen": "localhost:4700",
            "uam_list": 'uams_dhx.so,uams_dhx2.so',
            "afp_port": "123",
        },
        "shares": [
            {
                "comment": "comment",
                "appledouble": "ea",
                "name": "test",
                "ea": "sys",
                "valid_users": "root",
                "cnid_scheme": "dbd",
                "path": "/home",
                "password": '',
                "file_perm": '0755',
                "directory_perm": '',
                "rolist": '',
                "rwlist": '',
            }
        ]
    }

    config = NetatalkConfig


del BaseConfigTest