tilia-dav 3.1.0.pre.alpha4 → 3.1.0.pre.alpha5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/lib/tilia/dav/server.rb +1 -27
  4. data/lib/tilia/dav/version.rb +1 -1
  5. data/lib/tilia/dav_acl/plugin.rb +1 -1
  6. data/test/cal_dav/expand_events_double_events_test.rb +1 -1
  7. data/test/cal_dav/expand_events_dtstar_tand_dten_dby_day_test.rb +1 -1
  8. data/test/cal_dav/expand_events_dtstar_tand_dtend_test.rb +1 -1
  9. data/test/cal_dav/expand_events_floating_time_test.rb +1 -1
  10. data/test/cal_dav/free_busy_report_test.rb +3 -3
  11. data/test/cal_dav/ics_export_plugin_test.rb +16 -16
  12. data/test/cal_dav/issue203_test.rb +1 -1
  13. data/test/cal_dav/issue205_test.rb +1 -1
  14. data/test/cal_dav/issue211_test.rb +1 -1
  15. data/test/cal_dav/issue220_test.rb +1 -1
  16. data/test/cal_dav/issue228_test.rb +1 -1
  17. data/test/cal_dav/plugin_test.rb +1 -1
  18. data/test/cal_dav/schedule/free_busy_request_test.rb +1 -1
  19. data/test/cal_dav/schedule/outbox_post_test.rb +7 -7
  20. data/test/cal_dav/sharing_plugin_test.rb +13 -13
  21. data/test/cal_dav/validate_i_cal_test.rb +13 -13
  22. data/test/card_dav/address_book_query_test.rb +4 -4
  23. data/test/card_dav/multi_get_test.rb +2 -2
  24. data/test/card_dav/validate_v_card_test.rb +5 -5
  25. data/test/card_dav/vcf_export_test.rb +1 -1
  26. data/test/dav/auth/backend/abstract_digest_test.rb +1 -1
  27. data/test/dav/browser/map_get_to_prop_find_test.rb +1 -1
  28. data/test/dav/browser/plugin_test.rb +1 -1
  29. data/test/dav/get_if_conditions_test.rb +3 -3
  30. data/test/dav/http_prefer_parsing_test.rb +1 -1
  31. data/test/dav/issue33_test.rb +2 -2
  32. data/test/dav/locks/ms_word_test.rb +3 -3
  33. data/test/dav/locks/plugin_test.rb +24 -24
  34. data/test/dav/mount/plugin_test.rb +2 -2
  35. data/test/dav/partial_update/plugin_test.rb +1 -1
  36. data/test/dav/server_copy_move_test.rb +7 -7
  37. data/test/dav/server_events_test.rb +3 -3
  38. data/test/dav/server_mkcol_test.rb +12 -12
  39. data/test/dav/server_plugin_test.rb +1 -1
  40. data/test/dav/server_precondition_test.rb +7 -7
  41. data/test/dav/server_range_test.rb +9 -9
  42. data/test/dav/server_simple_test.rb +27 -24
  43. data/test/dav/sync/plugin_test.rb +12 -12
  44. data/test/dav/xml/property/supported_report_set_test.rb +1 -1
  45. data/test/dav_acl/expand_properties_test.rb +4 -4
  46. data/test/dav_acl/plugin_admin_test.rb +2 -2
  47. data/test/dav_acl/principal_property_search_test.rb +6 -6
  48. data/test/dav_acl/principal_search_property_set_test.rb +3 -3
  49. metadata +1 -1
@@ -23,7 +23,7 @@ module Tilia
23
23
 
24
24
  @server.http_request = Http::Sapi.create_from_server_array(
25
25
  'REQUEST_METHOD' => 'GET',
26
- 'REQUEST_PATH' => '/test.txt'
26
+ 'PATH_INFO' => '/test.txt'
27
27
  )
28
28
 
29
29
  @server.exec
@@ -36,7 +36,7 @@ module Tilia
36
36
  # Also testing put
37
37
  req = Http::Sapi.create_from_server_array(
38
38
  'REQUEST_METHOD' => 'PUT',
39
- 'REQUEST_PATH' => '/barbar'
39
+ 'PATH_INFO' => '/barbar'
40
40
  )
41
41
 
42
42
  @server.http_request = req
@@ -54,7 +54,7 @@ module Tilia
54
54
 
55
55
  req = Http::Sapi.create_from_server_array(
56
56
  'REQUEST_METHOD' => 'GET',
57
- 'REQUEST_PATH' => '/not/exisitng'
57
+ 'PATH_INFO' => '/not/exisitng'
58
58
  )
59
59
  @server.http_request = req
60
60
  @server.exec
@@ -5,7 +5,7 @@ module Tilia
5
5
  class ServerMKCOLTest < AbstractServer
6
6
  def test_mkcol
7
7
  server_vars = {
8
- 'REQUEST_PATH' => '/testcol',
8
+ 'PATH_INFO' => '/testcol',
9
9
  'REQUEST_METHOD' => 'MKCOL'
10
10
  }
11
11
 
@@ -29,7 +29,7 @@ module Tilia
29
29
 
30
30
  def test_mkcol_unknown_body
31
31
  server_vars = {
32
- 'REQUEST_PATH' => '/testcol',
32
+ 'PATH_INFO' => '/testcol',
33
33
  'REQUEST_METHOD' => 'MKCOL'
34
34
  }
35
35
 
@@ -51,7 +51,7 @@ module Tilia
51
51
 
52
52
  def test_mkcol_broken_xml
53
53
  server_vars = {
54
- 'REQUEST_PATH' => '/testcol',
54
+ 'PATH_INFO' => '/testcol',
55
55
  'REQUEST_METHOD' => 'MKCOL',
56
56
  'HTTP_CONTENT_TYPE' => 'application/xml'
57
57
  }
@@ -74,7 +74,7 @@ module Tilia
74
74
 
75
75
  def test_mkcol_unknown_xml
76
76
  server_vars = {
77
- 'REQUEST_PATH' => '/testcol',
77
+ 'PATH_INFO' => '/testcol',
78
78
  'REQUEST_METHOD' => 'MKCOL',
79
79
  'HTTP_CONTENT_TYPE' => 'application/xml'
80
80
  }
@@ -97,7 +97,7 @@ module Tilia
97
97
 
98
98
  def test_mkcol_no_resource_type
99
99
  server_vars = {
100
- 'REQUEST_PATH' => '/testcol',
100
+ 'PATH_INFO' => '/testcol',
101
101
  'REQUEST_METHOD' => 'MKCOL',
102
102
  'HTTP_CONTENT_TYPE' => 'application/xml'
103
103
  }
@@ -130,7 +130,7 @@ XML
130
130
 
131
131
  def test_mkcol_incorrect_resource_type
132
132
  server_vars = {
133
- 'REQUEST_PATH' => '/testcol',
133
+ 'PATH_INFO' => '/testcol',
134
134
  'REQUEST_METHOD' => 'MKCOL',
135
135
  'HTTP_CONTENT_TYPE' => 'application/xml'
136
136
  }
@@ -163,7 +163,7 @@ XML
163
163
 
164
164
  def test_mkcol_success
165
165
  server_vars = {
166
- 'REQUEST_PATH' => '/testcol',
166
+ 'PATH_INFO' => '/testcol',
167
167
  'REQUEST_METHOD' => 'MKCOL',
168
168
  'HTTP_CONTENT_TYPE' => 'application/xml'
169
169
  }
@@ -196,7 +196,7 @@ XML
196
196
 
197
197
  def test_mkcol_white_space_resource_type
198
198
  server_vars = {
199
- 'REQUEST_PATH' => '/testcol',
199
+ 'PATH_INFO' => '/testcol',
200
200
  'REQUEST_METHOD' => 'MKCOL',
201
201
  'HTTP_CONTENT_TYPE' => 'application/xml'
202
202
  }
@@ -231,7 +231,7 @@ XML
231
231
 
232
232
  def test_mkcol_no_parent
233
233
  server_vars = {
234
- 'REQUEST_PATH' => '/testnoparent/409me',
234
+ 'PATH_INFO' => '/testnoparent/409me',
235
235
  'REQUEST_METHOD' => 'MKCOL'
236
236
  }
237
237
 
@@ -254,7 +254,7 @@ XML
254
254
 
255
255
  def test_mkcol_parent_is_no_collection
256
256
  server_vars = {
257
- 'REQUEST_PATH' => '/test.txt/409me',
257
+ 'PATH_INFO' => '/test.txt/409me',
258
258
  'REQUEST_METHOD' => 'MKCOL'
259
259
  }
260
260
 
@@ -277,7 +277,7 @@ XML
277
277
 
278
278
  def test_mkcol_already_exists
279
279
  server_vars = {
280
- 'REQUEST_PATH' => '/test.txt',
280
+ 'PATH_INFO' => '/test.txt',
281
281
  'REQUEST_METHOD' => 'MKCOL'
282
282
  }
283
283
 
@@ -301,7 +301,7 @@ XML
301
301
 
302
302
  def test_mkcol_and_props
303
303
  server_vars = {
304
- 'REQUEST_PATH' => '/testcol',
304
+ 'PATH_INFO' => '/testcol',
305
305
  'REQUEST_METHOD' => 'MKCOL',
306
306
  'HTTP_CONTENT_TYPE' => 'application/xml'
307
307
  }
@@ -29,7 +29,7 @@ module Tilia
29
29
 
30
30
  def test_options
31
31
  server_vars = {
32
- 'REQUEST_PATH' => '/',
32
+ 'PATH_INFO' => '/',
33
33
  'REQUEST_METHOD' => 'OPTIONS'
34
34
  }
35
35
 
@@ -151,7 +151,7 @@ module Tilia
151
151
  server = ServerMock.new(root)
152
152
  http_request = Http::Sapi.create_from_server_array(
153
153
  'HTTP_IF_MODIFIED_SINCE' => 'Sun, 06 Nov 1994 08:49:37 GMT',
154
- 'REQUEST_PATH' => '/foo'
154
+ 'PATH_INFO' => '/foo'
155
155
  )
156
156
  server.http_response = Http::ResponseMock.new
157
157
  refute(server.check_preconditions(http_request, server.http_response))
@@ -168,7 +168,7 @@ module Tilia
168
168
  server = ServerMock.new(root)
169
169
  http_request = Http::Sapi.create_from_server_array(
170
170
  'HTTP_IF_MODIFIED_SINCE' => 'Tue, 06 Nov 1984 08:49:37 GMT',
171
- 'REQUEST_PATH' => '/foo'
171
+ 'PATH_INFO' => '/foo'
172
172
  )
173
173
 
174
174
  http_response = Http::ResponseMock.new
@@ -180,7 +180,7 @@ module Tilia
180
180
  server = ServerMock.new(root)
181
181
  http_request = Http::Sapi.create_from_server_array(
182
182
  'HTTP_IF_MODIFIED_SINCE' => 'Your mother',
183
- 'REQUEST_PATH' => '/foo'
183
+ 'PATH_INFO' => '/foo'
184
184
  )
185
185
  http_response = Http::ResponseMock.new
186
186
 
@@ -193,7 +193,7 @@ module Tilia
193
193
  server = ServerMock.new(root)
194
194
  http_request = Http::Sapi.create_from_server_array(
195
195
  'HTTP_IF_MODIFIED_SINCE' => 'Sun, 06 Nov 1994 08:49:37 EST',
196
- 'REQUEST_PATH' => '/foo'
196
+ 'PATH_INFO' => '/foo'
197
197
  )
198
198
  http_response = Http::ResponseMock.new
199
199
  assert(server.check_preconditions(http_request, http_response))
@@ -204,7 +204,7 @@ module Tilia
204
204
  server = ServerMock.new(root)
205
205
  http_request = Http::Sapi.create_from_server_array(
206
206
  'HTTP_IF_UNMODIFIED_SINCE' => 'Sun, 06 Nov 1994 08:49:37 GMT',
207
- 'REQUEST_PATH' => '/foo'
207
+ 'PATH_INFO' => '/foo'
208
208
  )
209
209
  http_response = Http::Response.new
210
210
  assert(server.check_preconditions(http_request, http_response))
@@ -215,7 +215,7 @@ module Tilia
215
215
  server = ServerMock.new(root)
216
216
  http_request = Http::Sapi.create_from_server_array(
217
217
  'HTTP_IF_UNMODIFIED_SINCE' => 'Tue, 06 Nov 1984 08:49:37 GMT',
218
- 'REQUEST_PATH' => '/foo'
218
+ 'PATH_INFO' => '/foo'
219
219
  )
220
220
  http_response = Http::ResponseMock.new
221
221
  assert_raises(Exception::PreconditionFailed) do
@@ -228,7 +228,7 @@ module Tilia
228
228
  server = ServerMock.new(root)
229
229
  http_request = Http::Sapi.create_from_server_array(
230
230
  'HTTP_IF_UNMODIFIED_SINCE' => 'Sun, 06 Nov 1984 08:49:37 CET',
231
- 'REQUEST_PATH' => '/foo'
231
+ 'PATH_INFO' => '/foo'
232
232
  )
233
233
  http_response = Http::ResponseMock.new
234
234
  assert(server.check_preconditions(http_request, http_response))
@@ -9,7 +9,7 @@ module Tilia
9
9
 
10
10
  def test_range
11
11
  server_vars = {
12
- 'REQUEST_PATH' => '/test.txt',
12
+ 'PATH_INFO' => '/test.txt',
13
13
  'REQUEST_METHOD' => 'GET',
14
14
  'HTTP_RANGE' => 'bytes=2-5'
15
15
  }
@@ -40,7 +40,7 @@ module Tilia
40
40
 
41
41
  def test_start_range
42
42
  server_vars = {
43
- 'REQUEST_PATH' => '/test.txt',
43
+ 'PATH_INFO' => '/test.txt',
44
44
  'REQUEST_METHOD' => 'GET',
45
45
  'HTTP_RANGE' => 'bytes=2-'
46
46
  }
@@ -71,7 +71,7 @@ module Tilia
71
71
 
72
72
  def test_end_range
73
73
  server_vars = {
74
- 'REQUEST_PATH' => '/test.txt',
74
+ 'PATH_INFO' => '/test.txt',
75
75
  'REQUEST_METHOD' => 'GET',
76
76
  'HTTP_RANGE' => 'bytes=-8'
77
77
  }
@@ -102,7 +102,7 @@ module Tilia
102
102
 
103
103
  def test_too_high_range
104
104
  server_vars = {
105
- 'REQUEST_PATH' => '/test.txt',
105
+ 'PATH_INFO' => '/test.txt',
106
106
  'REQUEST_METHOD' => 'GET',
107
107
  'HTTP_RANGE' => 'bytes=100-200'
108
108
  }
@@ -116,7 +116,7 @@ module Tilia
116
116
 
117
117
  def test_crazy_range
118
118
  server_vars = {
119
- 'REQUEST_PATH' => '/test.txt',
119
+ 'PATH_INFO' => '/test.txt',
120
120
  'REQUEST_METHOD' => 'GET',
121
121
  'HTTP_RANGE' => 'bytes=8-4'
122
122
  }
@@ -132,7 +132,7 @@ module Tilia
132
132
  node = @server.tree.node_for_path('test.txt')
133
133
 
134
134
  server_vars = {
135
- 'REQUEST_PATH' => '/test.txt',
135
+ 'PATH_INFO' => '/test.txt',
136
136
  'REQUEST_METHOD' => 'GET',
137
137
  'HTTP_RANGE' => 'bytes=2-5',
138
138
  'HTTP_IF_RANGE' => node.etag
@@ -166,7 +166,7 @@ module Tilia
166
166
  node = @server.tree.node_for_path('test.txt')
167
167
 
168
168
  server_vars = {
169
- 'REQUEST_PATH' => '/test.txt',
169
+ 'PATH_INFO' => '/test.txt',
170
170
  'REQUEST_METHOD' => 'GET',
171
171
  'HTTP_RANGE' => 'bytes=2-5',
172
172
  'HTTP_IF_RANGE' => node.etag + 'blabla'
@@ -197,7 +197,7 @@ module Tilia
197
197
 
198
198
  def test_if_range_modification_date
199
199
  server_vars = {
200
- 'REQUEST_PATH' => '/test.txt',
200
+ 'PATH_INFO' => '/test.txt',
201
201
  'REQUEST_METHOD' => 'GET',
202
202
  'HTTP_RANGE' => 'bytes=2-5',
203
203
  'HTTP_IF_RANGE' => 'tomorrow'
@@ -229,7 +229,7 @@ module Tilia
229
229
 
230
230
  def test_if_range_modification_date_modified
231
231
  server_vars = {
232
- 'REQUEST_PATH' => '/test.txt',
232
+ 'PATH_INFO' => '/test.txt',
233
233
  'REQUEST_METHOD' => 'GET',
234
234
  'HTTP_RANGE' => 'bytes=2-5',
235
235
  'HTTP_IF_RANGE' => '-2 years'
@@ -67,7 +67,7 @@ module Tilia
67
67
 
68
68
  def test_non_existant_method
69
69
  server_vars = {
70
- 'REQUEST_PATH' => '/',
70
+ 'PATH_INFO' => '/',
71
71
  'REQUEST_METHOD' => 'BLABLA'
72
72
  }
73
73
 
@@ -88,7 +88,7 @@ module Tilia
88
88
 
89
89
  def test_base_uri
90
90
  server_vars = {
91
- 'REQUEST_PATH' => '/blabla/test.txt',
91
+ 'PATH_INFO' => '/blabla/test.txt',
92
92
  'REQUEST_METHOD' => 'GET'
93
93
  }
94
94
  filename = ::File.join(@temp_dir, 'test.txt')
@@ -187,7 +187,7 @@ module Tilia
187
187
 
188
188
  def test_guess_base_uri
189
189
  server_vars = {
190
- 'REQUEST_PATH' => '/index.php/root',
190
+ 'SCRIPT_NAME' => '/index.php',
191
191
  'PATH_INFO' => '/root'
192
192
  }
193
193
 
@@ -200,7 +200,7 @@ module Tilia
200
200
 
201
201
  def test_guess_base_uri_percent_encoding
202
202
  server_vars = {
203
- 'REQUEST_PATH' => '/index.php/dir/path2/path%20with%20spaces',
203
+ 'SCRIPT_NAME' => '/index.php',
204
204
  'PATH_INFO' => '/dir/path2/path with spaces'
205
205
  }
206
206
 
@@ -214,7 +214,7 @@ module Tilia
214
214
  # def test_guess_base_uri_percent_encoding2
215
215
  # skip('This behaviour is not yet implemented')
216
216
  # server_vars = {
217
- # 'REQUEST_PATH' => '/some%20directory+mixed/index.php/dir/path2/path%20with%20spaces',
217
+ # 'PATH_INFO' => '/some%20directory+mixed/index.php/dir/path2/path%20with%20spaces',
218
218
  # 'PATH_INFO' => '/dir/path2/path with spaces',
219
219
  # }
220
220
  #
@@ -227,7 +227,7 @@ module Tilia
227
227
 
228
228
  def test_guess_base_uri2
229
229
  server_vars = {
230
- 'REQUEST_PATH' => '/index.php/root/',
230
+ 'SCRIPT_NAME' => '/index.php',
231
231
  'PATH_INFO' => '/root/'
232
232
  }
233
233
 
@@ -240,7 +240,7 @@ module Tilia
240
240
 
241
241
  def test_guess_base_uri_no_path_info
242
242
  server_vars = {
243
- 'REQUEST_PATH' => '/index.php/root'
243
+ 'PATH_INFO' => '/index.php/root'
244
244
  }
245
245
 
246
246
  http_request = Tilia::Http::Sapi.create_from_server_array(server_vars)
@@ -252,7 +252,7 @@ module Tilia
252
252
 
253
253
  def test_guess_base_uri_no_path_info2
254
254
  server_vars = {
255
- 'REQUEST_PATH' => '/a/b/c/test.php'
255
+ 'PATH_INFO' => '/a/b/c/test.php'
256
256
  }
257
257
 
258
258
  http_request = Tilia::Http::Sapi.create_from_server_array(server_vars)
@@ -264,7 +264,8 @@ module Tilia
264
264
 
265
265
  def test_guess_base_uri_query_string
266
266
  server_vars = {
267
- 'REQUEST_PATH' => '/index.php/root?query_string=blabla',
267
+ 'SCRIPT_NAME' => '/index.php',
268
+ 'QUERY_STRING' => 'query_string=blabla',
268
269
  'PATH_INFO' => '/root'
269
270
  }
270
271
 
@@ -275,22 +276,24 @@ module Tilia
275
276
  assert_equal('/index.php/', server.guess_base_uri)
276
277
  end
277
278
 
278
- def test_guess_base_uri_bad_config
279
- server_vars = {
280
- 'REQUEST_PATH' => '/index.php/root/heyyy',
281
- 'PATH_INFO' => '/root'
282
- }
283
-
284
- http_request = Tilia::Http::Sapi.create_from_server_array(server_vars)
285
- server = Tilia::Dav::ServerMock.new
286
- server.http_request = http_request
287
-
288
- assert_raises(Exception) { server.guess_base_uri }
289
- end
279
+ # Using RACKs environment ...
280
+ # def test_guess_base_uri_bad_config
281
+ # skip()
282
+ # server_vars = {
283
+ # 'PATH_INFO' => '/index.php/root/heyyy',
284
+ # 'PATH_INFO' => '/root'
285
+ # }
286
+ #
287
+ # http_request = Tilia::Http::Sapi.create_from_server_array(server_vars)
288
+ # server = Tilia::Dav::ServerMock.new
289
+ # server.http_request = http_request
290
+ #
291
+ # assert_raises(Exception) { server.guess_base_uri }
292
+ # end
290
293
 
291
294
  def test_trigger_exception
292
295
  server_vars = {
293
- 'REQUEST_PATH' => '/',
296
+ 'PATH_INFO' => '/',
294
297
  'REQUEST_METHOD' => 'FOO'
295
298
  }
296
299
 
@@ -315,7 +318,7 @@ module Tilia
315
318
 
316
319
  def test_report_not_found
317
320
  server_vars = {
318
- 'REQUEST_PATH' => '/',
321
+ 'PATH_INFO' => '/',
319
322
  'REQUEST_METHOD' => 'REPORT'
320
323
  }
321
324
 
@@ -337,7 +340,7 @@ module Tilia
337
340
 
338
341
  def test_report_intercepted
339
342
  server_vars = {
340
- 'REQUEST_PATH' => '/',
343
+ 'PATH_INFO' => '/',
341
344
  'REQUEST_METHOD' => 'REPORT'
342
345
  }
343
346
 
@@ -124,7 +124,7 @@ BLA
124
124
 
125
125
  request = Http::Sapi.create_from_server_array(
126
126
  'REQUEST_METHOD' => 'REPORT',
127
- 'REQUEST_PATH' => '/coll/',
127
+ 'PATH_INFO' => '/coll/',
128
128
  'CONTENT_TYPE' => 'application/xml'
129
129
  )
130
130
 
@@ -184,7 +184,7 @@ BLA
184
184
 
185
185
  request = Http::Sapi.create_from_server_array(
186
186
  'REQUEST_METHOD' => 'REPORT',
187
- 'REQUEST_PATH' => '/coll/',
187
+ 'PATH_INFO' => '/coll/',
188
188
  'CONTENT_TYPE' => 'application/xml'
189
189
  )
190
190
 
@@ -232,7 +232,7 @@ BLA
232
232
 
233
233
  request = Http::Sapi.create_from_server_array(
234
234
  'REQUEST_METHOD' => 'REPORT',
235
- 'REQUEST_PATH' => '/coll/',
235
+ 'PATH_INFO' => '/coll/',
236
236
  'CONTENT_TYPE' => 'application/xml',
237
237
  'HTTP_DEPTH' => '1'
238
238
  )
@@ -286,7 +286,7 @@ BLA
286
286
  def test_sync_no_sync_info
287
287
  request = Http::Sapi.create_from_server_array(
288
288
  'REQUEST_METHOD' => 'REPORT',
289
- 'REQUEST_PATH' => '/coll/',
289
+ 'PATH_INFO' => '/coll/',
290
290
  'CONTENT_TYPE' => 'application/xml'
291
291
  )
292
292
 
@@ -313,7 +313,7 @@ BLA
313
313
  def test_sync_no_sync_collection
314
314
  request = Http::Sapi.create_from_server_array(
315
315
  'REQUEST_METHOD' => 'REPORT',
316
- 'REQUEST_PATH' => '/normalcoll/',
316
+ 'PATH_INFO' => '/normalcoll/',
317
317
  'CONTENT_TYPE' => 'application/xml'
318
318
  )
319
319
 
@@ -341,7 +341,7 @@ BLA
341
341
  @collection.add_change(['file1.txt'], [], [])
342
342
  request = Http::Sapi.create_from_server_array(
343
343
  'REQUEST_METHOD' => 'REPORT',
344
- 'REQUEST_PATH' => '/coll/',
344
+ 'PATH_INFO' => '/coll/',
345
345
  'CONTENT_TYPE' => 'application/xml'
346
346
  )
347
347
 
@@ -369,7 +369,7 @@ BLA
369
369
  @collection.add_change(['file1.txt'], [], [])
370
370
  request = Http::Sapi.create_from_server_array(
371
371
  'REQUEST_METHOD' => 'REPORT',
372
- 'REQUEST_PATH' => '/coll/',
372
+ 'PATH_INFO' => '/coll/',
373
373
  'CONTENT_TYPE' => 'application/xml'
374
374
  )
375
375
 
@@ -396,7 +396,7 @@ BLA
396
396
  def test_sync_no_sync_token
397
397
  request = Http::Sapi.create_from_server_array(
398
398
  'REQUEST_METHOD' => 'REPORT',
399
- 'REQUEST_PATH' => '/coll/',
399
+ 'PATH_INFO' => '/coll/',
400
400
  'CONTENT_TYPE' => 'application/xml'
401
401
  )
402
402
 
@@ -423,7 +423,7 @@ BLA
423
423
  @collection.add_change(['file1.txt'], [], [])
424
424
  request = Http::Sapi.create_from_server_array(
425
425
  'REQUEST_METHOD' => 'REPORT',
426
- 'REQUEST_PATH' => '/coll/',
426
+ 'PATH_INFO' => '/coll/',
427
427
  'CONTENT_TYPE' => 'application/xml'
428
428
  )
429
429
 
@@ -448,7 +448,7 @@ BLA
448
448
  @collection.add_change(['file1.txt'], [], [])
449
449
  request = Http::Sapi.create_from_server_array(
450
450
  'REQUEST_METHOD' => 'DELETE',
451
- 'REQUEST_PATH' => '/coll/file1.txt',
451
+ 'PATH_INFO' => '/coll/file1.txt',
452
452
  'HTTP_IF' => '</coll> (<http://sabre.io/ns/sync/1>)'
453
453
  )
454
454
  response = request(request)
@@ -463,7 +463,7 @@ BLA
463
463
  @collection.add_change(['file1.txt'], [], [])
464
464
  request = Http::Sapi.create_from_server_array(
465
465
  'REQUEST_METHOD' => 'DELETE',
466
- 'REQUEST_PATH' => '/coll/file1.txt',
466
+ 'PATH_INFO' => '/coll/file1.txt',
467
467
  'HTTP_IF' => '</coll> (Not <http://sabre.io/ns/sync/2>)'
468
468
  )
469
469
  response = request(request)
@@ -478,7 +478,7 @@ BLA
478
478
  @collection.add_change(['file1.txt'], [], [])
479
479
  request = Http::Sapi.create_from_server_array(
480
480
  'REQUEST_METHOD' => 'DELETE',
481
- 'REQUEST_PATH' => '/coll/file1.txt',
481
+ 'PATH_INFO' => '/coll/file1.txt',
482
482
  'HTTP_IF' => '</coll> (<opaquelocktoken:foo>)'
483
483
  )
484
484
  response = request(request)
@@ -7,7 +7,7 @@ module Tilia
7
7
  class SupportedReportSetTest < AbstractServer
8
8
  def send_propfind(body)
9
9
  server_vars = {
10
- 'REQUEST_PATH' => '/',
10
+ 'PATH_INFO' => '/',
11
11
  'REQUEST_METHOD' => 'PROPFIND',
12
12
  'HTTP_DEPTH' => '0'
13
13
  }
@@ -54,7 +54,7 @@ XML
54
54
  server_vars = {
55
55
  'REQUEST_METHOD' => 'REPORT',
56
56
  'HTTP_DEPTH' => '0',
57
- 'REQUEST_PATH' => '/node1'
57
+ 'PATH_INFO' => '/node1'
58
58
  }
59
59
 
60
60
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -105,7 +105,7 @@ XML
105
105
  server_vars = {
106
106
  'REQUEST_METHOD' => 'REPORT',
107
107
  'HTTP_DEPTH' => '0',
108
- 'REQUEST_PATH' => '/node1'
108
+ 'PATH_INFO' => '/node1'
109
109
  }
110
110
 
111
111
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -159,7 +159,7 @@ XML
159
159
  server_vars = {
160
160
  'REQUEST_METHOD' => 'REPORT',
161
161
  'HTTP_DEPTH' => '0',
162
- 'REQUEST_PATH' => '/node2'
162
+ 'PATH_INFO' => '/node2'
163
163
  }
164
164
 
165
165
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -215,7 +215,7 @@ XML
215
215
  server_vars = {
216
216
  'REQUEST_METHOD' => 'REPORT',
217
217
  'HTTP_DEPTH' => '0',
218
- 'REQUEST_PATH' => '/node2'
218
+ 'PATH_INFO' => '/node2'
219
219
  }
220
220
 
221
221
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -24,7 +24,7 @@ module Tilia
24
24
  request = Http::Sapi.create_from_server_array(
25
25
  'REQUEST_METHOD' => 'OPTIONS',
26
26
  'HTTP_DEPTH' => 1,
27
- 'REQUEST_PATH' => '/adminonly'
27
+ 'PATH_INFO' => '/adminonly'
28
28
  )
29
29
 
30
30
  response = Http::ResponseMock.new
@@ -44,7 +44,7 @@ module Tilia
44
44
  request = Http::Sapi.create_from_server_array(
45
45
  'REQUEST_METHOD' => 'OPTIONS',
46
46
  'HTTP_DEPTH' => 1,
47
- 'REQUEST_PATH' => '/adminonly'
47
+ 'PATH_INFO' => '/adminonly'
48
48
  )
49
49
 
50
50
  response = Http::ResponseMock.new
@@ -41,7 +41,7 @@ BODY
41
41
  server_vars = {
42
42
  'REQUEST_METHOD' => 'REPORT',
43
43
  'HTTP_DEPTH' => '1',
44
- 'REQUEST_PATH' => '/principals'
44
+ 'PATH_INFO' => '/principals'
45
45
  }
46
46
 
47
47
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -80,7 +80,7 @@ BODY
80
80
  server_vars = {
81
81
  'REQUEST_METHOD' => 'REPORT',
82
82
  'HTTP_DEPTH' => '0',
83
- 'REQUEST_PATH' => '/principals'
83
+ 'PATH_INFO' => '/principals'
84
84
  }
85
85
 
86
86
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -121,7 +121,7 @@ BODY
121
121
  server_vars = {
122
122
  'REQUEST_METHOD' => 'REPORT',
123
123
  'HTTP_DEPTH' => '0',
124
- 'REQUEST_PATH' => '/'
124
+ 'PATH_INFO' => '/'
125
125
  }
126
126
 
127
127
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -186,7 +186,7 @@ BODY
186
186
  server_vars = {
187
187
  'REQUEST_METHOD' => 'REPORT',
188
188
  'HTTP_DEPTH' => '0',
189
- 'REQUEST_PATH' => '/'
189
+ 'PATH_INFO' => '/'
190
190
  }
191
191
 
192
192
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -251,7 +251,7 @@ BODY
251
251
  server_vars = {
252
252
  'REQUEST_METHOD' => 'REPORT',
253
253
  'HTTP_DEPTH' => '0',
254
- 'REQUEST_PATH' => '/'
254
+ 'PATH_INFO' => '/'
255
255
  }
256
256
 
257
257
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -309,7 +309,7 @@ BODY
309
309
  server_vars = {
310
310
  'REQUEST_METHOD' => 'REPORT',
311
311
  'HTTP_DEPTH' => '0',
312
- 'REQUEST_PATH' => '/'
312
+ 'PATH_INFO' => '/'
313
313
  }
314
314
 
315
315
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -28,7 +28,7 @@ XML
28
28
  server_vars = {
29
29
  'REQUEST_METHOD' => 'REPORT',
30
30
  'HTTP_DEPTH' => '1',
31
- 'REQUEST_PATH' => '/principals'
31
+ 'PATH_INFO' => '/principals'
32
32
  }
33
33
 
34
34
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -58,7 +58,7 @@ XML
58
58
  server_vars = {
59
59
  'REQUEST_METHOD' => 'REPORT',
60
60
  'HTTP_DEPTH' => '0',
61
- 'REQUEST_PATH' => '/principals'
61
+ 'PATH_INFO' => '/principals'
62
62
  }
63
63
 
64
64
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -86,7 +86,7 @@ XML
86
86
  server_vars = {
87
87
  'REQUEST_METHOD' => 'REPORT',
88
88
  'HTTP_DEPTH' => '0',
89
- 'REQUEST_PATH' => '/principals'
89
+ 'PATH_INFO' => '/principals'
90
90
  }
91
91
 
92
92
  request = Http::Sapi.create_from_server_array(server_vars)