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
@@ -28,7 +28,7 @@ module Tilia
28
28
  def test_create_file
29
29
  request = Http::Sapi.create_from_server_array(
30
30
  'REQUEST_METHOD' => 'PUT',
31
- 'REQUEST_PATH' => '/calendars/admin/calendar1/blabla.ics'
31
+ 'PATH_INFO' => '/calendars/admin/calendar1/blabla.ics'
32
32
  )
33
33
 
34
34
  response = request(request)
@@ -39,7 +39,7 @@ module Tilia
39
39
  def test_create_file_valid
40
40
  request = Http::Sapi.create_from_server_array(
41
41
  'REQUEST_METHOD' => 'PUT',
42
- 'REQUEST_PATH' => '/calendars/admin/calendar1/blabla.ics'
42
+ 'PATH_INFO' => '/calendars/admin/calendar1/blabla.ics'
43
43
  )
44
44
  request.body = "BEGIN:VCALENDAR\r\nBEGIN:VEVENT\r\nUID:foo\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"
45
45
 
@@ -68,7 +68,7 @@ module Tilia
68
68
  def test_create_file_no_components
69
69
  request = Http::Sapi.create_from_server_array(
70
70
  'REQUEST_METHOD' => 'PUT',
71
- 'REQUEST_PATH' => '/calendars/admin/calendar1/blabla.ics'
71
+ 'PATH_INFO' => '/calendars/admin/calendar1/blabla.ics'
72
72
  )
73
73
  request.body = "BEGIN:VCALENDAR\r\nEND:VCALENDAR\r\n"
74
74
 
@@ -80,7 +80,7 @@ module Tilia
80
80
  def test_create_file_no_uid
81
81
  request = Http::Sapi.create_from_server_array(
82
82
  'REQUEST_METHOD' => 'PUT',
83
- 'REQUEST_PATH' => '/calendars/admin/calendar1/blabla.ics'
83
+ 'PATH_INFO' => '/calendars/admin/calendar1/blabla.ics'
84
84
  )
85
85
  request.body = "BEGIN:VCALENDAR\r\nBEGIN:VEVENT\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"
86
86
 
@@ -92,7 +92,7 @@ module Tilia
92
92
  def test_create_file_v_card
93
93
  request = Http::Sapi.create_from_server_array(
94
94
  'REQUEST_METHOD' => 'PUT',
95
- 'REQUEST_PATH' => '/calendars/admin/calendar1/blabla.ics'
95
+ 'PATH_INFO' => '/calendars/admin/calendar1/blabla.ics'
96
96
  )
97
97
  request.body = "BEGIN:VCARD\r\nEND:VCARD\r\n"
98
98
 
@@ -104,7 +104,7 @@ module Tilia
104
104
  def test_create_file2_components
105
105
  request = Http::Sapi.create_from_server_array(
106
106
  'REQUEST_METHOD' => 'PUT',
107
- 'REQUEST_PATH' => '/calendars/admin/calendar1/blabla.ics'
107
+ 'PATH_INFO' => '/calendars/admin/calendar1/blabla.ics'
108
108
  )
109
109
  request.body = "BEGIN:VCALENDAR\r\nBEGIN:VEVENT\r\nUID:foo\r\nEND:VEVENT\r\nBEGIN:VJOURNAL\r\nUID:foo\r\nEND:VJOURNAL\r\nEND:VCALENDAR\r\n"
110
110
 
@@ -116,7 +116,7 @@ module Tilia
116
116
  def test_create_file2_uids
117
117
  request = Http::Sapi.create_from_server_array(
118
118
  'REQUEST_METHOD' => 'PUT',
119
- 'REQUEST_PATH' => '/calendars/admin/calendar1/blabla.ics'
119
+ 'PATH_INFO' => '/calendars/admin/calendar1/blabla.ics'
120
120
  )
121
121
  request.body = "BEGIN:VCALENDAR\r\nBEGIN:VTIMEZONE\r\nEND:VTIMEZONE\r\nBEGIN:VEVENT\r\nUID:foo\r\nEND:VEVENT\r\nBEGIN:VEVENT\r\nUID:bar\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"
122
122
 
@@ -128,7 +128,7 @@ module Tilia
128
128
  def test_create_file_wrong_componen
129
129
  request = Http::Sapi.create_from_server_array(
130
130
  'REQUEST_METHOD' => 'PUT',
131
- 'REQUEST_PATH' => '/calendars/admin/calendar1/blabla.ics'
131
+ 'PATH_INFO' => '/calendars/admin/calendar1/blabla.ics'
132
132
  )
133
133
  request.body = "BEGIN:VCALENDAR\r\nBEGIN:VTIMEZONE\r\nEND:VTIMEZONE\r\nBEGIN:VFREEBUSY\r\nUID:foo\r\nEND:VFREEBUSY\r\nEND:VCALENDAR\r\n"
134
134
 
@@ -141,7 +141,7 @@ module Tilia
141
141
  @caldav_backend.create_calendar_object('calendar1', 'blabla.ics', 'foo')
142
142
  request = Http::Sapi.create_from_server_array(
143
143
  'REQUEST_METHOD' => 'PUT',
144
- 'REQUEST_PATH' => '/calendars/admin/calendar1/blabla.ics'
144
+ 'PATH_INFO' => '/calendars/admin/calendar1/blabla.ics'
145
145
  )
146
146
 
147
147
  response = request(request)
@@ -153,7 +153,7 @@ module Tilia
153
153
  @caldav_backend.create_calendar_object('calendar1', 'blabla.ics', 'foo')
154
154
  request = Http::Sapi.create_from_server_array(
155
155
  'REQUEST_METHOD' => 'PUT',
156
- 'REQUEST_PATH' => '/calendars/admin/calendar1/blabla.ics'
156
+ 'PATH_INFO' => '/calendars/admin/calendar1/blabla.ics'
157
157
  )
158
158
  body = "BEGIN:VCALENDAR\r\nBEGIN:VEVENT\r\nUID:foo\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"
159
159
  request.body = body
@@ -175,7 +175,7 @@ module Tilia
175
175
  def test_create_file_invalid_component
176
176
  request = Http::Sapi.create_from_server_array(
177
177
  'REQUEST_METHOD' => 'PUT',
178
- 'REQUEST_PATH' => '/calendars/admin/calendar2/blabla.ics'
178
+ 'PATH_INFO' => '/calendars/admin/calendar2/blabla.ics'
179
179
  )
180
180
  request.body = "BEGIN:VCALENDAR\r\nBEGIN:VTIMEZONE\r\nEND:VTIMEZONE\r\nBEGIN:VEVENT\r\nUID:foo\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"
181
181
 
@@ -188,7 +188,7 @@ module Tilia
188
188
  @caldav_backend.create_calendar_object('calendar2', 'blabla.ics', 'foo')
189
189
  request = Http::Sapi.create_from_server_array(
190
190
  'REQUEST_METHOD' => 'PUT',
191
- 'REQUEST_PATH' => '/calendars/admin/calendar2/blabla.ics'
191
+ 'PATH_INFO' => '/calendars/admin/calendar2/blabla.ics'
192
192
  )
193
193
  request.body = "BEGIN:VCALENDAR\r\nBEGIN:VTIMEZONE\r\nEND:VTIMEZONE\r\nBEGIN:VEVENT\r\nUID:foo\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"
194
194
 
@@ -205,7 +205,7 @@ module Tilia
205
205
  def test_create_file_modified
206
206
  request = Http::Sapi.create_from_server_array(
207
207
  'REQUEST_METHOD' => 'PUT',
208
- 'REQUEST_PATH' => '/calendars/admin/calendar1/blabla.ics'
208
+ 'PATH_INFO' => '/calendars/admin/calendar1/blabla.ics'
209
209
  )
210
210
  request.body = "BEGIN:VCALENDAR\r\nBEGIN:VEVENT\r\nUID:foo\r\nSUMMARY:Meeting in M\xfcnster\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"
211
211
 
@@ -6,7 +6,7 @@ module Tilia
6
6
  def test_query
7
7
  request = Http::Sapi.create_from_server_array(
8
8
  'REQUEST_METHOD' => 'REPORT',
9
- 'REQUEST_PATH' => '/addressbooks/user1/book1',
9
+ 'PATH_INFO' => '/addressbooks/user1/book1',
10
10
  'HTTP_DEPTH' => '1'
11
11
  )
12
12
 
@@ -56,7 +56,7 @@ XML
56
56
  def test_query_depth0
57
57
  request = Http::Sapi.create_from_server_array(
58
58
  'REQUEST_METHOD' => 'REPORT',
59
- 'REQUEST_PATH' => '/addressbooks/user1/book1/card1',
59
+ 'PATH_INFO' => '/addressbooks/user1/book1/card1',
60
60
  'HTTP_DEPTH' => '0'
61
61
  )
62
62
 
@@ -101,7 +101,7 @@ BODY
101
101
  def test_query_no_match
102
102
  request = Http::Sapi.create_from_server_array(
103
103
  'REQUEST_METHOD' => 'REPORT',
104
- 'REQUEST_PATH' => '/addressbooks/user1/book1',
104
+ 'PATH_INFO' => '/addressbooks/user1/book1',
105
105
  'HTTP_DEPTH' => '1'
106
106
  )
107
107
 
@@ -137,7 +137,7 @@ BODY
137
137
  def test_query_limit
138
138
  request = Http::Sapi.create_from_server_array(
139
139
  'REQUEST_METHOD' => 'REPORT',
140
- 'REQUEST_PATH' => '/addressbooks/user1/book1',
140
+ 'PATH_INFO' => '/addressbooks/user1/book1',
141
141
  'HTTP_DEPTH' => '1'
142
142
  )
143
143
 
@@ -6,7 +6,7 @@ module Tilia
6
6
  def test_multi_get
7
7
  request = Http::Sapi.create_from_server_array(
8
8
  'REQUEST_METHOD' => 'REPORT',
9
- 'REQUEST_PATH' => '/addressbooks/user1/book1'
9
+ 'PATH_INFO' => '/addressbooks/user1/book1'
10
10
  )
11
11
 
12
12
  request.body = <<BODY
@@ -50,7 +50,7 @@ BODY
50
50
  def test_multi_get_v_card4
51
51
  request = Http::Sapi.create_from_server_array(
52
52
  'REQUEST_METHOD' => 'REPORT',
53
- 'REQUEST_PATH' => '/addressbooks/user1/book1'
53
+ 'PATH_INFO' => '/addressbooks/user1/book1'
54
54
  )
55
55
 
56
56
  request.body = <<BODY
@@ -38,7 +38,7 @@ module Tilia
38
38
  def test_create_file
39
39
  request = Http::Sapi.create_from_server_array(
40
40
  'REQUEST_METHOD' => 'PUT',
41
- 'REQUEST_PATH' => '/addressbooks/admin/addressbook1/blabla.vcf'
41
+ 'PATH_INFO' => '/addressbooks/admin/addressbook1/blabla.vcf'
42
42
  )
43
43
 
44
44
  response = request(request)
@@ -49,7 +49,7 @@ module Tilia
49
49
  def test_create_file_valid
50
50
  request = Http::Sapi.create_from_server_array(
51
51
  'REQUEST_METHOD' => 'PUT',
52
- 'REQUEST_PATH' => '/addressbooks/admin/addressbook1/blabla.vcf'
52
+ 'PATH_INFO' => '/addressbooks/admin/addressbook1/blabla.vcf'
53
53
  )
54
54
  request.body = "BEGIN:VCARD\r\nUID:foo\r\nEND:VCARD\r\n"
55
55
 
@@ -97,7 +97,7 @@ module Tilia
97
97
  def test_create_file_v_calendar
98
98
  request = Http::Sapi.create_from_server_array(
99
99
  'REQUEST_METHOD' => 'PUT',
100
- 'REQUEST_PATH' => '/addressbooks/admin/addressbook1/blabla.vcf'
100
+ 'PATH_INFO' => '/addressbooks/admin/addressbook1/blabla.vcf'
101
101
  )
102
102
  request.body = "BEGIN:VCALENDAR\r\nEND:VCALENDAR\r\n"
103
103
 
@@ -110,7 +110,7 @@ module Tilia
110
110
  @card_backend.create_card('addressbook1', 'blabla.vcf', 'foo')
111
111
  request = Http::Sapi.create_from_server_array(
112
112
  'REQUEST_METHOD' => 'PUT',
113
- 'REQUEST_PATH' => '/addressbooks/admin/addressbook1/blabla.vcf'
113
+ 'PATH_INFO' => '/addressbooks/admin/addressbook1/blabla.vcf'
114
114
  )
115
115
 
116
116
  response = request(request)
@@ -122,7 +122,7 @@ module Tilia
122
122
  @card_backend.create_card('addressbook1', 'blabla.vcf', 'foo')
123
123
  request = Http::Sapi.create_from_server_array(
124
124
  'REQUEST_METHOD' => 'PUT',
125
- 'REQUEST_PATH' => '/addressbooks/admin/addressbook1/blabla.vcf'
125
+ 'PATH_INFO' => '/addressbooks/admin/addressbook1/blabla.vcf'
126
126
  )
127
127
  body = "BEGIN:VCARD\r\nUID:foo\r\nEND:VCARD\r\n"
128
128
  request.body = body
@@ -33,7 +33,7 @@ module Tilia
33
33
 
34
34
  def test_export
35
35
  request = Http::Sapi.create_from_server_array(
36
- 'REQUEST_PATH' => '/addressbooks/user1/book1',
36
+ 'PATH_INFO' => '/addressbooks/user1/book1',
37
37
  'QUERY_STRING' => 'export',
38
38
  'REQUEST_METHOD' => 'GET'
39
39
  )
@@ -67,7 +67,7 @@ module Tilia
67
67
  request = Http::Sapi.create_from_server_array(
68
68
  'REQUEST_METHOD' => 'GET',
69
69
  'PHP_AUTH_DIGEST' => header,
70
- 'REQUEST_PATH' => '/'
70
+ 'PATH_INFO' => '/'
71
71
  )
72
72
 
73
73
  response = Http::Response.new
@@ -11,7 +11,7 @@ module Tilia
11
11
 
12
12
  def test_collection_get
13
13
  server_vars = {
14
- 'REQUEST_PATH' => '/',
14
+ 'PATH_INFO' => '/',
15
15
  'REQUEST_METHOD' => 'GET'
16
16
  }
17
17
 
@@ -100,7 +100,7 @@ module Tilia
100
100
 
101
101
  def test_post_mk_col
102
102
  server_vars = {
103
- 'REQUEST_PATH' => '/',
103
+ 'PATH_INFO' => '/',
104
104
  'REQUEST_METHOD' => 'POST',
105
105
  'CONTENT_TYPE' => 'application/x-www-form-urlencoded'
106
106
  }
@@ -33,7 +33,7 @@ module Tilia
33
33
  def test_not_lock_token
34
34
  server_vars = {
35
35
  'HTTP_IF' => '(Not <opaquelocktoken:token1>)',
36
- 'REQUEST_PATH' => '/bla'
36
+ 'PATH_INFO' => '/bla'
37
37
  }
38
38
 
39
39
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -84,7 +84,7 @@ module Tilia
84
84
  def test2_lock_tokens
85
85
  server_vars = {
86
86
  'HTTP_IF' => '(<opaquelocktoken:token1>) (Not <opaquelocktoken:token2>)',
87
- 'REQUEST_PATH' => '/bla'
87
+ 'PATH_INFO' => '/bla'
88
88
  }
89
89
 
90
90
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -187,7 +187,7 @@ module Tilia
187
187
  def test_etag
188
188
  server_vars = {
189
189
  'HTTP_IF' => '(["etag1"])',
190
- 'REQUEST_PATH' => '/foo'
190
+ 'PATH_INFO' => '/foo'
191
191
  }
192
192
 
193
193
  request = Http::Sapi.create_from_server_array(server_vars)
@@ -105,7 +105,7 @@ module Tilia
105
105
  def test_propfind_minimal
106
106
  request = Http::Sapi.create_from_server_array(
107
107
  'REQUEST_METHOD' => 'PROPFIND',
108
- 'REQUEST_PATH' => '/',
108
+ 'PATH_INFO' => '/',
109
109
  'HTTP_PREFER' => 'return-minimal'
110
110
  )
111
111
  request.body = <<BLA
@@ -19,7 +19,7 @@ module Tilia
19
19
  server.base_uri = '/webdav/'
20
20
 
21
21
  server_vars = {
22
- 'REQUEST_PATH' => '/webdav/bar',
22
+ 'PATH_INFO' => '/webdav/bar',
23
23
  'HTTP_DESTINATION' => 'http://dev2.tribalos.com/webdav/%C3%A0fo%C3%B3',
24
24
  'HTTP_OVERWRITE' => 'F'
25
25
  }
@@ -58,7 +58,7 @@ module Tilia
58
58
  # Request object
59
59
  server_vars = {
60
60
  'REQUEST_METHOD' => 'MOVE',
61
- 'REQUEST_PATH' => '/webdav/bar',
61
+ 'PATH_INFO' => '/webdav/bar',
62
62
  'HTTP_DESTINATION' => 'http://dev2.tribalos.com/webdav/%C3%A0fo%C3%B3',
63
63
  'HTTP_OVERWRITE' => 'F'
64
64
  }
@@ -59,7 +59,7 @@ module Tilia
59
59
  'REQUEST_METHOD' => 'LOCK',
60
60
  'HTTP_CONTENT_TYPE' => 'application/xml',
61
61
  'HTTP_TIMEOUT' => 'Second-3600',
62
- 'REQUEST_PATH' => '/Nouveau%20Microsoft%20Office%20Excel%20Worksheet.xlsx'
62
+ 'PATH_INFO' => '/Nouveau%20Microsoft%20Office%20Excel%20Worksheet.xlsx'
63
63
  )
64
64
 
65
65
  request.body = <<XML
@@ -84,7 +84,7 @@ XML
84
84
  'REQUEST_METHOD' => 'LOCK',
85
85
  'HTTP_CONTENT_TYPE' => 'application/xml',
86
86
  'HTTP_TIMEOUT' => 'Second-3600',
87
- 'REQUEST_PATH' => '/~$Nouveau%20Microsoft%20Office%20Excel%20Worksheet.xlsx'
87
+ 'PATH_INFO' => '/~$Nouveau%20Microsoft%20Office%20Excel%20Worksheet.xlsx'
88
88
  )
89
89
 
90
90
  request.body = <<XML
@@ -107,7 +107,7 @@ XML
107
107
  def get_put_request(lock_token)
108
108
  request = Http::Sapi.create_from_server_array(
109
109
  'REQUEST_METHOD' => 'PUT',
110
- 'REQUEST_PATH' => '/Nouveau%20Microsoft%20Office%20Excel%20Worksheet.xlsx',
110
+ 'PATH_INFO' => '/Nouveau%20Microsoft%20Office%20Excel%20Worksheet.xlsx',
111
111
  'HTTP_IF' => "If: (#{lock_token})"
112
112
  )
113
113
  request.body = 'FAKE BODY'
@@ -341,7 +341,7 @@ XML
341
341
 
342
342
  def test_lock_retain_owner
343
343
  request = Http::Sapi.create_from_server_array(
344
- 'REQUEST_PATH' => '/test.txt',
344
+ 'PATH_INFO' => '/test.txt',
345
345
  'REQUEST_METHOD' => 'LOCK'
346
346
  )
347
347
  @server.http_request = request
@@ -365,7 +365,7 @@ XML
365
365
 
366
366
  def test_lock_put_bad_token
367
367
  server_vars = {
368
- 'REQUEST_PATH' => '/test.txt',
368
+ 'PATH_INFO' => '/test.txt',
369
369
  'REQUEST_METHOD' => 'LOCK'
370
370
  }
371
371
 
@@ -390,7 +390,7 @@ XML
390
390
  assert_equal(200, @response.status)
391
391
 
392
392
  server_vars = {
393
- 'REQUEST_PATH' => '/test.txt',
393
+ 'PATH_INFO' => '/test.txt',
394
394
  'REQUEST_METHOD' => 'PUT',
395
395
  'HTTP_IF' => '(<opaquelocktoken:token1>)'
396
396
  }
@@ -409,7 +409,7 @@ XML
409
409
 
410
410
  def test_lock_delete_parent
411
411
  server_vars = {
412
- 'REQUEST_PATH' => '/dir/child.txt',
412
+ 'PATH_INFO' => '/dir/child.txt',
413
413
  'REQUEST_METHOD' => 'LOCK'
414
414
  }
415
415
 
@@ -434,7 +434,7 @@ XML
434
434
  assert_equal(200, @response.status)
435
435
 
436
436
  server_vars = {
437
- 'REQUEST_PATH' => '/dir',
437
+ 'PATH_INFO' => '/dir',
438
438
  'REQUEST_METHOD' => 'DELETE'
439
439
  }
440
440
 
@@ -448,7 +448,7 @@ XML
448
448
 
449
449
  def test_lock_delete_succeed
450
450
  server_vars = {
451
- 'REQUEST_PATH' => '/dir/child.txt',
451
+ 'PATH_INFO' => '/dir/child.txt',
452
452
  'REQUEST_METHOD' => 'LOCK'
453
453
  }
454
454
 
@@ -473,7 +473,7 @@ XML
473
473
  assert_equal(200, @response.status)
474
474
 
475
475
  server_vars = {
476
- 'REQUEST_PATH' => '/dir/child.txt',
476
+ 'PATH_INFO' => '/dir/child.txt',
477
477
  'REQUEST_METHOD' => 'DELETE',
478
478
  'HTTP_IF' => "(#{@response.header('Lock-Token')})"
479
479
  }
@@ -488,7 +488,7 @@ XML
488
488
 
489
489
  def test_lock_copy_lock_source
490
490
  server_vars = {
491
- 'REQUEST_PATH' => '/dir/child.txt',
491
+ 'PATH_INFO' => '/dir/child.txt',
492
492
  'REQUEST_METHOD' => 'LOCK'
493
493
  }
494
494
 
@@ -513,7 +513,7 @@ XML
513
513
  assert_equal(200, @response.status)
514
514
 
515
515
  server_vars = {
516
- 'REQUEST_PATH' => '/dir/child.txt',
516
+ 'PATH_INFO' => '/dir/child.txt',
517
517
  'REQUEST_METHOD' => 'COPY',
518
518
  'HTTP_DESTINATION' => '/dir/child2.txt'
519
519
  }
@@ -528,7 +528,7 @@ XML
528
528
 
529
529
  def test_lock_copy_lock_destination
530
530
  server_vars = {
531
- 'REQUEST_PATH' => '/dir/child2.txt',
531
+ 'PATH_INFO' => '/dir/child2.txt',
532
532
  'REQUEST_METHOD' => 'LOCK'
533
533
  }
534
534
 
@@ -553,7 +553,7 @@ XML
553
553
  assert_equal(201, @response.status)
554
554
 
555
555
  server_vars = {
556
- 'REQUEST_PATH' => '/dir/child.txt',
556
+ 'PATH_INFO' => '/dir/child.txt',
557
557
  'REQUEST_METHOD' => 'COPY',
558
558
  'HTTP_DESTINATION' => '/dir/child2.txt'
559
559
  }
@@ -568,7 +568,7 @@ XML
568
568
 
569
569
  def test_lock_move_lock_source_locked
570
570
  server_vars = {
571
- 'REQUEST_PATH' => '/dir/child.txt',
571
+ 'PATH_INFO' => '/dir/child.txt',
572
572
  'REQUEST_METHOD' => 'LOCK'
573
573
  }
574
574
 
@@ -593,7 +593,7 @@ XML
593
593
  assert_equal(200, @response.status)
594
594
 
595
595
  server_vars = {
596
- 'REQUEST_PATH' => '/dir/child.txt',
596
+ 'PATH_INFO' => '/dir/child.txt',
597
597
  'REQUEST_METHOD' => 'MOVE',
598
598
  'HTTP_DESTINATION' => '/dir/child2.txt'
599
599
  }
@@ -608,7 +608,7 @@ XML
608
608
 
609
609
  def test_lock_move_lock_source_succeed
610
610
  server_vars = {
611
- 'REQUEST_PATH' => '/dir/child.txt',
611
+ 'PATH_INFO' => '/dir/child.txt',
612
612
  'REQUEST_METHOD' => 'LOCK'
613
613
  }
614
614
 
@@ -633,7 +633,7 @@ XML
633
633
  assert_equal(200, @response.status)
634
634
 
635
635
  server_vars = {
636
- 'REQUEST_PATH' => '/dir/child.txt',
636
+ 'PATH_INFO' => '/dir/child.txt',
637
637
  'REQUEST_METHOD' => 'MOVE',
638
638
  'HTTP_DESTINATION' => '/dir/child2.txt',
639
639
  'HTTP_IF' => "(#{@response.header('Lock-Token')})"
@@ -648,7 +648,7 @@ XML
648
648
 
649
649
  def test_lock_move_lock_destination
650
650
  server_vars = {
651
- 'REQUEST_PATH' => '/dir/child2.txt',
651
+ 'PATH_INFO' => '/dir/child2.txt',
652
652
  'REQUEST_METHOD' => 'LOCK'
653
653
  }
654
654
 
@@ -673,7 +673,7 @@ XML
673
673
  assert_equal(201, @response.status)
674
674
 
675
675
  server_vars = {
676
- 'REQUEST_PATH' => '/dir/child.txt',
676
+ 'PATH_INFO' => '/dir/child.txt',
677
677
  'REQUEST_METHOD' => 'MOVE',
678
678
  'HTTP_DESTINATION' => '/dir/child2.txt'
679
679
  }
@@ -688,7 +688,7 @@ XML
688
688
 
689
689
  def test_lock_move_lock_parent
690
690
  server_vars = {
691
- 'REQUEST_PATH' => '/dir',
691
+ 'PATH_INFO' => '/dir',
692
692
  'REQUEST_METHOD' => 'LOCK',
693
693
  'HTTP_DEPTH' => 'infinite'
694
694
  }
@@ -714,7 +714,7 @@ XML
714
714
  assert_equal(200, @response.status)
715
715
 
716
716
  server_vars = {
717
- 'REQUEST_PATH' => '/dir/child.txt',
717
+ 'PATH_INFO' => '/dir/child.txt',
718
718
  'REQUEST_METHOD' => 'MOVE',
719
719
  'HTTP_DESTINATION' => '/dir/child2.txt',
720
720
  'HTTP_IF' => "</dir> (#{@response.header('Lock-Token')})"
@@ -730,7 +730,7 @@ XML
730
730
 
731
731
  def test_lock_put_good_token
732
732
  server_vars = {
733
- 'REQUEST_PATH' => '/test.txt',
733
+ 'PATH_INFO' => '/test.txt',
734
734
  'REQUEST_METHOD' => 'LOCK'
735
735
  }
736
736
 
@@ -755,7 +755,7 @@ XML
755
755
  assert_equal(200, @response.status)
756
756
 
757
757
  server_vars = {
758
- 'REQUEST_PATH' => '/test.txt',
758
+ 'PATH_INFO' => '/test.txt',
759
759
  'REQUEST_METHOD' => 'PUT',
760
760
  'HTTP_IF' => "(#{@response.header('Lock-Token')})"
761
761
  }
@@ -809,7 +809,7 @@ XML
809
809
 
810
810
  def test_put_with_incorrect_etag
811
811
  server_vars = {
812
- 'REQUEST_PATH' => '/test.txt',
812
+ 'PATH_INFO' => '/test.txt',
813
813
  'REQUEST_METHOD' => 'PUT',
814
814
  'HTTP_IF' => '(["etag1"])'
815
815
  }
@@ -830,7 +830,7 @@ XML
830
830
  stat = ::File.stat(filename)
831
831
  etag = Digest::SHA1.hexdigest(stat.ino.to_s + stat.size.to_s + stat.mtime.to_s)
832
832
  server_vars = {
833
- 'REQUEST_PATH' => '/test.txt',
833
+ 'PATH_INFO' => '/test.txt',
834
834
  'REQUEST_METHOD' => 'PUT',
835
835
  'HTTP_IF' => "([\"#{etag}\"])"
836
836
  }
@@ -844,7 +844,7 @@ XML
844
844
 
845
845
  def test_delete_with_etag_on_collection
846
846
  server_vars = {
847
- 'REQUEST_PATH' => '/dir',
847
+ 'PATH_INFO' => '/dir',
848
848
  'REQUEST_METHOD' => 'DELETE',
849
849
  'HTTP_IF' => '(["etag1"])'
850
850
  }
@@ -11,7 +11,7 @@ module Tilia
11
11
 
12
12
  def test_pass_through
13
13
  server_vars = {
14
- 'REQUEST_PATH' => '/',
14
+ 'PATH_INFO' => '/',
15
15
  'REQUEST_METHOD' => 'GET'
16
16
  }
17
17
 
@@ -24,7 +24,7 @@ module Tilia
24
24
 
25
25
  def test_mount_response
26
26
  server_vars = {
27
- 'REQUEST_PATH' => '/',
27
+ 'PATH_INFO' => '/',
28
28
  'REQUEST_METHOD' => 'GET',
29
29
  'QUERY_STRING' => 'mount',
30
30
  'HTTP_HOST' => 'example.org'
@@ -25,7 +25,7 @@ module Tilia
25
25
  @node.put('aaaaaaaa')
26
26
  request = Http::Sapi.create_from_server_array(
27
27
  'REQUEST_METHOD' => 'PATCH',
28
- 'REQUEST_PATH' => '/partial'
28
+ 'PATH_INFO' => '/partial'
29
29
  )
30
30
  response = request(request)
31
31
 
@@ -15,7 +15,7 @@ module Tilia
15
15
 
16
16
  def test_copy_over_write
17
17
  server_vars = {
18
- 'REQUEST_PATH' => '/test.txt',
18
+ 'PATH_INFO' => '/test.txt',
19
19
  'REQUEST_METHOD' => 'COPY',
20
20
  'HTTP_DESTINATION' => '/test2.txt'
21
21
  }
@@ -38,7 +38,7 @@ module Tilia
38
38
 
39
39
  def test_copy_to_self
40
40
  server_vars = {
41
- 'REQUEST_PATH' => '/test.txt',
41
+ 'PATH_INFO' => '/test.txt',
42
42
  'REQUEST_METHOD' => 'COPY',
43
43
  'HTTP_DESTINATION' => '/test.txt'
44
44
  }
@@ -53,7 +53,7 @@ module Tilia
53
53
 
54
54
  def test_non_existant_parent
55
55
  server_vars = {
56
- 'REQUEST_PATH' => '/test.txt',
56
+ 'PATH_INFO' => '/test.txt',
57
57
  'REQUEST_METHOD' => 'COPY',
58
58
  'HTTP_DESTINATION' => '/testcol2/test2.txt',
59
59
  'HTTP_OVERWRITE' => 'F'
@@ -76,7 +76,7 @@ module Tilia
76
76
 
77
77
  def test_random_overwrite_header
78
78
  server_vars = {
79
- 'REQUEST_PATH' => '/test.txt',
79
+ 'PATH_INFO' => '/test.txt',
80
80
  'REQUEST_METHOD' => 'COPY',
81
81
  'HTTP_DESTINATION' => '/testcol2/test2.txt',
82
82
  'HTTP_OVERWRITE' => 'SURE!'
@@ -91,7 +91,7 @@ module Tilia
91
91
 
92
92
  def test_copy_directory
93
93
  server_vars = {
94
- 'REQUEST_PATH' => '/col',
94
+ 'PATH_INFO' => '/col',
95
95
  'REQUEST_METHOD' => 'COPY',
96
96
  'HTTP_DESTINATION' => '/col2'
97
97
  }
@@ -115,7 +115,7 @@ module Tilia
115
115
 
116
116
  def test_simple_copy_file
117
117
  server_vars = {
118
- 'REQUEST_PATH' => '/test.txt',
118
+ 'PATH_INFO' => '/test.txt',
119
119
  'REQUEST_METHOD' => 'COPY',
120
120
  'HTTP_DESTINATION' => '/test3.txt'
121
121
  }
@@ -138,7 +138,7 @@ module Tilia
138
138
 
139
139
  def test_simple_copy_collection
140
140
  server_vars = {
141
- 'REQUEST_PATH' => '/col',
141
+ 'PATH_INFO' => '/col',
142
142
  'REQUEST_METHOD' => 'COPY',
143
143
  'HTTP_DESTINATION' => '/col2'
144
144
  }