Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / tests / test_rsyncd.aug
1 module Test_rsyncd =
2
3   let conf = "
4 # A more sophisticated example would be:
5
6 uid = nobody
7         gid = nobody
8 use chroot = yes
9 max connections = 4
10 syslog facility = local5
11 pid file = /var/run/rsyncd.pid
12
13 [ftp]
14   # this is a comment
15   path = /var/ftp/./pub
16   comment = whole ftp area (approx 6.1 GB)
17
18    [cvs]
19   ; comment with semicolon
20   path = /data/cvs
21   comment = CVS repository (requires authentication)
22   auth users = tridge, susan # comment at EOL
23   secrets file = /etc/rsyncd.secrets
24
25 "
26
27   test Rsyncd.lns get conf =
28     { ".anon"
29       {}
30       { "#comment" = "A more sophisticated example would be:" }
31       {}
32       { "uid" = "nobody" }
33       { "gid" = "nobody" }
34       { "use chroot" = "yes" }
35       { "max connections" = "4" }
36       { "syslog facility" = "local5" }
37       { "pid file" = "/var/run/rsyncd.pid" }
38       {}
39     }
40     { "ftp"
41       { "#comment" = "this is a comment" }
42       { "path" = "/var/ftp/./pub" }
43       { "comment" = "whole ftp area (approx 6.1 GB)" }
44       {}
45     }
46     { "cvs"
47       { "#comment" = "comment with semicolon" }
48       { "path" = "/data/cvs" }
49       { "comment" = "CVS repository (requires authentication)" }
50       { "auth users" = "tridge, susan"
51         { "#comment" = "comment at EOL" }
52       }
53       { "secrets file" = "/etc/rsyncd.secrets" }
54       {}
55     }
56