blob: 2325811f43d0793747f5ec69704faa1f7718300b [file] [log] [blame]
Max Rasskazova8db7a92015-05-30 02:23:43 +03001# description format:
2# url:
3# test_function_name_1: expected_result
4# test_function_name_2: [expected, results]
5# test_function_name_3:
6# - expected
7# - results
Max Rasskazovba34b142015-06-04 17:12:27 +03008'ubuntu@172.18.66.89:~/':
9 url: 'ubuntu@172.18.66.89:~/'
10 urljoin:
11 null: 'ubuntu@172.18.66.89:~/'
12 '': 'ubuntu@172.18.66.89:~/'
13 '/': 'ubuntu@172.18.66.89:~/'
14 '/first/level/': 'ubuntu@172.18.66.89:~/first/level/'
15 'first/level': 'ubuntu@172.18.66.89:~/first/level'
16 dirname:
17 null: '/'
18 '': '/'
19 '/': '/'
20 '/first/level/': '/first/level/'
21 'first/level': 'first/level/'
22 filename:
23 null: ''
24 '': ''
25 '/': '/'
26 '/first/level/': '/first/level'
27 'first/level': 'first/level'
28 url_in:
29 null: 'ubuntu@172.18.66.89:~/'
30 '': 'ubuntu@172.18.66.89:~/'
31 '/': 'ubuntu@172.18.66.89:~/'
32 '/first/level/': 'ubuntu@172.18.66.89:~/first/level/'
33 'first/level': 'ubuntu@172.18.66.89:~/first/level/'
34 url_is:
35 null: 'ubuntu@172.18.66.89:~'
36 '': 'ubuntu@172.18.66.89:~'
37 '/': 'ubuntu@172.18.66.89:~'
38 '/first/level/': 'ubuntu@172.18.66.89:~/first/level'
39 'first/level': 'ubuntu@172.18.66.89:~/first/level'
40 exact_match_num: 1
41 classed: 'ssh'
42 parsed:
43 - 'ubuntu'
44 - '172.18.66.89'
45 - '~/'
46 valid: True
Max Rasskazova8db7a92015-05-30 02:23:43 +030047'ubuntu@172.18.66.89:~':
Max Rasskazov64f77bf2015-06-02 15:22:48 +030048 url: 'ubuntu@172.18.66.89:~'
Max Rasskazovba34b142015-06-04 17:12:27 +030049 urljoin:
50 null: 'ubuntu@172.18.66.89:~'
51 '': 'ubuntu@172.18.66.89:~'
52 '/': 'ubuntu@172.18.66.89:~/'
53 '/first/level/': 'ubuntu@172.18.66.89:~/first/level/'
54 'first/level': 'ubuntu@172.18.66.89:~/first/level'
Max Rasskazov2f93dd22015-06-04 14:20:44 +030055 url_in:
Max Rasskazova021f572015-06-04 15:11:13 +030056 null: 'ubuntu@172.18.66.89:~/'
Max Rasskazov2f93dd22015-06-04 14:20:44 +030057 '': 'ubuntu@172.18.66.89:~/'
58 '/': 'ubuntu@172.18.66.89:~/'
59 '/first/level/': 'ubuntu@172.18.66.89:~/first/level/'
60 'first/level': 'ubuntu@172.18.66.89:~/first/level/'
61 url_is:
Max Rasskazova021f572015-06-04 15:11:13 +030062 null: 'ubuntu@172.18.66.89:~'
Max Rasskazov2f93dd22015-06-04 14:20:44 +030063 '': 'ubuntu@172.18.66.89:~'
64 '/': 'ubuntu@172.18.66.89:~'
65 '/first/level/': 'ubuntu@172.18.66.89:~/first/level'
66 'first/level': 'ubuntu@172.18.66.89:~/first/level'
Max Rasskazova8db7a92015-05-30 02:23:43 +030067 exact_match_num: 1
68 classed: 'ssh'
69 parsed:
70 - 'ubuntu'
71 - '172.18.66.89'
Max Rasskazova8db7a92015-05-30 02:23:43 +030072 - '~'
Max Rasskazov64f77bf2015-06-02 15:22:48 +030073 valid: True
Max Rasskazova8db7a92015-05-30 02:23:43 +030074'johnivanov@172.18.66.89:/mirror-sync/otlichniy/reg/exp':
Max Rasskazov64f77bf2015-06-02 15:22:48 +030075 url: 'johnivanov@172.18.66.89:/mirror-sync/otlichniy/reg/exp'
Max Rasskazova8db7a92015-05-30 02:23:43 +030076 exact_match_num: 1
77 classed: 'ssh'
78 parsed:
79 - 'johnivanov'
80 - '172.18.66.89'
Max Rasskazova8db7a92015-05-30 02:23:43 +030081 - '/mirror-sync/otlichniy/reg/exp'
Max Rasskazov64f77bf2015-06-02 15:22:48 +030082 valid: True
Max Rasskazova8db7a92015-05-30 02:23:43 +030083'172.18.66.89:/mirror-sync/otlichniy/reg/exp':
Max Rasskazov64f77bf2015-06-02 15:22:48 +030084 url: '172.18.66.89:/mirror-sync/otlichniy/reg/exp'
Max Rasskazova8db7a92015-05-30 02:23:43 +030085 exact_match_num: 1
86 classed: 'ssh'
87 parsed:
88 - null
89 - '172.18.66.89'
Max Rasskazova8db7a92015-05-30 02:23:43 +030090 - '/mirror-sync/otlichniy/reg/exp'
Max Rasskazov64f77bf2015-06-02 15:22:48 +030091 valid: True
Max Rasskazova8db7a92015-05-30 02:23:43 +030092'172.18.66.89:/':
Max Rasskazov64f77bf2015-06-02 15:22:48 +030093 url: '172.18.66.89:/'
Max Rasskazova8db7a92015-05-30 02:23:43 +030094 exact_match_num: 1
95 classed: 'ssh'
96 parsed:
97 - null
98 - '172.18.66.89'
Max Rasskazova8db7a92015-05-30 02:23:43 +030099 - '/'
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300100 valid: True
Max Rasskazova8db7a92015-05-30 02:23:43 +0300101'172.18.66.89:':
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300102 url: '172.18.66.89:'
Max Rasskazova8db7a92015-05-30 02:23:43 +0300103 exact_match_num: 1
104 classed: 'ssh'
105 parsed:
106 - null
107 - '172.18.66.89'
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300108 - ''
109 valid: True
110'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp':
111 url: 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp'
Max Rasskazovba34b142015-06-04 17:12:27 +0300112 urljoin:
113 null: 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp'
114 '': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp'
115 '/': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/'
116 '/first/level/': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/first/level/'
117 'first/level': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/first/level'
Max Rasskazov2f93dd22015-06-04 14:20:44 +0300118 url_in:
Max Rasskazova021f572015-06-04 15:11:13 +0300119 null: 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/'
Max Rasskazov2f93dd22015-06-04 14:20:44 +0300120 '': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/'
121 '/': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/'
122 '/first/level/': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/first/level/'
123 'first/level': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/first/level/'
124 url_is:
Max Rasskazova021f572015-06-04 15:11:13 +0300125 null: 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp'
Max Rasskazov2f93dd22015-06-04 14:20:44 +0300126 '': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp'
127 '/': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp'
128 '/first/level/': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/first/level'
129 'first/level': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/first/level'
Max Rasskazova8db7a92015-05-30 02:23:43 +0300130 exact_match_num: 1
131 classed: 'rsync1'
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300132 parsed_rsync:
Max Rasskazova8db7a92015-05-30 02:23:43 +0300133 - 'johnivanov'
134 - '172.18.66.89'
135 - null
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300136 - 'mirror-sync'
137 - '/otlichniy/reg/exp'
138 valid: True
139'172.18.66.89::mirror-sync/otlichniy/reg/exp':
140 url: '172.18.66.89::mirror-sync/otlichniy/reg/exp'
141 exact_match_num: 1
142 classed: 'rsync1'
143 parsed_rsync:
144 - null
145 - '172.18.66.89'
146 - null
147 - 'mirror-sync'
148 - '/otlichniy/reg/exp'
149 valid: True
150'johnivanov@172.18.66.89::/mirror-sync/otlichniy/reg/exp':
151 url: 'johnivanov@172.18.66.89::/mirror-sync/otlichniy/reg/exp'
152 exact_match_num: 0
153 classed: null
154 valid: False
Max Rasskazova8db7a92015-05-30 02:23:43 +0300155'172.18.66.89::/mirror-sync/otlichniy/reg/exp':
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300156 url: '172.18.66.89::/mirror-sync/otlichniy/reg/exp'
157 exact_match_num: 0
158 classed: null
159 valid: False
Max Rasskazova8db7a92015-05-30 02:23:43 +0300160'172.18.66.89::/':
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300161 url: '172.18.66.89::/'
162 exact_match_num: 0
163 classed: null
164 valid: False
Max Rasskazova8db7a92015-05-30 02:23:43 +0300165'172.18.66.89::':
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300166 url: '172.18.66.89::'
Max Rasskazov732379b2015-06-02 17:05:20 +0300167 exact_match_num: 0
168 classed: null
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300169 valid: False
Max Rasskazov732379b2015-06-02 17:05:20 +0300170 #url: '172.18.66.89::'
171 #exact_match_num: 1
172 #classed: 'rsync1'
173 #parsed_rsync:
174 # - null
175 # - '172.18.66.89'
176 # - null
177 # - null
178 # - ''
179 #valid: False
Max Rasskazova8db7a92015-05-30 02:23:43 +0300180'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp':
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300181 url: 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp'
Max Rasskazovba34b142015-06-04 17:12:27 +0300182 urljoin:
183 null: 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp'
184 '': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp'
185 '/': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/'
186 '/first/level/': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/first/level/'
187 'first/level': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/first/level'
Max Rasskazov2f93dd22015-06-04 14:20:44 +0300188 url_in:
Max Rasskazova021f572015-06-04 15:11:13 +0300189 null: 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/'
Max Rasskazov2f93dd22015-06-04 14:20:44 +0300190 '': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/'
191 '/': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/'
192 '/first/level/': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/first/level/'
193 'first/level': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/first/level/'
194 url_is:
Max Rasskazova021f572015-06-04 15:11:13 +0300195 null: 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp'
Max Rasskazov2f93dd22015-06-04 14:20:44 +0300196 '': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp'
197 '/': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp'
198 '/first/level/': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/first/level'
199 'first/level': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/first/level'
Max Rasskazova8db7a92015-05-30 02:23:43 +0300200 exact_match_num: 1
201 classed: 'rsync2'
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300202 parsed_rsync:
Max Rasskazova8db7a92015-05-30 02:23:43 +0300203 - 'mirror-sync'
204 - '172.18.66.89'
205 - 7327
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300206 - 'otlichniy'
207 - '/reg/exp'
208 valid: True
Max Rasskazova8db7a92015-05-30 02:23:43 +0300209'rsync://172.18.66.89:7327/mirror-sync/otlichniy/reg/exp':
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300210 url: 'rsync://172.18.66.89:7327/mirror-sync/otlichniy/reg/exp'
Max Rasskazova8db7a92015-05-30 02:23:43 +0300211 exact_match_num: 1
212 classed: 'rsync2'
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300213 parsed_rsync:
Max Rasskazova8db7a92015-05-30 02:23:43 +0300214 - null
215 - '172.18.66.89'
216 - 7327
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300217 - 'mirror-sync'
218 - '/otlichniy/reg/exp'
219 valid: True
Max Rasskazova8db7a92015-05-30 02:23:43 +0300220'rsync://172.18.66.89/mirror-sync/otlichniy/reg/exp':
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300221 url: 'rsync://172.18.66.89/mirror-sync/otlichniy/reg/exp'
Max Rasskazova8db7a92015-05-30 02:23:43 +0300222 exact_match_num: 1
223 classed: 'rsync2'
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300224 parsed_rsync:
Max Rasskazova8db7a92015-05-30 02:23:43 +0300225 - null
226 - '172.18.66.89'
227 - null
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300228 - 'mirror-sync'
229 - '/otlichniy/reg/exp'
230 valid: True
Max Rasskazova8db7a92015-05-30 02:23:43 +0300231'rsync://172.18.66.89/':
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300232 url: 'rsync://172.18.66.89/'
Max Rasskazova8db7a92015-05-30 02:23:43 +0300233 exact_match_num: 1
234 classed: 'rsync2'
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300235 parsed_rsync:
Max Rasskazova8db7a92015-05-30 02:23:43 +0300236 - null
237 - '172.18.66.89'
238 - null
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300239 - null
240 - ''
241 valid: False
Max Rasskazova8db7a92015-05-30 02:23:43 +0300242'rsync://172.18.66.89':
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300243 url: 'rsync://172.18.66.89'
Max Rasskazova8db7a92015-05-30 02:23:43 +0300244 exact_match_num: 1
245 classed: 'rsync2'
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300246 parsed_rsync:
Max Rasskazova8db7a92015-05-30 02:23:43 +0300247 - null
248 - '172.18.66.89'
249 - null
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300250 - null
251 - ''
252 valid: False
Max Rasskazova8db7a92015-05-30 02:23:43 +0300253'/':
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300254 url: '/'
Max Rasskazovba34b142015-06-04 17:12:27 +0300255 urljoin:
256 null: '/'
257 '': '/'
258 '/': '/'
259 '/first/level/': '/first/level/'
260 'first/level': '/first/level'
Max Rasskazov2f93dd22015-06-04 14:20:44 +0300261 url_in:
Max Rasskazova021f572015-06-04 15:11:13 +0300262 null: '/'
Max Rasskazov2f93dd22015-06-04 14:20:44 +0300263 '': '/'
264 '/': '/'
265 '/first/level/': '/first/level/'
266 'first/level': '/first/level/'
267 url_is:
Max Rasskazova021f572015-06-04 15:11:13 +0300268 null: '/'
Max Rasskazov2f93dd22015-06-04 14:20:44 +0300269 '': '/'
270 '/': '/'
271 '/first/level/': '/first/level'
272 'first/level': '/first/level'
Max Rasskazova8db7a92015-05-30 02:23:43 +0300273 exact_match_num: 1
274 classed: 'path'
275 parsed:
276 - null
277 - null
Max Rasskazova8db7a92015-05-30 02:23:43 +0300278 - '/'
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300279 valid: True
Max Rasskazova8db7a92015-05-30 02:23:43 +0300280'dir':
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300281 url: 'dir'
Max Rasskazova8db7a92015-05-30 02:23:43 +0300282 exact_match_num: 1
283 classed: 'path'
284 parsed:
285 - null
286 - null
Max Rasskazova8db7a92015-05-30 02:23:43 +0300287 - 'dir'
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300288 valid: True
Max Rasskazova8db7a92015-05-30 02:23:43 +0300289'/dir':
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300290 url: '/dir'
Max Rasskazova8db7a92015-05-30 02:23:43 +0300291 exact_match_num: 1
292 classed: 'path'
293 parsed:
294 - null
295 - null
Max Rasskazova8db7a92015-05-30 02:23:43 +0300296 - '/dir'
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300297 valid: True
Max Rasskazova8db7a92015-05-30 02:23:43 +0300298'/dir/subdir/':
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300299 url: '/dir/subdir/'
Max Rasskazova8db7a92015-05-30 02:23:43 +0300300 exact_match_num: 1
301 classed: 'path'
302 parsed:
303 - null
304 - null
Max Rasskazova8db7a92015-05-30 02:23:43 +0300305 - '/dir/subdir/'
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300306 valid: True
Max Rasskazova8db7a92015-05-30 02:23:43 +0300307'':
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300308 url: ''
Max Rasskazova8db7a92015-05-30 02:23:43 +0300309 exact_match_num: 0
310 classed: null
Max Rasskazov64f77bf2015-06-02 15:22:48 +0300311 valid: False