Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / tests / test_dput.aug
1 module Test_dput =
2
3    let conf = "# Example dput.cf that defines the host that can be used
4 # with dput for uploading.
5
6 [DEFAULT]
7 login = username
8 method = ftp
9 hash = md5
10 allow_unsigned_uploads = 0
11 run_lintian = 0
12 run_dinstall = 0
13 check_version = 0
14 scp_compress = 0
15 post_upload_command =
16 pre_upload_command =
17 passive_ftp = 1
18 default_host_non-us =
19 default_host_main = hebex
20 allowed_distributions = (?!UNRELEASED)
21
22 [hebex]
23 fqdn = condor.infra.s1.p.fti.net
24 login = anonymous
25 method = ftp
26 incoming = /incoming/hebex
27 passive_ftp = 0
28
29 [dop/desktop]
30 fqdn = condor.infra.s1.p.fti.net
31 login = anonymous
32 method = ftp
33 incoming = /incoming/dop/desktop
34 passive_ftp = 0
35
36 [jp-non-us]
37 fqdn = hp.debian.or.jp
38 incoming = /pub/Incoming/upload-non-US
39 login = anonymous
40
41 # DISABLED due to being repaired currently
42 #[erlangen]
43 #fqdn = ftp.uni-erlangen.de
44 #incoming = /public/pub/Linux/debian/UploadQueue/
45 #login = anonymous
46
47 [ftp-master]
48 fqdn = ftp-master.debian.org
49 incoming = /pub/UploadQueue/
50 login = anonymous
51 post_upload_command = /usr/bin/mini-dinstall --batch
52 # And if you want to override one of the defaults, add it here.
53 # # For example, comment out the next line
54 # # login = another_username
55 # # post_upload_command = /path/to/some/script
56 # # pre_upload_command = /path/to/some/script
57
58 "
59
60    test Dput.lns get conf =
61       { "#comment" = "Example dput.cf that defines the host that can be used" }
62       { "#comment" = "with dput for uploading." }
63       {}
64       { "target" = "DEFAULT"
65          { "login"  = "username" }
66          { "method" = "ftp" }
67          { "hash"   = "md5" }
68          { "allow_unsigned_uploads" = "0" }
69          { "run_lintian" = "0" }
70          { "run_dinstall" = "0" }
71          { "check_version" = "0" }
72          { "scp_compress" = "0" }
73          { "post_upload_command" }
74          { "pre_upload_command" }
75          { "passive_ftp" = "1" }
76          { "default_host_non-us" }
77          { "default_host_main" = "hebex" }
78          { "allowed_distributions" = "(?!UNRELEASED)" }
79          {} }
80       { "target" = "hebex"
81          { "fqdn" = "condor.infra.s1.p.fti.net" }
82          { "login" = "anonymous" }
83          { "method" = "ftp" }
84          { "incoming" = "/incoming/hebex" }
85          { "passive_ftp" = "0" }
86          {} }
87       { "target" = "dop/desktop"
88          { "fqdn" = "condor.infra.s1.p.fti.net" }
89          { "login" = "anonymous" }
90          { "method" = "ftp" }
91          { "incoming" = "/incoming/dop/desktop" }
92          { "passive_ftp" = "0" }
93          {} }
94       { "target" = "jp-non-us"
95          { "fqdn" = "hp.debian.or.jp" }
96          { "incoming" = "/pub/Incoming/upload-non-US" }
97          { "login" = "anonymous" }
98          {}
99          { "#comment" = "DISABLED due to being repaired currently" }
100          { "#comment" = "[erlangen]" }
101          { "#comment" = "fqdn = ftp.uni-erlangen.de" }
102          { "#comment" = "incoming = /public/pub/Linux/debian/UploadQueue/" }
103          { "#comment" = "login = anonymous" }
104          {} }
105       { "target" = "ftp-master"
106          { "fqdn" = "ftp-master.debian.org" }
107          { "incoming" = "/pub/UploadQueue/" }
108          { "login" = "anonymous" }
109          { "post_upload_command" = "/usr/bin/mini-dinstall --batch" }
110          { "#comment" = "And if you want to override one of the defaults, add it here." }
111          { "#comment" = "# For example, comment out the next line" }
112          { "#comment" = "# login = another_username" }
113          { "#comment" = "# post_upload_command = /path/to/some/script" }
114          { "#comment" = "# pre_upload_command = /path/to/some/script" }
115          {} }