sl@0
|
1 |
//Ini file for running InetProUtils tests (Syntax normalisation/Escape encoding/Tel uri parsing & validation).
|
sl@0
|
2 |
|
sl@0
|
3 |
//////////////////////////////////////////////////////////////////////////////////////////////
|
sl@0
|
4 |
//////// Code for PercentEncoding = 1 ////////////////////////////////////////////////////////
|
sl@0
|
5 |
//////// Code for CaseNormalisation = 2 //////////////////////////////////////////////////////
|
sl@0
|
6 |
//////// Code for RemoveDotegments = 3 ///////////////////////////////////////////////////////
|
sl@0
|
7 |
//////// Code for PercentEncoding and CaseNormalisation = 12 /////////////////////////////////
|
sl@0
|
8 |
//////// Code for PercentEncoding and RemoveDotegments = 13 //////////////////////////////////
|
sl@0
|
9 |
//////// Code for CaseNormalisation and RemoveDotegments = 23 ////////////////////////////////
|
sl@0
|
10 |
//////// Code for PercentEncoding, CaseNormalisation and RemoveDotegments = 123 //////////////
|
sl@0
|
11 |
//////// Code for No-Normalisation Technique is executed = 0 /////////////////////////////////
|
sl@0
|
12 |
//////////////////////////////////////////////////////////////////////////////////////////////
|
sl@0
|
13 |
|
sl@0
|
14 |
//////////////////////////////////////////////////////////////
|
sl@0
|
15 |
////////////////Scheme and HostComponents/////////////////////
|
sl@0
|
16 |
////////Percent encoding of unreserved characters/////////////
|
sl@0
|
17 |
//////////Scheme and Host are Case-insensitive////////////////
|
sl@0
|
18 |
//Executes PercentEncoding and CaseNormalisation//////////////
|
sl@0
|
19 |
//////////////////////////////////////////////////////////////
|
sl@0
|
20 |
|
sl@0
|
21 |
[Syntax_Normalisation_Uri_1]
|
sl@0
|
22 |
Uri = %68%74%74%70://exa%4Dple.co%4d/abc/
|
sl@0
|
23 |
ExpUri = http://example.com/abc/
|
sl@0
|
24 |
RetCode = 12
|
sl@0
|
25 |
|
sl@0
|
26 |
//////////////////////////////////////////////////////////////
|
sl@0
|
27 |
////////////////Scheme and HostComponents/////////////////////
|
sl@0
|
28 |
//////////Scheme and Host are Case-insensitive////////////////
|
sl@0
|
29 |
////////////Executes CaseNormalisation////////////////////////
|
sl@0
|
30 |
//////////////////////////////////////////////////////////////
|
sl@0
|
31 |
|
sl@0
|
32 |
[Syntax_Normalisation_Uri_2]
|
sl@0
|
33 |
Uri = htTP://wwW.ExaMpLe.COM/abc/AD
|
sl@0
|
34 |
ExpUri = http://www.example.com/abc/AD
|
sl@0
|
35 |
RetCode = 2
|
sl@0
|
36 |
|
sl@0
|
37 |
//////////////////////////////////////////////////////////////
|
sl@0
|
38 |
////////////////Scheme and Host Components////////////////////
|
sl@0
|
39 |
////////Percent encoding of unreserved characters/////////////
|
sl@0
|
40 |
//////////Scheme and Host are Case-insensitive////////////////
|
sl@0
|
41 |
//Executes PercentEncoding and CaseNormalisation//////////////
|
sl@0
|
42 |
//////////////////////////////////////////////////////////////
|
sl@0
|
43 |
|
sl@0
|
44 |
[Syntax_Normalisation_Uri_3]
|
sl@0
|
45 |
Uri = htTP://wwW.ExaMpLe.CO%4d/abc/AD
|
sl@0
|
46 |
ExpUri = http://www.example.com/abc/AD
|
sl@0
|
47 |
RetCode = 12
|
sl@0
|
48 |
|
sl@0
|
49 |
//////////////////////////////////////////////////////////////
|
sl@0
|
50 |
////////////////Scheme, Host and Path Components//////////////
|
sl@0
|
51 |
////////Percent encoding of unreserved characters/////////////
|
sl@0
|
52 |
//////////Scheme and Host are Case-insensitive////////////////
|
sl@0
|
53 |
//Executes PercentEncoding and CaseNormalisation//////////////
|
sl@0
|
54 |
//////////////////////////////////////////////////////////////
|
sl@0
|
55 |
|
sl@0
|
56 |
[Syntax_Normalisation_Uri_4]
|
sl@0
|
57 |
Uri = htt%70://user:pass@LOcaTion.co%4D:1666/AbcD/ad%6a/ResouRce.cgi;x=123;df223;2342;2323?asd=b#part
|
sl@0
|
58 |
ExpUri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b#part
|
sl@0
|
59 |
RetCode = 12
|
sl@0
|
60 |
|
sl@0
|
61 |
//////////////////////////////////////////////////////////////
|
sl@0
|
62 |
////////////////Scheme and Host Components////////////////////
|
sl@0
|
63 |
////Percent encoding of unreserved and reserved characters////
|
sl@0
|
64 |
//////////Scheme and Host are Case-insensitive////////////////
|
sl@0
|
65 |
//Executes PercentEncoding and CaseNormalisation//////////////
|
sl@0
|
66 |
//////////////////////////////////////////////////////////////
|
sl@0
|
67 |
|
sl@0
|
68 |
[Syntax_Normalisation_Uri_5]
|
sl@0
|
69 |
Uri = %68%74%74%70://user:pass@%40LOcaTion.co%4D:1666/AbcD/
|
sl@0
|
70 |
ExpUri = http://user:pass@%40location.com:1666/AbcD/
|
sl@0
|
71 |
RetCode = 12
|
sl@0
|
72 |
|
sl@0
|
73 |
//////////////////////////////////////////////////////////////
|
sl@0
|
74 |
////////////////Scheme, Host and Path Components//////////////
|
sl@0
|
75 |
////Percent encoding of unreserved and reserved characters////
|
sl@0
|
76 |
//////////Scheme and Host are Case-insensitive////////////////
|
sl@0
|
77 |
//Executes PercentEncoding and CaseNormalisation//////////////
|
sl@0
|
78 |
//////////////////////////////////////////////////////////////
|
sl@0
|
79 |
|
sl@0
|
80 |
[Syntax_Normalisation_Uri_6]
|
sl@0
|
81 |
Uri = %68%74%74%70%2f://user:pass@%40LOcaTion.co%4D:1666/AbcD%2f/
|
sl@0
|
82 |
ExpUri = http%2F://user:pass@%40location.com:1666/AbcD%2F/
|
sl@0
|
83 |
RetCode = 12
|
sl@0
|
84 |
|
sl@0
|
85 |
//////////////////////////////////////////////////////////////
|
sl@0
|
86 |
/////////////////////Scheme Component/////////////////////////
|
sl@0
|
87 |
////Percent encoding of unreserved and reserved characters////
|
sl@0
|
88 |
//Executes PercentEncoding and CaseNormalisation//////////////
|
sl@0
|
89 |
//////////////////////////////////////////////////////////////
|
sl@0
|
90 |
|
sl@0
|
91 |
[Syntax_Normalisation_Uri_7]
|
sl@0
|
92 |
Uri = %68%74%74%70%3a%3b%3c%3d://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
93 |
ExpUri = http%3A%3B%3C%3D://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
94 |
RetCode = 12
|
sl@0
|
95 |
|
sl@0
|
96 |
//////////////////////////////////////////////////////////////
|
sl@0
|
97 |
/////////////////////Scheme Component/////////////////////////
|
sl@0
|
98 |
////Percent encoding of unreserved Uppercase characters///////
|
sl@0
|
99 |
///////////////Scheme is Case-insensitive/////////////////////
|
sl@0
|
100 |
//Executes PercentEncoding and CaseNormalisation//////////////
|
sl@0
|
101 |
//////////////////////////////////////////////////////////////
|
sl@0
|
102 |
|
sl@0
|
103 |
[Syntax_Normalisation_Uri_8]
|
sl@0
|
104 |
Uri = %48%54%54%50://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
105 |
ExpUri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
106 |
RetCode = 12
|
sl@0
|
107 |
|
sl@0
|
108 |
///////////////////////////////////////////////////////////////
|
sl@0
|
109 |
/////////////////////UserInfo Component////////////////////////
|
sl@0
|
110 |
////Percent encoding of unreserved characters//////////////////
|
sl@0
|
111 |
///////////////UserInfo is Case-sensitive//////////////////////
|
sl@0
|
112 |
////////////Executes PercentEncoding //////////////////////////
|
sl@0
|
113 |
///////////////////////////////////////////////////////////////
|
sl@0
|
114 |
|
sl@0
|
115 |
[Syntax_Normalisation_Uri_9]
|
sl@0
|
116 |
Uri = http://%55sEr:pa%73%53@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
117 |
ExpUri = http://UsEr:pasS@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
118 |
RetCode = 1
|
sl@0
|
119 |
|
sl@0
|
120 |
///////////////////////////////////////////////////////////////
|
sl@0
|
121 |
/////////////////////UserInfo Component////////////////////////
|
sl@0
|
122 |
///////////////UserInfo is Case-sensitive//////////////////////
|
sl@0
|
123 |
///////////////Already in Normalsied form /////////////////////
|
sl@0
|
124 |
///////////////////////////////////////////////////////////////
|
sl@0
|
125 |
|
sl@0
|
126 |
[Syntax_Normalisation_Uri_10]
|
sl@0
|
127 |
Uri = http://USER:PAsS@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
128 |
ExpUri = http://USER:PAsS@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
129 |
RetCode = 0
|
sl@0
|
130 |
|
sl@0
|
131 |
///////////////////////////////////////////////////////////////
|
sl@0
|
132 |
/////////////////////UserInfo Component////////////////////////
|
sl@0
|
133 |
////Percent encoding of unreserved and reserved characters/////
|
sl@0
|
134 |
///////////////UserInfo is Case-sensitive//////////////////////
|
sl@0
|
135 |
//Executes PercentEncoding and CaseNormalisation///////////////
|
sl@0
|
136 |
///////////////////////////////////////////////////////////////
|
sl@0
|
137 |
|
sl@0
|
138 |
[Syntax_Normalisation_Uri_11]
|
sl@0
|
139 |
Uri = http://USeR:PAs%3b%3c%73@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
140 |
ExpUri = http://USeR:PAs%3B%3Cs@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
141 |
RetCode = 12
|
sl@0
|
142 |
|
sl@0
|
143 |
///////////////////////////////////////////////////////////////
|
sl@0
|
144 |
/////////////////////Host Component////////////////////////////
|
sl@0
|
145 |
////Percent encoding of unreserved and reserved characters/////
|
sl@0
|
146 |
///////////////Host is Case-insensitive////////////////////////
|
sl@0
|
147 |
//Executes PercentEncoding and CaseNormalisation///////////////
|
sl@0
|
148 |
///////////////////////////////////////////////////////////////
|
sl@0
|
149 |
|
sl@0
|
150 |
[Syntax_Normalisation_Uri_12]
|
sl@0
|
151 |
Uri = http://user:pass@l%4f%43ation.com%3a:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
152 |
ExpUri = http://user:pass@location.com%3A:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
153 |
RetCode = 12
|
sl@0
|
154 |
|
sl@0
|
155 |
///////////////////////////////////////////////////////////////
|
sl@0
|
156 |
/////////////////////Host Component////////////////////////////
|
sl@0
|
157 |
////Percent encoding of reserved characters////////////////////
|
sl@0
|
158 |
///////////////Host is Case-insensitive////////////////////////
|
sl@0
|
159 |
////////////Executes CaseNormalisation/////////////////////////
|
sl@0
|
160 |
///////////////////////////////////////////////////////////////
|
sl@0
|
161 |
|
sl@0
|
162 |
[Syntax_Normalisation_Uri_13]
|
sl@0
|
163 |
Uri = http://user:pass@LOCATION.COM%3A:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
164 |
ExpUri = http://user:pass@location.com%3A:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
165 |
RetCode = 2
|
sl@0
|
166 |
|
sl@0
|
167 |
///////////////////////////////////////////////////////////////
|
sl@0
|
168 |
/////////////////////Port Component////////////////////////////
|
sl@0
|
169 |
////Percent encoding of unreserved character///////////////////
|
sl@0
|
170 |
////////////Executes PercentEncoding //////////////////////////
|
sl@0
|
171 |
///////////////////////////////////////////////////////////////
|
sl@0
|
172 |
|
sl@0
|
173 |
[Syntax_Normalisation_Uri_14]
|
sl@0
|
174 |
Uri = http://user:pass@location.com:166%36/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
175 |
ExpUri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
176 |
RetCode = 1
|
sl@0
|
177 |
|
sl@0
|
178 |
///////////////////////////////////////////////////////////////
|
sl@0
|
179 |
/////////////////////Port Component////////////////////////////
|
sl@0
|
180 |
////Percent encoding of reserved character/////////////////////
|
sl@0
|
181 |
////////////Executes CaseNormalisation/////////////////////////
|
sl@0
|
182 |
///////////////////////////////////////////////////////////////
|
sl@0
|
183 |
|
sl@0
|
184 |
[Syntax_Normalisation_Uri_15]
|
sl@0
|
185 |
Uri = http://user:pass@location.com:166%3a/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
186 |
ExpUri = http://user:pass@location.com:166%3A/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b
|
sl@0
|
187 |
RetCode = 2
|
sl@0
|
188 |
|
sl@0
|
189 |
///////////////////////////////////////////////////////////////
|
sl@0
|
190 |
/////////////////////Path Component////////////////////////////
|
sl@0
|
191 |
////Percent encoding of unreserved character///////////////////
|
sl@0
|
192 |
///////////////Path is Case-sensitive//////////////////////////
|
sl@0
|
193 |
////////////Executes PercentEncoding //////////////////////////
|
sl@0
|
194 |
///////////////////////////////////////////////////////////////
|
sl@0
|
195 |
|
sl@0
|
196 |
[Syntax_Normalisation_Uri_16]
|
sl@0
|
197 |
Uri = http://user:pass@location.com:1666/AbcD/%61%64%6a/Resource.cgi;x=123;D%66%3223;2342;2323?asd=b
|
sl@0
|
198 |
ExpUri = http://user:pass@location.com:1666/AbcD/adj/Resource.cgi;x=123;Df223;2342;2323?asd=b
|
sl@0
|
199 |
RetCode = 1
|
sl@0
|
200 |
|
sl@0
|
201 |
///////////////////////////////////////////////////////////////
|
sl@0
|
202 |
/////////////////////Path Component////////////////////////////
|
sl@0
|
203 |
////Percent encoding of reserved character/////////////////////
|
sl@0
|
204 |
///////////////Path is Case-sensitive//////////////////////////
|
sl@0
|
205 |
////////////Executes CaseNormalisation/////////////////////////
|
sl@0
|
206 |
///////////////////////////////////////////////////////////////
|
sl@0
|
207 |
|
sl@0
|
208 |
[Syntax_Normalisation_Uri_17]
|
sl@0
|
209 |
Uri = http://user:pass@location.com:1666/AbcD/adj/Resource.cgi;x=123%3b;Df223;2342;2323?asd=b
|
sl@0
|
210 |
ExpUri = http://user:pass@location.com:1666/AbcD/adj/Resource.cgi;x=123%3B;Df223;2342;2323?asd=b
|
sl@0
|
211 |
RetCode = 2
|
sl@0
|
212 |
|
sl@0
|
213 |
///////////////////////////////////////////////////////////////
|
sl@0
|
214 |
/////////////////////Query Component///////////////////////////
|
sl@0
|
215 |
////Percent encoding of Unreserved and reserved characters/////
|
sl@0
|
216 |
///////////////Query is Case-sensitive/////////////////////////
|
sl@0
|
217 |
//Executes PercentEncoding and CaseNormalisation///////////////
|
sl@0
|
218 |
///////////////////////////////////////////////////////////////
|
sl@0
|
219 |
|
sl@0
|
220 |
[Syntax_Normalisation_Uri_18]
|
sl@0
|
221 |
Uri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=B%35%2a%20%21
|
sl@0
|
222 |
ExpUri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=B5%2A%20%21
|
sl@0
|
223 |
RetCode = 12
|
sl@0
|
224 |
|
sl@0
|
225 |
///////////////////////////////////////////////////////////////
|
sl@0
|
226 |
/////////////////////Fragment Component////////////////////////
|
sl@0
|
227 |
///////////////Fragment is Case-sensitive//////////////////////
|
sl@0
|
228 |
///////////////Already in Normalsied form /////////////////////
|
sl@0
|
229 |
///////////////////////////////////////////////////////////////
|
sl@0
|
230 |
|
sl@0
|
231 |
[Syntax_Normalisation_Uri_19]
|
sl@0
|
232 |
Uri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b5#pArt
|
sl@0
|
233 |
ExpUri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b5#pArt
|
sl@0
|
234 |
RetCode = 0
|
sl@0
|
235 |
|
sl@0
|
236 |
///////////////////////////////////////////////////////////////
|
sl@0
|
237 |
/////////////////////Fragment Component////////////////////////
|
sl@0
|
238 |
////Percent encoding of reserved characters////////////////////
|
sl@0
|
239 |
////////////Executes CaseNormalisation/////////////////////////
|
sl@0
|
240 |
///////////////////////////////////////////////////////////////
|
sl@0
|
241 |
|
sl@0
|
242 |
[Syntax_Normalisation_Uri_20]
|
sl@0
|
243 |
Uri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b5#pArt%2a
|
sl@0
|
244 |
ExpUri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b5#pArt%2A
|
sl@0
|
245 |
RetCode = 2
|
sl@0
|
246 |
|
sl@0
|
247 |
///////////////////////////////////////////////////////////////
|
sl@0
|
248 |
/////////////////////All Uri Components////////////////////////
|
sl@0
|
249 |
////Percent encoding of Unreserved and reserved characters/////
|
sl@0
|
250 |
///////////////Scheme and Host are Case-insensitive////////////
|
sl@0
|
251 |
//Executes PercentEncoding and CaseNormalisation///////////////
|
sl@0
|
252 |
///////////////////////////////////////////////////////////////
|
sl@0
|
253 |
|
sl@0
|
254 |
[Syntax_Normalisation_Uri_21]
|
sl@0
|
255 |
Uri = %68%74%74%70%3a%3b%3c%3d://%55sEr:pa%73%53@l%4f%43ation.com:166%3a/AbcD/%61%64%6a/Resource.cgi;x=123;D%66%3223;2342;2323?asd=B%35%2a%20%21#pArt%2a
|
sl@0
|
256 |
ExpUri = http%3A%3B%3C%3D://UsEr:pasS@location.com:166%3A/AbcD/adj/Resource.cgi;x=123;Df223;2342;2323?asd=B5%2A%20%21#pArt%2A
|
sl@0
|
257 |
RetCode = 12
|
sl@0
|
258 |
|
sl@0
|
259 |
///////////////////////////////////////////////////////////////
|
sl@0
|
260 |
/////////////////////All Uri Components////////////////////////
|
sl@0
|
261 |
///////Percent encoding of Unreserved characters///////////////
|
sl@0
|
262 |
///////////////Scheme and Host are Case-insensitive////////////
|
sl@0
|
263 |
//Executes PercentEncoding and CaseNormalisation///////////////
|
sl@0
|
264 |
///////////////////////////////////////////////////////////////
|
sl@0
|
265 |
|
sl@0
|
266 |
[Syntax_Normalisation_Uri_22]
|
sl@0
|
267 |
Uri = %68%74%74%70://%75%73%65%72:pa%73%73@l%4f%43ation.com:166%36/AbcD/%61%64%6a/Resource.cgi;x=123;D%66%3223;2342;2323?asd=B%35#pArt
|
sl@0
|
268 |
ExpUri = http://user:pass@location.com:1666/AbcD/adj/Resource.cgi;x=123;Df223;2342;2323?asd=B5#pArt
|
sl@0
|
269 |
RetCode = 12
|
sl@0
|
270 |
|
sl@0
|
271 |
///////////////////////////////////////////////////////////////
|
sl@0
|
272 |
////////////Path Component with dot segments///////////////////
|
sl@0
|
273 |
//////////////Executes RemoveDotSegments///////////////////////
|
sl@0
|
274 |
///////////////////////////////////////////////////////////////
|
sl@0
|
275 |
|
sl@0
|
276 |
[Syntax_Normalisation_Uri_23]
|
sl@0
|
277 |
Uri = http://example.com/a/b/c/../../../g
|
sl@0
|
278 |
ExpUri = http://example.com/g
|
sl@0
|
279 |
RetCode = 3
|
sl@0
|
280 |
|
sl@0
|
281 |
///////////////////////////////////////////////////////////////
|
sl@0
|
282 |
////////////Path Component with dot segments///////////////////
|
sl@0
|
283 |
//////////////Executes RemoveDotSegments///////////////////////
|
sl@0
|
284 |
///////////////////////////////////////////////////////////////
|
sl@0
|
285 |
|
sl@0
|
286 |
[Syntax_Normalisation_Uri_24]
|
sl@0
|
287 |
Uri = http://example.com/a/b/c/../../../../g
|
sl@0
|
288 |
ExpUri = http://example.com/g
|
sl@0
|
289 |
RetCode = 3
|
sl@0
|
290 |
|
sl@0
|
291 |
///////////////////////////////////////////////////////////////
|
sl@0
|
292 |
////////////Path Component with dot segments///////////////////
|
sl@0
|
293 |
//////////////Executes RemoveDotSegments///////////////////////
|
sl@0
|
294 |
///////////////////////////////////////////////////////////////
|
sl@0
|
295 |
|
sl@0
|
296 |
[Syntax_Normalisation_Uri_25]
|
sl@0
|
297 |
Uri = http://example.com/a/b/c/./../g
|
sl@0
|
298 |
ExpUri = http://example.com/a/b/g
|
sl@0
|
299 |
RetCode = 3
|
sl@0
|
300 |
|
sl@0
|
301 |
///////////////////////////////////////////////////////////////
|
sl@0
|
302 |
////////////Path Component with dot segments///////////////////
|
sl@0
|
303 |
//////////////Executes RemoveDotSegments///////////////////////
|
sl@0
|
304 |
///////////////////////////////////////////////////////////////
|
sl@0
|
305 |
|
sl@0
|
306 |
[Syntax_Normalisation_Uri_26]
|
sl@0
|
307 |
Uri = http://example.com/a/b/c/./g.
|
sl@0
|
308 |
ExpUri = http://example.com/a/b/c/g.
|
sl@0
|
309 |
RetCode = 3
|
sl@0
|
310 |
|
sl@0
|
311 |
///////////////////////////////////////////////////////////////
|
sl@0
|
312 |
////////////Path Component with dot segments///////////////////
|
sl@0
|
313 |
//////////////Executes RemoveDotSegments///////////////////////
|
sl@0
|
314 |
///////////////////////////////////////////////////////////////
|
sl@0
|
315 |
|
sl@0
|
316 |
[Syntax_Normalisation_Uri_27]
|
sl@0
|
317 |
Uri = http://example.com/a/b/c/./g/.
|
sl@0
|
318 |
ExpUri = http://example.com/a/b/c/g/
|
sl@0
|
319 |
RetCode = 3
|
sl@0
|
320 |
|
sl@0
|
321 |
///////////////////////////////////////////////////////////////
|
sl@0
|
322 |
////////////Path Component with dot segments///////////////////
|
sl@0
|
323 |
//////////////Executes RemoveDotSegments///////////////////////
|
sl@0
|
324 |
///////////////////////////////////////////////////////////////
|
sl@0
|
325 |
|
sl@0
|
326 |
[Syntax_Normalisation_Uri_28]
|
sl@0
|
327 |
Uri = http://example.com/a/b/c/./.g
|
sl@0
|
328 |
ExpUri = http://example.com/a/b/c/.g
|
sl@0
|
329 |
RetCode = 3
|
sl@0
|
330 |
|
sl@0
|
331 |
///////////////////////////////////////////////////////////////
|
sl@0
|
332 |
////////////Path Component with dot segments///////////////////
|
sl@0
|
333 |
//////////////Executes RemoveDotSegments///////////////////////
|
sl@0
|
334 |
///////////////////////////////////////////////////////////////
|
sl@0
|
335 |
|
sl@0
|
336 |
[Syntax_Normalisation_Uri_29]
|
sl@0
|
337 |
Uri = http://example.com/a/b/c/./..g
|
sl@0
|
338 |
ExpUri = http://example.com/a/b/c/..g
|
sl@0
|
339 |
RetCode = 3
|
sl@0
|
340 |
|
sl@0
|
341 |
///////////////////////////////////////////////////////////////
|
sl@0
|
342 |
////////////Path Component with dot segments///////////////////
|
sl@0
|
343 |
//////////////Executes RemoveDotSegments///////////////////////
|
sl@0
|
344 |
///////////////////////////////////////////////////////////////
|
sl@0
|
345 |
|
sl@0
|
346 |
[Syntax_Normalisation_Uri_30]
|
sl@0
|
347 |
Uri = http://example.com/a/b/c/../.g
|
sl@0
|
348 |
ExpUri = http://example.com/a/b/.g
|
sl@0
|
349 |
RetCode = 3
|
sl@0
|
350 |
|
sl@0
|
351 |
///////////////////////////////////////////////////////////////
|
sl@0
|
352 |
////////////Path Component with dot segments///////////////////
|
sl@0
|
353 |
///////////////Already in Normalsied form /////////////////////
|
sl@0
|
354 |
///////////////////////////////////////////////////////////////
|
sl@0
|
355 |
|
sl@0
|
356 |
[Syntax_Normalisation_Uri_31]
|
sl@0
|
357 |
Uri = http://example.com/a/b/c/.g
|
sl@0
|
358 |
ExpUri = http://example.com/a/b/c/.g
|
sl@0
|
359 |
RetCode = 0
|
sl@0
|
360 |
|
sl@0
|
361 |
///////////////////////////////////////////////////////////////
|
sl@0
|
362 |
////////////Path Component with dot segments///////////////////
|
sl@0
|
363 |
//////////////Executes RemoveDotSegments///////////////////////
|
sl@0
|
364 |
///////////////////////////////////////////////////////////////
|
sl@0
|
365 |
|
sl@0
|
366 |
[Syntax_Normalisation_Uri_32]
|
sl@0
|
367 |
Uri = http://example.com/a/b/c/g/./h
|
sl@0
|
368 |
ExpUri = http://example.com/a/b/c/g/h
|
sl@0
|
369 |
RetCode = 3
|
sl@0
|
370 |
|
sl@0
|
371 |
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
sl@0
|
372 |
////////////Path Component with dot segments/////////////////////////////////////////////////////////
|
sl@0
|
373 |
//////////////Executes CaseNormalisation and RemoveDotegments////////////////////////////////////////
|
sl@0
|
374 |
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
sl@0
|
375 |
|
sl@0
|
376 |
[Syntax_Normalisation_Uri_33]
|
sl@0
|
377 |
Uri = hTTp://exaMple.coM/a/b/c/g/../h
|
sl@0
|
378 |
ExpUri = http://example.com/a/b/c/h
|
sl@0
|
379 |
RetCode = 23
|
sl@0
|
380 |
|
sl@0
|
381 |
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
sl@0
|
382 |
////////////Path Component with dot segments/////////////////////////////////////////////////////////
|
sl@0
|
383 |
//////////////Executes PercentEncoding and RemoveDotegments//////////////////////////////////////////
|
sl@0
|
384 |
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
sl@0
|
385 |
|
sl@0
|
386 |
[Syntax_Normalisation_Uri_34]
|
sl@0
|
387 |
Uri = %68%74%74%70://example.com/a/b/c/g;x=1/./y
|
sl@0
|
388 |
ExpUri = http://example.com/a/b/c/g;x=1/y
|
sl@0
|
389 |
RetCode = 13
|
sl@0
|
390 |
|
sl@0
|
391 |
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
sl@0
|
392 |
////////////Path Component with dot segments/////////////////////////////////////////////////////////
|
sl@0
|
393 |
//////////////Executes PercentEncoding, CaseNormalisation and RemoveDotegments///////////////////////
|
sl@0
|
394 |
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
sl@0
|
395 |
|
sl@0
|
396 |
[Syntax_Normalisation_Uri_35]
|
sl@0
|
397 |
Uri = %68%74%74%70://exa%4Dple.co%4d/d/c/b/a/.././abc/./../..
|
sl@0
|
398 |
ExpUri = http://example.com/d/c/
|
sl@0
|
399 |
RetCode = 123
|
sl@0
|
400 |
|
sl@0
|
401 |
///////////////////////////////////////////////////////////////
|
sl@0
|
402 |
///////Path and Query Components with dot segments/////////////
|
sl@0
|
403 |
//Query Components with dot segments can have no impact////////
|
sl@0
|
404 |
//////////////Executes RemoveDotSegments///////////////////////
|
sl@0
|
405 |
///////////////////////////////////////////////////////////////
|
sl@0
|
406 |
|
sl@0
|
407 |
[Syntax_Normalisation_Uri_36]
|
sl@0
|
408 |
Uri = http://example.com/d/c/b/a/.././abc/./../../g?y/./x
|
sl@0
|
409 |
ExpUri = http://example.com/d/c/g?y/./x
|
sl@0
|
410 |
RetCode = 3
|
sl@0
|
411 |
|
sl@0
|
412 |
///////////////////////////////////////////////////////////////
|
sl@0
|
413 |
///////Path and Query Components with dot segments/////////////
|
sl@0
|
414 |
//Query Components with dot segments can have no impact////////
|
sl@0
|
415 |
//////////////Executes RemoveDotSegments///////////////////////
|
sl@0
|
416 |
///////////////////////////////////////////////////////////////
|
sl@0
|
417 |
|
sl@0
|
418 |
[Syntax_Normalisation_Uri_37]
|
sl@0
|
419 |
Uri = http://example.com/d/c/b/a/.././abc/./../../g?y/../x
|
sl@0
|
420 |
ExpUri = http://example.com/d/c/g?y/../x
|
sl@0
|
421 |
RetCode = 3
|
sl@0
|
422 |
|
sl@0
|
423 |
///////////////////////////////////////////////////////////////
|
sl@0
|
424 |
///////Path and Fragment Components with dot segments//////////
|
sl@0
|
425 |
//Fragment Components with dot segments can have no impact////
|
sl@0
|
426 |
//////////////Executes RemoveDotSegments///////////////////////
|
sl@0
|
427 |
///////////////////////////////////////////////////////////////
|
sl@0
|
428 |
|
sl@0
|
429 |
[Syntax_Normalisation_Uri_38]
|
sl@0
|
430 |
Uri = http://example.com/d/c/b/a/.././abc/./../../g#s/./x
|
sl@0
|
431 |
ExpUri = http://example.com/d/c/g#s/./x
|
sl@0
|
432 |
RetCode = 3
|
sl@0
|
433 |
|
sl@0
|
434 |
///////////////////////////////////////////////////////////////
|
sl@0
|
435 |
///////Path and Fragment Components with dot segments//////////
|
sl@0
|
436 |
//Fragment Components with dot segments can have no impact////
|
sl@0
|
437 |
//////////////Executes RemoveDotSegments///////////////////////
|
sl@0
|
438 |
///////////////////////////////////////////////////////////////
|
sl@0
|
439 |
|
sl@0
|
440 |
[Syntax_Normalisation_Uri_39]
|
sl@0
|
441 |
Uri = http://example.com/d/c/b/a/.././abc/./../../g#s/../x
|
sl@0
|
442 |
ExpUri = http://example.com/d/c/g#s/../x
|
sl@0
|
443 |
RetCode = 3
|
sl@0
|
444 |
|
sl@0
|
445 |
/////////////////////////////////////////////////////////////////////////
|
sl@0
|
446 |
///////Path, Query and Fragment Components with dot segments/////////////
|
sl@0
|
447 |
//Query and Fragment Components with dot segments can have no impact////
|
sl@0
|
448 |
//////////////////Executes RemoveDotSegments/////////////////////////////
|
sl@0
|
449 |
/////////////////////////////////////////////////////////////////////////
|
sl@0
|
450 |
|
sl@0
|
451 |
[Syntax_Normalisation_Uri_40]
|
sl@0
|
452 |
Uri = http://example.com/d/c/b/a/.././abc/./../../g?y/./x#s/../z
|
sl@0
|
453 |
ExpUri = http://example.com/d/c/g?y/./x#s/../z
|
sl@0
|
454 |
RetCode = 3
|
sl@0
|
455 |
|
sl@0
|
456 |
/////////////////////////////////////////////////////////////////////////
|
sl@0
|
457 |
///////Path, Query and Fragment Components with dot segments/////////////
|
sl@0
|
458 |
//Query and Fragment Components with dot segments can have no impact////
|
sl@0
|
459 |
//////////////////Executes RemoveDotSegments/////////////////////////////
|
sl@0
|
460 |
/////////////////////////////////////////////////////////////////////////
|
sl@0
|
461 |
|
sl@0
|
462 |
[Syntax_Normalisation_Uri_41]
|
sl@0
|
463 |
Uri = http://example.com/d/c/b/a/.././abc/./../../g?y/./x#s/./z
|
sl@0
|
464 |
ExpUri = http://example.com/d/c/g?y/./x#s/./z
|
sl@0
|
465 |
RetCode = 3
|
sl@0
|
466 |
|
sl@0
|
467 |
///////////////////////////////////////////////////////////////
|
sl@0
|
468 |
//////Escape encoding covering the caharcters * ! ' ( )////////
|
sl@0
|
469 |
///////////////////////////////////////////////////////////////
|
sl@0
|
470 |
|
sl@0
|
471 |
[Escape_Encoding_Uri_1]
|
sl@0
|
472 |
EscDecoded = ;/?:@&=+$,*!'()
|
sl@0
|
473 |
EscEncodedUri = %3B%2F%3F%3A%40%26%3D%2B%24,%2A%21%27%28%29
|
sl@0
|
474 |
EscEncodedAut = %3B%2F%3F%3A%40&=+$,*!'()
|
sl@0
|
475 |
EscEncodedUriPath = %3B%2F%3F:@&%3D+$,*!'()
|
sl@0
|
476 |
EscEncodedUriQuery = %3B%2F%3F%3A%40%26%3D%2B%24%2C*!'()
|
sl@0
|
477 |
EscEncodedUriNormal = ;/?:@&=+$,*!'()
|
sl@0
|
478 |
|
sl@0
|
479 |
|
sl@0
|
480 |
[Escape_Encoding_Uri_2]
|
sl@0
|
481 |
EscDecoded = <>#%"{}|\^[]'*!()
|
sl@0
|
482 |
EscEncodedUri = %3C%3E%23%25%22%7B%7D%7C%5C%5E%5B%5D%27%2A%21%28%29
|
sl@0
|
483 |
EscEncodedAut = %3C%3E%23%25%22%7B%7D%7C%5C%5E%5B%5D'*!()
|
sl@0
|
484 |
EscEncodedUriPath = %3C%3E%23%25%22%7B%7D%7C%5C%5E%5B%5D'*!()
|
sl@0
|
485 |
EscEncodedUriQuery = %3C%3E%23%25%22%7B%7D%7C%5C%5E%5B%5D'*!()
|
sl@0
|
486 |
EscEncodedUriNormal = %3C%3E%23%25%22%7B%7D%7C%5C%5E[]'*!()
|
sl@0
|
487 |
|
sl@0
|
488 |
|
sl@0
|
489 |
|
sl@0
|
490 |
///////////////////////////////////////////////////////////////
|
sl@0
|
491 |
//////Tel Uri should contain only two parts////////////////////
|
sl@0
|
492 |
///////////1. Scheme-->e.g. "tel" /////////////////////////////
|
sl@0
|
493 |
///////////2. Path---->e.g: +1234567;sms=example.com///////////
|
sl@0
|
494 |
////for given tel Uri---> tel:+1234567;sms=example.com/////////
|
sl@0
|
495 |
///////////////////////////////////////////////////////////////
|
sl@0
|
496 |
|
sl@0
|
497 |
[Tel_Uri_Parsing_1]
|
sl@0
|
498 |
Uri = tel:123456;isd=76678;sms=6678ghghjgh;
|
sl@0
|
499 |
ExpTelScheme = tel
|
sl@0
|
500 |
ExpTelPath = 123456;isd=76678;sms=6678ghghjgh;
|
sl@0
|
501 |
|
sl@0
|
502 |
[Tel_Uri_Parsing_2]
|
sl@0
|
503 |
Uri = tel:123456
|
sl@0
|
504 |
ExpTelScheme = tel
|
sl@0
|
505 |
ExpTelPath = 123456
|
sl@0
|
506 |
|
sl@0
|
507 |
[Tel_Uri_Parsing_3]
|
sl@0
|
508 |
Uri = tel:+2746;postd=1722%40foo.com
|
sl@0
|
509 |
ExpTelScheme = tel
|
sl@0
|
510 |
ExpTelPath = +2746;postd=1722%40foo.com
|
sl@0
|
511 |
|
sl@0
|
512 |
[Tel_Uri_Parsing_4]
|
sl@0
|
513 |
Uri = tel:545734;postd=pp22
|
sl@0
|
514 |
ExpTelScheme = tel
|
sl@0
|
515 |
ExpTelPath = 545734;postd=pp22
|
sl@0
|
516 |
|
sl@0
|
517 |
[Tel_Uri_Parsing_5]
|
sl@0
|
518 |
Uri = tel:85475834758;isub=447;user=phone
|
sl@0
|
519 |
ExpTelScheme = tel
|
sl@0
|
520 |
ExpTelPath = 85475834758;isub=447;user=phone
|
sl@0
|
521 |
|
sl@0
|
522 |
[Tel_Uri_Parsing_6]
|
sl@0
|
523 |
Uri = tel:85475834758;isub=447;user=phone;phone-context=jffj3433
|
sl@0
|
524 |
ExpTelScheme = tel
|
sl@0
|
525 |
ExpTelPath = 85475834758;isub=447;user=phone;phone-context=jffj3433
|
sl@0
|
526 |
|
sl@0
|
527 |
[Tel_Uri_Parsing_7]
|
sl@0
|
528 |
Uri = tel:1234;isub=676897;ext=6767
|
sl@0
|
529 |
ExpTelScheme = tel
|
sl@0
|
530 |
ExpTelPath = 1234;isub=676897;ext=6767
|
sl@0
|
531 |
|
sl@0
|
532 |
[Tel_Uri_Parsing_8]
|
sl@0
|
533 |
Uri = tel:1234;ext=6767;isub=676897
|
sl@0
|
534 |
ExpTelScheme = tel
|
sl@0
|
535 |
ExpTelPath = 1234;ext=6767;isub=676897
|
sl@0
|
536 |
|
sl@0
|
537 |
[Tel_Uri_Parsing_9]
|
sl@0
|
538 |
Uri = tel:
|
sl@0
|
539 |
ExpTelScheme = tel
|
sl@0
|
540 |
ExpTelPath =
|
sl@0
|
541 |
|
sl@0
|
542 |
[Tel_Uri_Parsing_10]
|
sl@0
|
543 |
Uri = tel:hjthj
|
sl@0
|
544 |
ExpTelScheme = tel
|
sl@0
|
545 |
ExpTelPath = hjthj
|
sl@0
|
546 |
|
sl@0
|
547 |
[Tel_Uri_Parsing_11]
|
sl@0
|
548 |
Uri = tel:1234;isub=676897;isub=6767
|
sl@0
|
549 |
ExpTelScheme = tel
|
sl@0
|
550 |
ExpTelPath = 1234;isub=676897;isub=6767
|
sl@0
|
551 |
|
sl@0
|
552 |
[Tel_Uri_Parsing_12]
|
sl@0
|
553 |
Uri = tel:1234;ext=6767;ext=676897
|
sl@0
|
554 |
ExpTelScheme = tel
|
sl@0
|
555 |
ExpTelPath = 1234;ext=6767;ext=676897
|
sl@0
|
556 |
|
sl@0
|
557 |
///////////////////////////////////////////////////////////////
|
sl@0
|
558 |
/////////////////Validation of Tel Uri ////////////////////////
|
sl@0
|
559 |
/////////It does Partial Support for RFC 3966//////////////////
|
sl@0
|
560 |
////It does not support Lexicographical order of Parameters////
|
sl@0
|
561 |
////////ExpRetCode---> 0 means It is a Valid tel-Uri///////////
|
sl@0
|
562 |
///////////////////////////////////////////////////////////////
|
sl@0
|
563 |
|
sl@0
|
564 |
[Tel_Uri_Validation_1]
|
sl@0
|
565 |
Uri = tel:123456;isd=76678;sms=6678ghghjgh;
|
sl@0
|
566 |
ExpRetCode = 0
|
sl@0
|
567 |
|
sl@0
|
568 |
[Tel_Uri_Validation_2]
|
sl@0
|
569 |
Uri = tel:123456
|
sl@0
|
570 |
ExpRetCode = 0
|
sl@0
|
571 |
|
sl@0
|
572 |
[Tel_Uri_Validation_3]
|
sl@0
|
573 |
Uri = tel:+2746;postd=1722%40foo.com
|
sl@0
|
574 |
ExpRetCode = 0
|
sl@0
|
575 |
|
sl@0
|
576 |
[Tel_Uri_Validation_4]
|
sl@0
|
577 |
Uri = tel:545734;postd=pp22
|
sl@0
|
578 |
ExpRetCode = 0
|
sl@0
|
579 |
|
sl@0
|
580 |
[Tel_Uri_Validation_5]
|
sl@0
|
581 |
Uri = tel:85475834758;isub=447;user=phone
|
sl@0
|
582 |
ExpRetCode = 0
|
sl@0
|
583 |
|
sl@0
|
584 |
[Tel_Uri_Validation_6]
|
sl@0
|
585 |
Uri = tel:85475834758;isub=447;user=phone;phone-context=jffj3433
|
sl@0
|
586 |
ExpRetCode = 0
|
sl@0
|
587 |
|
sl@0
|
588 |
[Tel_Uri_Validation_7]
|
sl@0
|
589 |
Uri = tel:123456;gggff=%3d%2c%3b%3f%26
|
sl@0
|
590 |
ExpRetCode = 0
|
sl@0
|
591 |
|
sl@0
|
592 |
[Tel_Uri_Validation_8]
|
sl@0
|
593 |
Uri = tel:7042;phone-context=cs.columbia.edu:
|
sl@0
|
594 |
ExpRetCode = 0
|
sl@0
|
595 |
|
sl@0
|
596 |
[Tel_Uri_Validation_9]
|
sl@0
|
597 |
Uri = tel:8631234;phone-context=+1-914-555:
|
sl@0
|
598 |
ExpRetCode = 0
|
sl@0
|
599 |
|
sl@0
|
600 |
[Tel_Uri_Validation_10]
|
sl@0
|
601 |
Uri = tel:1234;phone-context=munich.example.com
|
sl@0
|
602 |
ExpRetCode = 0
|
sl@0
|
603 |
|
sl@0
|
604 |
///////////////////////////////////////////////////////////////
|
sl@0
|
605 |
/////////////////Validation of Tel Uri ////////////////////////
|
sl@0
|
606 |
/////////It does Partial Support for RFC 3966//////////////////
|
sl@0
|
607 |
////It does not support Lexicographical order of Parameters////
|
sl@0
|
608 |
////////ExpRetCode---> -5020 means KUriUtilsErrInvalidParam////
|
sl@0
|
609 |
///////////////////////////////////////////////////////////////
|
sl@0
|
610 |
|
sl@0
|
611 |
[Tel_Uri_Validation_11]
|
sl@0
|
612 |
Uri = tel:hjthj
|
sl@0
|
613 |
ExpRetCode = -5020
|
sl@0
|
614 |
|
sl@0
|
615 |
[Tel_Uri_Validation_12]
|
sl@0
|
616 |
Uri = tel:
|
sl@0
|
617 |
ExpRetCode = -5020
|
sl@0
|
618 |
|
sl@0
|
619 |
[Tel_Uri_Validation_13]
|
sl@0
|
620 |
Uri = tel:1234;ext=6767;isub=676897
|
sl@0
|
621 |
ExpRetCode = -5020
|
sl@0
|
622 |
|
sl@0
|
623 |
[Tel_Uri_Validation_14]
|
sl@0
|
624 |
Uri = tel:1234;isub=676897;isub=6767
|
sl@0
|
625 |
ExpRetCode = -5020
|
sl@0
|
626 |
|
sl@0
|
627 |
[Tel_Uri_Validation_15]
|
sl@0
|
628 |
Uri = tel:365746;hgd=,
|
sl@0
|
629 |
ExpRetCode = -5020
|
sl@0
|
630 |
|
sl@0
|
631 |
[Tel_Uri_Validation_16]
|
sl@0
|
632 |
Uri = tel:465746;hgd=;
|
sl@0
|
633 |
ExpRetCode = -5020
|
sl@0
|
634 |
|
sl@0
|
635 |
[Tel_Uri_Validation_17]
|
sl@0
|
636 |
Uri = tel:863-1234;phone-context=+1-914-555:
|
sl@0
|
637 |
ExpRetCode = -5020
|
sl@0
|
638 |
|
sl@0
|
639 |
[Tel_Uri_Validation_18]
|
sl@0
|
640 |
Uri = tel:565746;hgd=?
|
sl@0
|
641 |
ExpRetCode = -5020
|
sl@0
|
642 |
|
sl@0
|
643 |
[Tel_Uri_Validation_19]
|
sl@0
|
644 |
Uri = tel:1234;ext=6767;ext=676897
|
sl@0
|
645 |
ExpRetCode = -5020
|
sl@0
|
646 |
|
sl@0
|
647 |
[Tel_Uri_Validation_20]
|
sl@0
|
648 |
Uri = tel:1234;isub=676897;ext=6767
|
sl@0
|
649 |
ExpRetCode = -5020
|
sl@0
|
650 |
|
sl@0
|
651 |
[Tel_Uri_Validation_21]
|
sl@0
|
652 |
Uri = tel:265746;hgd==
|
sl@0
|
653 |
ExpRetCode = -5020
|
sl@0
|
654 |
|
sl@0
|
655 |
|
sl@0
|
656 |
|
sl@0
|
657 |
|