file-manager 0.2.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +8 -3
- data/Gemfile +4 -0
- data/Gemfile.lock +32 -31
- data/README.md +12 -1
- data/Rakefile +1 -0
- data/file-manager.gemspec +3 -4
- data/lib/file_manager.rb +4 -0
- data/lib/local_file_manager.rb +36 -1
- data/lib/memory_file_manager.rb +21 -0
- data/lib/s3_file_manager.rb +41 -1
- data/test/coverage_test.rb +15 -0
- data/test/file_manager_test.rb +62 -0
- data/test/{local_test.rb → local_file_manager_test.rb} +3 -0
- data/test/{memory_test.rb → memory_file_manager_test.rb} +3 -0
- data/test/{s3_test.rb → s3_file_manager_test.rb} +2 -0
- data/test/test_helper.rb +3 -4
- data/test/vcr_cassettes/test_copy_file.yml +552 -0
- data/test/vcr_cassettes/test_downloading_to_temp_file.yml +253 -0
- data/test/vcr_cassettes/test_listing_files.yml +120 -119
- data/test/vcr_cassettes/test_listing_files_in_sub_dir.yml +120 -119
- data/test/vcr_cassettes/test_reading.yml +75 -74
- data/test/vcr_cassettes/test_reading_in_sub_dir.yml +75 -74
- data/test/vcr_cassettes/test_remove_not_existing_file_dont_raise.yml +26 -28
- data/test/vcr_cassettes/test_rename_file.yml +691 -0
- metadata +26 -34
@@ -2,9 +2,9 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://file-manager-tests.s3
|
5
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/?list-type=2&prefix=
|
6
6
|
body:
|
7
|
-
encoding:
|
7
|
+
encoding: UTF-8
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
@@ -12,16 +12,16 @@ http_interactions:
|
|
12
12
|
Accept-Encoding:
|
13
13
|
- ''
|
14
14
|
User-Agent:
|
15
|
-
- aws-sdk-
|
16
|
-
X-Amz-Date:
|
17
|
-
- 20160315T144426Z
|
15
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
18
16
|
Host:
|
19
|
-
- file-manager-tests.s3
|
17
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
18
|
+
X-Amz-Date:
|
19
|
+
- 20201111T144024Z
|
20
20
|
X-Amz-Content-Sha256:
|
21
21
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
22
22
|
Authorization:
|
23
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
24
|
-
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=
|
23
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201111/us-west-2/s3/aws4_request,
|
24
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=2cacb430714122bb417aad37ecf722891187f17f08e1089677ecf7f26157a966
|
25
25
|
Content-Length:
|
26
26
|
- '0'
|
27
27
|
Accept:
|
@@ -32,11 +32,11 @@ http_interactions:
|
|
32
32
|
message: OK
|
33
33
|
headers:
|
34
34
|
X-Amz-Id-2:
|
35
|
-
-
|
35
|
+
- 73aH2nXy9ceRr5djsnvtw8jC6DkZsSGWz4l5x3mBg5IlrO6F5UH0mDc49PlGjUo/wpKzVOQvE2Y=
|
36
36
|
X-Amz-Request-Id:
|
37
|
-
-
|
37
|
+
- A71C9133803A92F0
|
38
38
|
Date:
|
39
|
-
-
|
39
|
+
- Wed, 11 Nov 2020 14:40:26 GMT
|
40
40
|
X-Amz-Bucket-Region:
|
41
41
|
- us-west-2
|
42
42
|
Content-Type:
|
@@ -49,14 +49,13 @@ http_interactions:
|
|
49
49
|
encoding: UTF-8
|
50
50
|
string: |-
|
51
51
|
<?xml version="1.0" encoding="UTF-8"?>
|
52
|
-
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><
|
53
|
-
|
54
|
-
recorded_at: Tue, 15 Mar 2016 14:44:26 GMT
|
52
|
+
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><KeyCount>0</KeyCount><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated></ListBucketResult>
|
53
|
+
recorded_at: Wed, 11 Nov 2020 14:40:25 GMT
|
55
54
|
- request:
|
56
55
|
method: delete
|
57
|
-
uri: https://file-manager-tests.s3
|
56
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/sub_dir/saved.*
|
58
57
|
body:
|
59
|
-
encoding:
|
58
|
+
encoding: UTF-8
|
60
59
|
string: ''
|
61
60
|
headers:
|
62
61
|
Content-Type:
|
@@ -64,16 +63,16 @@ http_interactions:
|
|
64
63
|
Accept-Encoding:
|
65
64
|
- ''
|
66
65
|
User-Agent:
|
67
|
-
- aws-sdk-
|
68
|
-
X-Amz-Date:
|
69
|
-
- 20160315T144426Z
|
66
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
70
67
|
Host:
|
71
|
-
- file-manager-tests.s3
|
68
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
69
|
+
X-Amz-Date:
|
70
|
+
- 20201111T144025Z
|
72
71
|
X-Amz-Content-Sha256:
|
73
72
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
74
73
|
Authorization:
|
75
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
76
|
-
SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=
|
74
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201111/us-west-2/s3/aws4_request,
|
75
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=5f9402f9ed545b04d26fc3fb6a4ca1f6996d5caec43584e20d67ebf2da5e39ba
|
77
76
|
Content-Length:
|
78
77
|
- '0'
|
79
78
|
Accept:
|
@@ -84,16 +83,15 @@ http_interactions:
|
|
84
83
|
message: No Content
|
85
84
|
headers:
|
86
85
|
X-Amz-Id-2:
|
87
|
-
-
|
86
|
+
- hB6O+ExQm0B0OAvEZliICC1wMFC3Rbbzf/BtTCv6j/hlRyVA+7Ji6u8XwpPx+BHMFwytk4la64o=
|
88
87
|
X-Amz-Request-Id:
|
89
|
-
-
|
88
|
+
- 68934509AA9F9CF7
|
90
89
|
Date:
|
91
|
-
-
|
90
|
+
- Wed, 11 Nov 2020 14:40:27 GMT
|
92
91
|
Server:
|
93
92
|
- AmazonS3
|
94
93
|
body:
|
95
94
|
encoding: UTF-8
|
96
95
|
string: ''
|
97
|
-
|
98
|
-
|
99
|
-
recorded_with: VCR 3.0.1
|
96
|
+
recorded_at: Wed, 11 Nov 2020 14:40:26 GMT
|
97
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,691 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/?list-type=2&prefix=
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- ''
|
12
|
+
Accept-Encoding:
|
13
|
+
- ''
|
14
|
+
User-Agent:
|
15
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
16
|
+
Host:
|
17
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
18
|
+
X-Amz-Date:
|
19
|
+
- 20201112T131726Z
|
20
|
+
X-Amz-Content-Sha256:
|
21
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
22
|
+
Authorization:
|
23
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201112/us-west-2/s3/aws4_request,
|
24
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=f0fb6924ee4f22dd6cf1f44800717de9e3475b72f82af218237292da17301efd
|
25
|
+
Content-Length:
|
26
|
+
- '0'
|
27
|
+
Accept:
|
28
|
+
- "*/*"
|
29
|
+
response:
|
30
|
+
status:
|
31
|
+
code: 200
|
32
|
+
message: OK
|
33
|
+
headers:
|
34
|
+
X-Amz-Id-2:
|
35
|
+
- GwzhL5jmSqQ37L5hQc1fUMbMcJCNU/ZApoc5J9jc537a/eaq0pUT9fL/dJfbXXDcCp4cPPlAzm4=
|
36
|
+
X-Amz-Request-Id:
|
37
|
+
- 935A205D0DBD4061
|
38
|
+
Date:
|
39
|
+
- Thu, 12 Nov 2020 13:17:28 GMT
|
40
|
+
X-Amz-Bucket-Region:
|
41
|
+
- us-west-2
|
42
|
+
Content-Type:
|
43
|
+
- application/xml
|
44
|
+
Transfer-Encoding:
|
45
|
+
- chunked
|
46
|
+
Server:
|
47
|
+
- AmazonS3
|
48
|
+
body:
|
49
|
+
encoding: UTF-8
|
50
|
+
string: |-
|
51
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
52
|
+
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><KeyCount>0</KeyCount><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated></ListBucketResult>
|
53
|
+
recorded_at: Thu, 12 Nov 2020 13:17:27 GMT
|
54
|
+
- request:
|
55
|
+
method: put
|
56
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/original/name.txt
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: rename_content
|
60
|
+
headers:
|
61
|
+
Content-Type:
|
62
|
+
- ''
|
63
|
+
Accept-Encoding:
|
64
|
+
- ''
|
65
|
+
User-Agent:
|
66
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
67
|
+
Expect:
|
68
|
+
- 100-continue
|
69
|
+
Content-Md5:
|
70
|
+
- 7QiPZ4+u3/gfk4s5tMSDmQ==
|
71
|
+
Host:
|
72
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
73
|
+
X-Amz-Date:
|
74
|
+
- 20201112T131727Z
|
75
|
+
X-Amz-Content-Sha256:
|
76
|
+
- a834188aab6b2ca5a95b886a9cf93103b4e1f8a7764a7bc4517fb51d2784f4dc
|
77
|
+
Authorization:
|
78
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201112/us-west-2/s3/aws4_request,
|
79
|
+
SignedHeaders=content-md5;host;user-agent;x-amz-content-sha256;x-amz-date,
|
80
|
+
Signature=56c17a565672cb3329a97d8e7de61f6e1b9c2eb632290969c3e0c524cccf0d6b
|
81
|
+
Content-Length:
|
82
|
+
- '14'
|
83
|
+
Accept:
|
84
|
+
- "*/*"
|
85
|
+
response:
|
86
|
+
status:
|
87
|
+
code: 200
|
88
|
+
message: OK
|
89
|
+
headers:
|
90
|
+
X-Amz-Id-2:
|
91
|
+
- "+QJBAcX1DiDx+Hd1EKN4uVmrOVNY4t5zmpdJfhETdv3A0EyBjMCUhOcQDupWJq1rSzsvOBY8UqI="
|
92
|
+
X-Amz-Request-Id:
|
93
|
+
- 2P1GAJ1NCR6T2S7M
|
94
|
+
Date:
|
95
|
+
- Thu, 12 Nov 2020 13:17:29 GMT
|
96
|
+
Etag:
|
97
|
+
- '"ed088f678faedff81f938b39b4c48399"'
|
98
|
+
Content-Length:
|
99
|
+
- '0'
|
100
|
+
Server:
|
101
|
+
- AmazonS3
|
102
|
+
body:
|
103
|
+
encoding: UTF-8
|
104
|
+
string: ''
|
105
|
+
recorded_at: Thu, 12 Nov 2020 13:17:28 GMT
|
106
|
+
- request:
|
107
|
+
method: put
|
108
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/new/name.txt
|
109
|
+
body:
|
110
|
+
encoding: UTF-8
|
111
|
+
string: ''
|
112
|
+
headers:
|
113
|
+
Content-Type:
|
114
|
+
- ''
|
115
|
+
Accept-Encoding:
|
116
|
+
- ''
|
117
|
+
User-Agent:
|
118
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
119
|
+
X-Amz-Copy-Source:
|
120
|
+
- file-manager-tests/original/name.txt
|
121
|
+
Host:
|
122
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
123
|
+
X-Amz-Date:
|
124
|
+
- 20201112T131728Z
|
125
|
+
X-Amz-Content-Sha256:
|
126
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
127
|
+
Authorization:
|
128
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201112/us-west-2/s3/aws4_request,
|
129
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-copy-source;x-amz-date,
|
130
|
+
Signature=670dd41499f79fe6e2f58119f1855c2df3087dfc68db228a6fe825f25c3c44e3
|
131
|
+
Content-Length:
|
132
|
+
- '0'
|
133
|
+
Accept:
|
134
|
+
- "*/*"
|
135
|
+
response:
|
136
|
+
status:
|
137
|
+
code: 200
|
138
|
+
message: OK
|
139
|
+
headers:
|
140
|
+
X-Amz-Id-2:
|
141
|
+
- v7gAj7gRbVDqwGTe4CcPJtjwzRyGmS3N1IM9vsovL28KS/4f5ZWMs6gGFGIhXR5WSkGi38RN7mU=
|
142
|
+
X-Amz-Request-Id:
|
143
|
+
- 48D0898C7BB68658
|
144
|
+
Date:
|
145
|
+
- Thu, 12 Nov 2020 13:17:30 GMT
|
146
|
+
Content-Type:
|
147
|
+
- application/xml
|
148
|
+
Content-Length:
|
149
|
+
- '234'
|
150
|
+
Server:
|
151
|
+
- AmazonS3
|
152
|
+
body:
|
153
|
+
encoding: UTF-8
|
154
|
+
string: |-
|
155
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
156
|
+
<CopyObjectResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><LastModified>2020-11-12T13:17:30.000Z</LastModified><ETag>"ed088f678faedff81f938b39b4c48399"</ETag></CopyObjectResult>
|
157
|
+
recorded_at: Thu, 12 Nov 2020 13:17:29 GMT
|
158
|
+
- request:
|
159
|
+
method: delete
|
160
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/original/name.txt
|
161
|
+
body:
|
162
|
+
encoding: UTF-8
|
163
|
+
string: ''
|
164
|
+
headers:
|
165
|
+
Content-Type:
|
166
|
+
- ''
|
167
|
+
Accept-Encoding:
|
168
|
+
- ''
|
169
|
+
User-Agent:
|
170
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
171
|
+
Host:
|
172
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
173
|
+
X-Amz-Date:
|
174
|
+
- 20201112T131729Z
|
175
|
+
X-Amz-Content-Sha256:
|
176
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
177
|
+
Authorization:
|
178
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201112/us-west-2/s3/aws4_request,
|
179
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=239d76f473550eec296bc45f972fbb544e1d28794ae5ae225d7f68a1b567dcfc
|
180
|
+
Content-Length:
|
181
|
+
- '0'
|
182
|
+
Accept:
|
183
|
+
- "*/*"
|
184
|
+
response:
|
185
|
+
status:
|
186
|
+
code: 204
|
187
|
+
message: No Content
|
188
|
+
headers:
|
189
|
+
X-Amz-Id-2:
|
190
|
+
- "/R6KF4D0b36t1u+IEqlmsH/C8z+kW3Vx49FKr7XDSGfcyVSEdAqAV5cP1d5vx850FOEUYShQz6U="
|
191
|
+
X-Amz-Request-Id:
|
192
|
+
- 0AD833C66E645791
|
193
|
+
Date:
|
194
|
+
- Thu, 12 Nov 2020 13:17:30 GMT
|
195
|
+
Server:
|
196
|
+
- AmazonS3
|
197
|
+
body:
|
198
|
+
encoding: UTF-8
|
199
|
+
string: ''
|
200
|
+
recorded_at: Thu, 12 Nov 2020 13:17:29 GMT
|
201
|
+
- request:
|
202
|
+
method: get
|
203
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/?list-type=2&prefix=
|
204
|
+
body:
|
205
|
+
encoding: UTF-8
|
206
|
+
string: ''
|
207
|
+
headers:
|
208
|
+
Content-Type:
|
209
|
+
- ''
|
210
|
+
Accept-Encoding:
|
211
|
+
- ''
|
212
|
+
User-Agent:
|
213
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
214
|
+
Host:
|
215
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
216
|
+
X-Amz-Date:
|
217
|
+
- 20201112T131729Z
|
218
|
+
X-Amz-Content-Sha256:
|
219
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
220
|
+
Authorization:
|
221
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201112/us-west-2/s3/aws4_request,
|
222
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=c4659a714b231664f8d074213e6d215fc90a996ef8cd8cd06516b339a8991431
|
223
|
+
Content-Length:
|
224
|
+
- '0'
|
225
|
+
Accept:
|
226
|
+
- "*/*"
|
227
|
+
response:
|
228
|
+
status:
|
229
|
+
code: 200
|
230
|
+
message: OK
|
231
|
+
headers:
|
232
|
+
X-Amz-Id-2:
|
233
|
+
- kGyXjZAdn2kxXM2usZd/169ZqPHFPs1xXHPGAdIA82CnnEVa6MBbfpXduvSAnVe6muBGvzUnXC4=
|
234
|
+
X-Amz-Request-Id:
|
235
|
+
- '09CF35C09762C4A2'
|
236
|
+
Date:
|
237
|
+
- Thu, 12 Nov 2020 13:17:31 GMT
|
238
|
+
X-Amz-Bucket-Region:
|
239
|
+
- us-west-2
|
240
|
+
Content-Type:
|
241
|
+
- application/xml
|
242
|
+
Transfer-Encoding:
|
243
|
+
- chunked
|
244
|
+
Server:
|
245
|
+
- AmazonS3
|
246
|
+
body:
|
247
|
+
encoding: UTF-8
|
248
|
+
string: |-
|
249
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
250
|
+
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><KeyCount>1</KeyCount><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated><Contents><Key>new/name.txt</Key><LastModified>2020-11-12T13:17:30.000Z</LastModified><ETag>"ed088f678faedff81f938b39b4c48399"</ETag><Size>14</Size><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
|
251
|
+
recorded_at: Thu, 12 Nov 2020 13:17:30 GMT
|
252
|
+
- request:
|
253
|
+
method: get
|
254
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/new/name.txt
|
255
|
+
body:
|
256
|
+
encoding: UTF-8
|
257
|
+
string: ''
|
258
|
+
headers:
|
259
|
+
Content-Type:
|
260
|
+
- ''
|
261
|
+
Accept-Encoding:
|
262
|
+
- ''
|
263
|
+
User-Agent:
|
264
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
265
|
+
Host:
|
266
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
267
|
+
X-Amz-Date:
|
268
|
+
- 20201112T131730Z
|
269
|
+
X-Amz-Content-Sha256:
|
270
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
271
|
+
Authorization:
|
272
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201112/us-west-2/s3/aws4_request,
|
273
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=b2b7ea28ac4782e50767661699e14a88b146f37d0ab8deb6c8d22ed62e36a37c
|
274
|
+
Content-Length:
|
275
|
+
- '0'
|
276
|
+
Accept:
|
277
|
+
- "*/*"
|
278
|
+
response:
|
279
|
+
status:
|
280
|
+
code: 200
|
281
|
+
message: OK
|
282
|
+
headers:
|
283
|
+
X-Amz-Id-2:
|
284
|
+
- a0GFE01GtSyl2STfTvYwU7E2ScvdvnK47GF1J8gSGpxanbsd/wTgt4jtTkaeaPeoo//oJCV4gBE=
|
285
|
+
X-Amz-Request-Id:
|
286
|
+
- FS4J2Q1G8M1ZFN7P
|
287
|
+
Date:
|
288
|
+
- Thu, 12 Nov 2020 13:17:32 GMT
|
289
|
+
Last-Modified:
|
290
|
+
- Thu, 12 Nov 2020 13:17:30 GMT
|
291
|
+
Etag:
|
292
|
+
- '"ed088f678faedff81f938b39b4c48399"'
|
293
|
+
Accept-Ranges:
|
294
|
+
- bytes
|
295
|
+
Content-Type:
|
296
|
+
- ''
|
297
|
+
Content-Length:
|
298
|
+
- '14'
|
299
|
+
Server:
|
300
|
+
- AmazonS3
|
301
|
+
body:
|
302
|
+
encoding: UTF-8
|
303
|
+
string: rename_content
|
304
|
+
recorded_at: Thu, 12 Nov 2020 13:17:31 GMT
|
305
|
+
- request:
|
306
|
+
method: put
|
307
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/new/new2/name.txt
|
308
|
+
body:
|
309
|
+
encoding: UTF-8
|
310
|
+
string: ''
|
311
|
+
headers:
|
312
|
+
Content-Type:
|
313
|
+
- ''
|
314
|
+
Accept-Encoding:
|
315
|
+
- ''
|
316
|
+
User-Agent:
|
317
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
318
|
+
X-Amz-Copy-Source:
|
319
|
+
- file-manager-tests/new/name.txt
|
320
|
+
Host:
|
321
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
322
|
+
X-Amz-Date:
|
323
|
+
- 20201112T131731Z
|
324
|
+
X-Amz-Content-Sha256:
|
325
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
326
|
+
Authorization:
|
327
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201112/us-west-2/s3/aws4_request,
|
328
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-copy-source;x-amz-date,
|
329
|
+
Signature=c23ca91ecc0e23fdf46dbc88e305e1228902b3d87a95e51a0a890fe949eee0ef
|
330
|
+
Content-Length:
|
331
|
+
- '0'
|
332
|
+
Accept:
|
333
|
+
- "*/*"
|
334
|
+
response:
|
335
|
+
status:
|
336
|
+
code: 200
|
337
|
+
message: OK
|
338
|
+
headers:
|
339
|
+
X-Amz-Id-2:
|
340
|
+
- BvPN13xHDq0zf+2y4zLhyQdqFBdvXidP1A2/bchuXy1+OUloeok8ym3VMUQJ3raLqelEJmgZuFw=
|
341
|
+
X-Amz-Request-Id:
|
342
|
+
- 561DBEB6D05B73D1
|
343
|
+
Date:
|
344
|
+
- Thu, 12 Nov 2020 13:17:33 GMT
|
345
|
+
Content-Type:
|
346
|
+
- application/xml
|
347
|
+
Content-Length:
|
348
|
+
- '234'
|
349
|
+
Server:
|
350
|
+
- AmazonS3
|
351
|
+
body:
|
352
|
+
encoding: UTF-8
|
353
|
+
string: |-
|
354
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
355
|
+
<CopyObjectResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><LastModified>2020-11-12T13:17:33.000Z</LastModified><ETag>"ed088f678faedff81f938b39b4c48399"</ETag></CopyObjectResult>
|
356
|
+
recorded_at: Thu, 12 Nov 2020 13:17:32 GMT
|
357
|
+
- request:
|
358
|
+
method: delete
|
359
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/new/name.txt
|
360
|
+
body:
|
361
|
+
encoding: UTF-8
|
362
|
+
string: ''
|
363
|
+
headers:
|
364
|
+
Content-Type:
|
365
|
+
- ''
|
366
|
+
Accept-Encoding:
|
367
|
+
- ''
|
368
|
+
User-Agent:
|
369
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
370
|
+
Host:
|
371
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
372
|
+
X-Amz-Date:
|
373
|
+
- 20201112T131732Z
|
374
|
+
X-Amz-Content-Sha256:
|
375
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
376
|
+
Authorization:
|
377
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201112/us-west-2/s3/aws4_request,
|
378
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=b36f8c7c8e05d8eee037650b1d1ebdac8057b6bf9e7b5180735498a70e6a43c9
|
379
|
+
Content-Length:
|
380
|
+
- '0'
|
381
|
+
Accept:
|
382
|
+
- "*/*"
|
383
|
+
response:
|
384
|
+
status:
|
385
|
+
code: 204
|
386
|
+
message: No Content
|
387
|
+
headers:
|
388
|
+
X-Amz-Id-2:
|
389
|
+
- S1yM0CsBVBbpGD3vpeEaZeswvvPnBgNm3miZDKPwHzMOfVoegsiCkO0INGOx5yIl21s4NFAC+Qg=
|
390
|
+
X-Amz-Request-Id:
|
391
|
+
- 277824E6E726D653
|
392
|
+
Date:
|
393
|
+
- Thu, 12 Nov 2020 13:17:33 GMT
|
394
|
+
Server:
|
395
|
+
- AmazonS3
|
396
|
+
body:
|
397
|
+
encoding: UTF-8
|
398
|
+
string: ''
|
399
|
+
recorded_at: Thu, 12 Nov 2020 13:17:32 GMT
|
400
|
+
- request:
|
401
|
+
method: get
|
402
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/?list-type=2&prefix=
|
403
|
+
body:
|
404
|
+
encoding: UTF-8
|
405
|
+
string: ''
|
406
|
+
headers:
|
407
|
+
Content-Type:
|
408
|
+
- ''
|
409
|
+
Accept-Encoding:
|
410
|
+
- ''
|
411
|
+
User-Agent:
|
412
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
413
|
+
Host:
|
414
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
415
|
+
X-Amz-Date:
|
416
|
+
- 20201112T131732Z
|
417
|
+
X-Amz-Content-Sha256:
|
418
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
419
|
+
Authorization:
|
420
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201112/us-west-2/s3/aws4_request,
|
421
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=d64eaee7da7041c475ea228adfc355fcbefbcf81e9105fbff4e0eb4c5af48939
|
422
|
+
Content-Length:
|
423
|
+
- '0'
|
424
|
+
Accept:
|
425
|
+
- "*/*"
|
426
|
+
response:
|
427
|
+
status:
|
428
|
+
code: 200
|
429
|
+
message: OK
|
430
|
+
headers:
|
431
|
+
X-Amz-Id-2:
|
432
|
+
- yh/3rTZJwVaIhEPAfdoyKt5KDSwCBh9THw/DXdGYSivDIPtUvud/pRyWC96fn8FYjNarvZNgCO4=
|
433
|
+
X-Amz-Request-Id:
|
434
|
+
- B23BA957F3E7CDE8
|
435
|
+
Date:
|
436
|
+
- Thu, 12 Nov 2020 13:17:34 GMT
|
437
|
+
X-Amz-Bucket-Region:
|
438
|
+
- us-west-2
|
439
|
+
Content-Type:
|
440
|
+
- application/xml
|
441
|
+
Transfer-Encoding:
|
442
|
+
- chunked
|
443
|
+
Server:
|
444
|
+
- AmazonS3
|
445
|
+
body:
|
446
|
+
encoding: UTF-8
|
447
|
+
string: |-
|
448
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
449
|
+
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><KeyCount>1</KeyCount><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated><Contents><Key>new/new2/name.txt</Key><LastModified>2020-11-12T13:17:33.000Z</LastModified><ETag>"ed088f678faedff81f938b39b4c48399"</ETag><Size>14</Size><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
|
450
|
+
recorded_at: Thu, 12 Nov 2020 13:17:33 GMT
|
451
|
+
- request:
|
452
|
+
method: get
|
453
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/new/new2/name.txt
|
454
|
+
body:
|
455
|
+
encoding: UTF-8
|
456
|
+
string: ''
|
457
|
+
headers:
|
458
|
+
Content-Type:
|
459
|
+
- ''
|
460
|
+
Accept-Encoding:
|
461
|
+
- ''
|
462
|
+
User-Agent:
|
463
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
464
|
+
Host:
|
465
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
466
|
+
X-Amz-Date:
|
467
|
+
- 20201112T131733Z
|
468
|
+
X-Amz-Content-Sha256:
|
469
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
470
|
+
Authorization:
|
471
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201112/us-west-2/s3/aws4_request,
|
472
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=f1a4508e43ebf5a3c44a7e7d3f054361b5982f2d8bda3790dc7cfd6deb47867a
|
473
|
+
Content-Length:
|
474
|
+
- '0'
|
475
|
+
Accept:
|
476
|
+
- "*/*"
|
477
|
+
response:
|
478
|
+
status:
|
479
|
+
code: 200
|
480
|
+
message: OK
|
481
|
+
headers:
|
482
|
+
X-Amz-Id-2:
|
483
|
+
- omMhN59GHAqSPZ37kdgkIQCTcT+ru4R81F/jvH3PoiuBQVGaFZNsybMD2c1Gazlr5qtcLuLUhZY=
|
484
|
+
X-Amz-Request-Id:
|
485
|
+
- BA803CE97A866226
|
486
|
+
Date:
|
487
|
+
- Thu, 12 Nov 2020 13:17:35 GMT
|
488
|
+
Last-Modified:
|
489
|
+
- Thu, 12 Nov 2020 13:17:33 GMT
|
490
|
+
Etag:
|
491
|
+
- '"ed088f678faedff81f938b39b4c48399"'
|
492
|
+
Accept-Ranges:
|
493
|
+
- bytes
|
494
|
+
Content-Type:
|
495
|
+
- ''
|
496
|
+
Content-Length:
|
497
|
+
- '14'
|
498
|
+
Server:
|
499
|
+
- AmazonS3
|
500
|
+
body:
|
501
|
+
encoding: UTF-8
|
502
|
+
string: rename_content
|
503
|
+
recorded_at: Thu, 12 Nov 2020 13:17:34 GMT
|
504
|
+
- request:
|
505
|
+
method: put
|
506
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/new/name.txt
|
507
|
+
body:
|
508
|
+
encoding: UTF-8
|
509
|
+
string: ''
|
510
|
+
headers:
|
511
|
+
Content-Type:
|
512
|
+
- ''
|
513
|
+
Accept-Encoding:
|
514
|
+
- ''
|
515
|
+
User-Agent:
|
516
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
517
|
+
X-Amz-Copy-Source:
|
518
|
+
- file-manager-tests/nao_existe/name.txt
|
519
|
+
Host:
|
520
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
521
|
+
X-Amz-Date:
|
522
|
+
- 20201112T131734Z
|
523
|
+
X-Amz-Content-Sha256:
|
524
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
525
|
+
Authorization:
|
526
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201112/us-west-2/s3/aws4_request,
|
527
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-copy-source;x-amz-date,
|
528
|
+
Signature=a72b4e08476f743f84a7005e24b2ecdf9694e9d8fb333759c5b28d693eb67b3b
|
529
|
+
Content-Length:
|
530
|
+
- '0'
|
531
|
+
Accept:
|
532
|
+
- "*/*"
|
533
|
+
response:
|
534
|
+
status:
|
535
|
+
code: 404
|
536
|
+
message: Not Found
|
537
|
+
headers:
|
538
|
+
X-Amz-Request-Id:
|
539
|
+
- BDAF2E022D3CE395
|
540
|
+
X-Amz-Id-2:
|
541
|
+
- 8wMDKawmJBYfWHV6eB8KrouC9DrLmKbg+GAgMC23OJVG7rIWMoj3e2ghSpUXS7/U/+nYLSipy/U=
|
542
|
+
Content-Type:
|
543
|
+
- application/xml
|
544
|
+
Transfer-Encoding:
|
545
|
+
- chunked
|
546
|
+
Date:
|
547
|
+
- Thu, 12 Nov 2020 13:17:34 GMT
|
548
|
+
Server:
|
549
|
+
- AmazonS3
|
550
|
+
body:
|
551
|
+
encoding: UTF-8
|
552
|
+
string: "<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>nao_existe/name.txt</Key><RequestId>BDAF2E022D3CE395</RequestId><HostId>8wMDKawmJBYfWHV6eB8KrouC9DrLmKbg+GAgMC23OJVG7rIWMoj3e2ghSpUXS7/U/+nYLSipy/U=</HostId></Error>"
|
553
|
+
recorded_at: Thu, 12 Nov 2020 13:17:35 GMT
|
554
|
+
- request:
|
555
|
+
method: delete
|
556
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/original/name.txt
|
557
|
+
body:
|
558
|
+
encoding: UTF-8
|
559
|
+
string: ''
|
560
|
+
headers:
|
561
|
+
Content-Type:
|
562
|
+
- ''
|
563
|
+
Accept-Encoding:
|
564
|
+
- ''
|
565
|
+
User-Agent:
|
566
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
567
|
+
Host:
|
568
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
569
|
+
X-Amz-Date:
|
570
|
+
- 20201112T131735Z
|
571
|
+
X-Amz-Content-Sha256:
|
572
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
573
|
+
Authorization:
|
574
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201112/us-west-2/s3/aws4_request,
|
575
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=5d8ca4020a5dbe030ae74eab7783d17f0d36ea9ce733406c45336f5d2260a3db
|
576
|
+
Content-Length:
|
577
|
+
- '0'
|
578
|
+
Accept:
|
579
|
+
- "*/*"
|
580
|
+
response:
|
581
|
+
status:
|
582
|
+
code: 204
|
583
|
+
message: No Content
|
584
|
+
headers:
|
585
|
+
X-Amz-Id-2:
|
586
|
+
- sq8xuB2WYkzX8did/C9FMuvHNppC/MS5J7y7+P45CDzOEqsqsn3vAVKnDNU3QLba95AvHlnAfIE=
|
587
|
+
X-Amz-Request-Id:
|
588
|
+
- CA9477F310BAB01D
|
589
|
+
Date:
|
590
|
+
- Thu, 12 Nov 2020 13:17:36 GMT
|
591
|
+
Server:
|
592
|
+
- AmazonS3
|
593
|
+
body:
|
594
|
+
encoding: UTF-8
|
595
|
+
string: ''
|
596
|
+
recorded_at: Thu, 12 Nov 2020 13:17:35 GMT
|
597
|
+
- request:
|
598
|
+
method: delete
|
599
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/new/new2/name.txt
|
600
|
+
body:
|
601
|
+
encoding: UTF-8
|
602
|
+
string: ''
|
603
|
+
headers:
|
604
|
+
Content-Type:
|
605
|
+
- ''
|
606
|
+
Accept-Encoding:
|
607
|
+
- ''
|
608
|
+
User-Agent:
|
609
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
610
|
+
Host:
|
611
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
612
|
+
X-Amz-Date:
|
613
|
+
- 20201112T131735Z
|
614
|
+
X-Amz-Content-Sha256:
|
615
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
616
|
+
Authorization:
|
617
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201112/us-west-2/s3/aws4_request,
|
618
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=a2114aab93ca59422184e3311374dee9b8361a027d5d56daf851209b3af01c40
|
619
|
+
Content-Length:
|
620
|
+
- '0'
|
621
|
+
Accept:
|
622
|
+
- "*/*"
|
623
|
+
response:
|
624
|
+
status:
|
625
|
+
code: 204
|
626
|
+
message: No Content
|
627
|
+
headers:
|
628
|
+
X-Amz-Id-2:
|
629
|
+
- 9h9F9X9mO6UM2pU2iYk59anEBWSHdWeN1wYQ0gkWlKK5+hyMPXJhfAeqQ/RLxBKNWoHTBA/7T/M=
|
630
|
+
X-Amz-Request-Id:
|
631
|
+
- '0945D7658D00EB84'
|
632
|
+
Date:
|
633
|
+
- Thu, 12 Nov 2020 13:17:37 GMT
|
634
|
+
Server:
|
635
|
+
- AmazonS3
|
636
|
+
body:
|
637
|
+
encoding: UTF-8
|
638
|
+
string: ''
|
639
|
+
recorded_at: Thu, 12 Nov 2020 13:17:36 GMT
|
640
|
+
- request:
|
641
|
+
method: get
|
642
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/?list-type=2&prefix=
|
643
|
+
body:
|
644
|
+
encoding: UTF-8
|
645
|
+
string: ''
|
646
|
+
headers:
|
647
|
+
Content-Type:
|
648
|
+
- ''
|
649
|
+
Accept-Encoding:
|
650
|
+
- ''
|
651
|
+
User-Agent:
|
652
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
653
|
+
Host:
|
654
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
655
|
+
X-Amz-Date:
|
656
|
+
- 20201112T131736Z
|
657
|
+
X-Amz-Content-Sha256:
|
658
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
659
|
+
Authorization:
|
660
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201112/us-west-2/s3/aws4_request,
|
661
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=d5571ab8824eb71714014dcc1b116625701295e8e80eaa01eb21bd74851ff0b0
|
662
|
+
Content-Length:
|
663
|
+
- '0'
|
664
|
+
Accept:
|
665
|
+
- "*/*"
|
666
|
+
response:
|
667
|
+
status:
|
668
|
+
code: 200
|
669
|
+
message: OK
|
670
|
+
headers:
|
671
|
+
X-Amz-Id-2:
|
672
|
+
- BfzdvyYCh8qXRwpzzbTFA809w+t/M8pY+1B2wnEBg3eeD42lHBWfm5aIhz9qsgpJSzZVYi7jtxQ=
|
673
|
+
X-Amz-Request-Id:
|
674
|
+
- FCE7254D9CF5670D
|
675
|
+
Date:
|
676
|
+
- Thu, 12 Nov 2020 13:17:38 GMT
|
677
|
+
X-Amz-Bucket-Region:
|
678
|
+
- us-west-2
|
679
|
+
Content-Type:
|
680
|
+
- application/xml
|
681
|
+
Transfer-Encoding:
|
682
|
+
- chunked
|
683
|
+
Server:
|
684
|
+
- AmazonS3
|
685
|
+
body:
|
686
|
+
encoding: UTF-8
|
687
|
+
string: |-
|
688
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
689
|
+
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><KeyCount>0</KeyCount><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated></ListBucketResult>
|
690
|
+
recorded_at: Thu, 12 Nov 2020 13:17:37 GMT
|
691
|
+
recorded_with: VCR 6.0.0
|