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
@@ -0,0 +1,253 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/temp_file/saved
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: content
|
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
|
+
Expect:
|
17
|
+
- 100-continue
|
18
|
+
Content-Md5:
|
19
|
+
- mgNkuembtIDdJeHwKEyFVQ==
|
20
|
+
Host:
|
21
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
22
|
+
X-Amz-Date:
|
23
|
+
- 20201124T145029Z
|
24
|
+
X-Amz-Content-Sha256:
|
25
|
+
- ed7002b439e9ac845f22357d822bac1444730fbdb6016d3ec9432297b9ec9f73
|
26
|
+
Authorization:
|
27
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201124/us-west-2/s3/aws4_request,
|
28
|
+
SignedHeaders=content-md5;host;user-agent;x-amz-content-sha256;x-amz-date,
|
29
|
+
Signature=1553631fdede92e7c00cdfc3c2695fddd968619d76c58a3aedb4ec3d2af6216d
|
30
|
+
Content-Length:
|
31
|
+
- '7'
|
32
|
+
Accept:
|
33
|
+
- "*/*"
|
34
|
+
response:
|
35
|
+
status:
|
36
|
+
code: 200
|
37
|
+
message: OK
|
38
|
+
headers:
|
39
|
+
X-Amz-Id-2:
|
40
|
+
- M+sMGbF/0sv9rsxptZZE54Y3+E7Zr0lLMs2jmlBLlykPHYQFuxqRCL5/SXOKPyC+6eFW8WdJhpo=
|
41
|
+
X-Amz-Request-Id:
|
42
|
+
- E2ED2A94148D8A42
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Nov 2020 14:50:30 GMT
|
45
|
+
Etag:
|
46
|
+
- '"9a0364b9e99bb480dd25e1f0284c8555"'
|
47
|
+
Content-Length:
|
48
|
+
- '0'
|
49
|
+
Server:
|
50
|
+
- AmazonS3
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: ''
|
54
|
+
recorded_at: Tue, 24 Nov 2020 14:50:30 GMT
|
55
|
+
- request:
|
56
|
+
method: get
|
57
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/temp_file/saved
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
Content-Type:
|
63
|
+
- ''
|
64
|
+
Accept-Encoding:
|
65
|
+
- ''
|
66
|
+
User-Agent:
|
67
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
68
|
+
Host:
|
69
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
70
|
+
X-Amz-Date:
|
71
|
+
- 20201124T145030Z
|
72
|
+
X-Amz-Content-Sha256:
|
73
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
74
|
+
Authorization:
|
75
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201124/us-west-2/s3/aws4_request,
|
76
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=3553a99ec17f350f66cd836de1c4232204bb6880ee0225d11eef0d96cc077a0e
|
77
|
+
Content-Length:
|
78
|
+
- '0'
|
79
|
+
Accept:
|
80
|
+
- "*/*"
|
81
|
+
response:
|
82
|
+
status:
|
83
|
+
code: 200
|
84
|
+
message: OK
|
85
|
+
headers:
|
86
|
+
X-Amz-Id-2:
|
87
|
+
- 66mnB4P9tZ5nspyQ91ANVbtwvcgI156GsyxjMURwCFU35qeTq4co1NdqLZCg39tcH3r54+ljkwU=
|
88
|
+
X-Amz-Request-Id:
|
89
|
+
- CFEFB83676E3AD41
|
90
|
+
Date:
|
91
|
+
- Tue, 24 Nov 2020 14:50:31 GMT
|
92
|
+
Last-Modified:
|
93
|
+
- Tue, 24 Nov 2020 14:50:30 GMT
|
94
|
+
Etag:
|
95
|
+
- '"9a0364b9e99bb480dd25e1f0284c8555"'
|
96
|
+
Accept-Ranges:
|
97
|
+
- bytes
|
98
|
+
Content-Type:
|
99
|
+
- ''
|
100
|
+
Content-Length:
|
101
|
+
- '7'
|
102
|
+
Server:
|
103
|
+
- AmazonS3
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: content
|
107
|
+
recorded_at: Tue, 24 Nov 2020 14:50:30 GMT
|
108
|
+
- request:
|
109
|
+
method: get
|
110
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/temp_file/saved
|
111
|
+
body:
|
112
|
+
encoding: UTF-8
|
113
|
+
string: ''
|
114
|
+
headers:
|
115
|
+
Content-Type:
|
116
|
+
- ''
|
117
|
+
Accept-Encoding:
|
118
|
+
- ''
|
119
|
+
User-Agent:
|
120
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
121
|
+
Host:
|
122
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
123
|
+
X-Amz-Date:
|
124
|
+
- 20201124T145030Z
|
125
|
+
X-Amz-Content-Sha256:
|
126
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
127
|
+
Authorization:
|
128
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201124/us-west-2/s3/aws4_request,
|
129
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=3553a99ec17f350f66cd836de1c4232204bb6880ee0225d11eef0d96cc077a0e
|
130
|
+
Content-Length:
|
131
|
+
- '0'
|
132
|
+
Accept:
|
133
|
+
- "*/*"
|
134
|
+
response:
|
135
|
+
status:
|
136
|
+
code: 200
|
137
|
+
message: OK
|
138
|
+
headers:
|
139
|
+
X-Amz-Id-2:
|
140
|
+
- s31pm0mfwgROmbOaNEzb6u1AWjGhnLB7PBfgNfZp0AZ/gA6I4wb6TZ/ZOArBdfqkEhLGlpuXQ8U=
|
141
|
+
X-Amz-Request-Id:
|
142
|
+
- AB6B9F1835ABBBB4
|
143
|
+
Date:
|
144
|
+
- Tue, 24 Nov 2020 14:50:32 GMT
|
145
|
+
Last-Modified:
|
146
|
+
- Tue, 24 Nov 2020 14:50:30 GMT
|
147
|
+
Etag:
|
148
|
+
- '"9a0364b9e99bb480dd25e1f0284c8555"'
|
149
|
+
Accept-Ranges:
|
150
|
+
- bytes
|
151
|
+
Content-Type:
|
152
|
+
- ''
|
153
|
+
Content-Length:
|
154
|
+
- '7'
|
155
|
+
Server:
|
156
|
+
- AmazonS3
|
157
|
+
body:
|
158
|
+
encoding: UTF-8
|
159
|
+
string: content
|
160
|
+
recorded_at: Tue, 24 Nov 2020 14:50:31 GMT
|
161
|
+
- request:
|
162
|
+
method: delete
|
163
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/temp_file/saved
|
164
|
+
body:
|
165
|
+
encoding: UTF-8
|
166
|
+
string: ''
|
167
|
+
headers:
|
168
|
+
Content-Type:
|
169
|
+
- ''
|
170
|
+
Accept-Encoding:
|
171
|
+
- ''
|
172
|
+
User-Agent:
|
173
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
174
|
+
Host:
|
175
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
176
|
+
X-Amz-Date:
|
177
|
+
- 20201124T145031Z
|
178
|
+
X-Amz-Content-Sha256:
|
179
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
180
|
+
Authorization:
|
181
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201124/us-west-2/s3/aws4_request,
|
182
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=ea30154941154ad4249905230d8fac332aec2dcbb81302d1bc607616c0a0caf3
|
183
|
+
Content-Length:
|
184
|
+
- '0'
|
185
|
+
Accept:
|
186
|
+
- "*/*"
|
187
|
+
response:
|
188
|
+
status:
|
189
|
+
code: 204
|
190
|
+
message: No Content
|
191
|
+
headers:
|
192
|
+
X-Amz-Id-2:
|
193
|
+
- JFGwdnwwfZkQ3RZMgmgrspZEyv/F7lNEMgynTh5CezJGG8in7MMAXOPLWipSp4cA41S4L2zOiu4=
|
194
|
+
X-Amz-Request-Id:
|
195
|
+
- F24A51B9E5B403A8
|
196
|
+
Date:
|
197
|
+
- Tue, 24 Nov 2020 14:50:33 GMT
|
198
|
+
Server:
|
199
|
+
- AmazonS3
|
200
|
+
body:
|
201
|
+
encoding: UTF-8
|
202
|
+
string: ''
|
203
|
+
recorded_at: Tue, 24 Nov 2020 14:50:32 GMT
|
204
|
+
- request:
|
205
|
+
method: get
|
206
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/temp_file/saved
|
207
|
+
body:
|
208
|
+
encoding: UTF-8
|
209
|
+
string: ''
|
210
|
+
headers:
|
211
|
+
Content-Type:
|
212
|
+
- ''
|
213
|
+
Accept-Encoding:
|
214
|
+
- ''
|
215
|
+
User-Agent:
|
216
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
217
|
+
Host:
|
218
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
219
|
+
X-Amz-Date:
|
220
|
+
- 20201124T145032Z
|
221
|
+
X-Amz-Content-Sha256:
|
222
|
+
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
223
|
+
Authorization:
|
224
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201124/us-west-2/s3/aws4_request,
|
225
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=e0d987aab7932cf51f4fba7447e5cf057a5a78e4737c477e6e0ce1bed651d99a
|
226
|
+
Content-Length:
|
227
|
+
- '0'
|
228
|
+
Accept:
|
229
|
+
- "*/*"
|
230
|
+
response:
|
231
|
+
status:
|
232
|
+
code: 404
|
233
|
+
message: Not Found
|
234
|
+
headers:
|
235
|
+
X-Amz-Request-Id:
|
236
|
+
- '09FAB9D7EA1E6425'
|
237
|
+
X-Amz-Id-2:
|
238
|
+
- lUWz95OFeBVsoYoLv0UDvqIvcW+mmS8b6NdfpdVukU+VCDC+A5xS1XGkPq+YxO3Es/nfuus/kow=
|
239
|
+
Content-Type:
|
240
|
+
- application/xml
|
241
|
+
Transfer-Encoding:
|
242
|
+
- chunked
|
243
|
+
Date:
|
244
|
+
- Tue, 24 Nov 2020 14:50:32 GMT
|
245
|
+
Server:
|
246
|
+
- AmazonS3
|
247
|
+
body:
|
248
|
+
encoding: UTF-8
|
249
|
+
string: |-
|
250
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
251
|
+
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>temp_file/saved</Key><RequestId>09FAB9D7EA1E6425</RequestId><HostId>lUWz95OFeBVsoYoLv0UDvqIvcW+mmS8b6NdfpdVukU+VCDC+A5xS1XGkPq+YxO3Es/nfuus/kow=</HostId></Error>
|
252
|
+
recorded_at: Tue, 24 Nov 2020 14:50:32 GMT
|
253
|
+
recorded_with: VCR 6.0.0
|
@@ -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,30 +12,31 @@ http_interactions:
|
|
12
12
|
Accept-Encoding:
|
13
13
|
- ''
|
14
14
|
User-Agent:
|
15
|
-
- aws-sdk-
|
16
|
-
X-Amz-Date:
|
17
|
-
- 20160128T205106Z
|
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
|
+
- 20201111T144043Z
|
20
20
|
X-Amz-Content-Sha256:
|
21
21
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
22
22
|
Authorization:
|
23
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
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=ca6dbe572623d940e9f5ec8ee55c95766cee0e1b2b871623d1e2074b747a94cc
|
24
25
|
Content-Length:
|
25
26
|
- '0'
|
26
27
|
Accept:
|
27
|
-
-
|
28
|
+
- "*/*"
|
28
29
|
response:
|
29
30
|
status:
|
30
31
|
code: 200
|
31
32
|
message: OK
|
32
33
|
headers:
|
33
34
|
X-Amz-Id-2:
|
34
|
-
-
|
35
|
+
- XJA3kFyIHvhpurZtBL2nuRKpDAr1ObnWf0qyijmpRhhcqXJcTI+6mMwnL2NrMg73PioCZ2QlL9Q=
|
35
36
|
X-Amz-Request-Id:
|
36
|
-
-
|
37
|
+
- BA54EEDAAB6BE145
|
37
38
|
Date:
|
38
|
-
-
|
39
|
+
- Wed, 11 Nov 2020 14:40:45 GMT
|
39
40
|
X-Amz-Bucket-Region:
|
40
41
|
- us-west-2
|
41
42
|
Content-Type:
|
@@ -45,17 +46,16 @@ http_interactions:
|
|
45
46
|
Server:
|
46
47
|
- AmazonS3
|
47
48
|
body:
|
48
|
-
encoding:
|
49
|
+
encoding: UTF-8
|
49
50
|
string: |-
|
50
51
|
<?xml version="1.0" encoding="UTF-8"?>
|
51
|
-
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><
|
52
|
-
|
53
|
-
recorded_at: Thu, 28 Jan 2016 20:51:10 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:44 GMT
|
54
54
|
- request:
|
55
55
|
method: put
|
56
|
-
uri: https://file-manager-tests.s3
|
56
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/saved.*
|
57
57
|
body:
|
58
|
-
encoding:
|
58
|
+
encoding: UTF-8
|
59
59
|
string: content
|
60
60
|
headers:
|
61
61
|
Content-Type:
|
@@ -63,34 +63,36 @@ http_interactions:
|
|
63
63
|
Accept-Encoding:
|
64
64
|
- ''
|
65
65
|
User-Agent:
|
66
|
-
- aws-sdk-
|
66
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
67
67
|
Expect:
|
68
68
|
- 100-continue
|
69
69
|
Content-Md5:
|
70
70
|
- mgNkuembtIDdJeHwKEyFVQ==
|
71
|
-
X-Amz-Date:
|
72
|
-
- 20160128T205110Z
|
73
71
|
Host:
|
74
|
-
- file-manager-tests.s3
|
72
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
73
|
+
X-Amz-Date:
|
74
|
+
- 20201111T144044Z
|
75
75
|
X-Amz-Content-Sha256:
|
76
76
|
- ed7002b439e9ac845f22357d822bac1444730fbdb6016d3ec9432297b9ec9f73
|
77
77
|
Authorization:
|
78
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
78
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201111/us-west-2/s3/aws4_request,
|
79
|
+
SignedHeaders=content-md5;host;user-agent;x-amz-content-sha256;x-amz-date,
|
80
|
+
Signature=82ac07b9e51accbd619f682d398a772c1a12b9d39b200bef4f43e0e1044a266d
|
79
81
|
Content-Length:
|
80
82
|
- '7'
|
81
83
|
Accept:
|
82
|
-
-
|
84
|
+
- "*/*"
|
83
85
|
response:
|
84
86
|
status:
|
85
87
|
code: 200
|
86
88
|
message: OK
|
87
89
|
headers:
|
88
90
|
X-Amz-Id-2:
|
89
|
-
-
|
91
|
+
- FgSwsS/y9QE2eafUbygiF03KAN2J3KKJLNLT2xilgUjrGY8STnMkV+lt5zY08UMlMLQ/msrGlpo=
|
90
92
|
X-Amz-Request-Id:
|
91
|
-
-
|
93
|
+
- B187CF96D483E124
|
92
94
|
Date:
|
93
|
-
-
|
95
|
+
- Wed, 11 Nov 2020 14:40:45 GMT
|
94
96
|
Etag:
|
95
97
|
- '"9a0364b9e99bb480dd25e1f0284c8555"'
|
96
98
|
Content-Length:
|
@@ -98,15 +100,14 @@ http_interactions:
|
|
98
100
|
Server:
|
99
101
|
- AmazonS3
|
100
102
|
body:
|
101
|
-
encoding:
|
103
|
+
encoding: UTF-8
|
102
104
|
string: ''
|
103
|
-
|
104
|
-
recorded_at: Thu, 28 Jan 2016 20:51:14 GMT
|
105
|
+
recorded_at: Wed, 11 Nov 2020 14:40:45 GMT
|
105
106
|
- request:
|
106
107
|
method: get
|
107
|
-
uri: https://file-manager-tests.s3
|
108
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/?list-type=2&prefix=other_prefix
|
108
109
|
body:
|
109
|
-
encoding:
|
110
|
+
encoding: UTF-8
|
110
111
|
string: ''
|
111
112
|
headers:
|
112
113
|
Content-Type:
|
@@ -114,30 +115,31 @@ http_interactions:
|
|
114
115
|
Accept-Encoding:
|
115
116
|
- ''
|
116
117
|
User-Agent:
|
117
|
-
- aws-sdk-
|
118
|
-
X-Amz-Date:
|
119
|
-
- 20160128T205114Z
|
118
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
120
119
|
Host:
|
121
|
-
- file-manager-tests.s3
|
120
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
121
|
+
X-Amz-Date:
|
122
|
+
- 20201111T144045Z
|
122
123
|
X-Amz-Content-Sha256:
|
123
124
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
124
125
|
Authorization:
|
125
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
126
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201111/us-west-2/s3/aws4_request,
|
127
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=fc46c37163c1d6d0cce293ca305e7afa3388c1ae835841c9d262d8e79f82902f
|
126
128
|
Content-Length:
|
127
129
|
- '0'
|
128
130
|
Accept:
|
129
|
-
-
|
131
|
+
- "*/*"
|
130
132
|
response:
|
131
133
|
status:
|
132
134
|
code: 200
|
133
135
|
message: OK
|
134
136
|
headers:
|
135
137
|
X-Amz-Id-2:
|
136
|
-
-
|
138
|
+
- VYqzwCnzB6SAs64bn1D0A5YDOfbLQjOsERgWlcEm5JPptVJSNMWG7qMz3RX5VBgozWth66SM+1M=
|
137
139
|
X-Amz-Request-Id:
|
138
|
-
-
|
140
|
+
- A0DE23FDC8EEC4D1
|
139
141
|
Date:
|
140
|
-
-
|
142
|
+
- Wed, 11 Nov 2020 14:40:46 GMT
|
141
143
|
X-Amz-Bucket-Region:
|
142
144
|
- us-west-2
|
143
145
|
Content-Type:
|
@@ -147,17 +149,16 @@ http_interactions:
|
|
147
149
|
Server:
|
148
150
|
- AmazonS3
|
149
151
|
body:
|
150
|
-
encoding:
|
152
|
+
encoding: UTF-8
|
151
153
|
string: |-
|
152
154
|
<?xml version="1.0" encoding="UTF-8"?>
|
153
|
-
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix>other_prefix</Prefix><
|
154
|
-
|
155
|
-
recorded_at: Thu, 28 Jan 2016 20:51:15 GMT
|
155
|
+
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix>other_prefix</Prefix><KeyCount>0</KeyCount><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated></ListBucketResult>
|
156
|
+
recorded_at: Wed, 11 Nov 2020 14:40:45 GMT
|
156
157
|
- request:
|
157
158
|
method: get
|
158
|
-
uri: https://file-manager-tests.s3
|
159
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/?list-type=2&prefix=sav
|
159
160
|
body:
|
160
|
-
encoding:
|
161
|
+
encoding: UTF-8
|
161
162
|
string: ''
|
162
163
|
headers:
|
163
164
|
Content-Type:
|
@@ -165,30 +166,31 @@ http_interactions:
|
|
165
166
|
Accept-Encoding:
|
166
167
|
- ''
|
167
168
|
User-Agent:
|
168
|
-
- aws-sdk-
|
169
|
-
X-Amz-Date:
|
170
|
-
- 20160128T205115Z
|
169
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
171
170
|
Host:
|
172
|
-
- file-manager-tests.s3
|
171
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
172
|
+
X-Amz-Date:
|
173
|
+
- 20201111T144045Z
|
173
174
|
X-Amz-Content-Sha256:
|
174
175
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
175
176
|
Authorization:
|
176
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
177
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201111/us-west-2/s3/aws4_request,
|
178
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=be0335756e6facf76a1e865b3ffba1030c2d75bc3ebdbf661a055243d1594487
|
177
179
|
Content-Length:
|
178
180
|
- '0'
|
179
181
|
Accept:
|
180
|
-
-
|
182
|
+
- "*/*"
|
181
183
|
response:
|
182
184
|
status:
|
183
185
|
code: 200
|
184
186
|
message: OK
|
185
187
|
headers:
|
186
188
|
X-Amz-Id-2:
|
187
|
-
-
|
189
|
+
- zrkTg6mppuhFLlk8Hfahf2vs+Nar+hA9xz3gxvLfjaQoSEHbPoyjX64b4qOk/A5xutke+Zff6/k=
|
188
190
|
X-Amz-Request-Id:
|
189
|
-
-
|
191
|
+
- EBD179C9066E182C
|
190
192
|
Date:
|
191
|
-
-
|
193
|
+
- Wed, 11 Nov 2020 14:40:47 GMT
|
192
194
|
X-Amz-Bucket-Region:
|
193
195
|
- us-west-2
|
194
196
|
Content-Type:
|
@@ -198,17 +200,16 @@ http_interactions:
|
|
198
200
|
Server:
|
199
201
|
- AmazonS3
|
200
202
|
body:
|
201
|
-
encoding:
|
203
|
+
encoding: UTF-8
|
202
204
|
string: |-
|
203
205
|
<?xml version="1.0" encoding="UTF-8"?>
|
204
|
-
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix>sav</Prefix><
|
205
|
-
|
206
|
-
recorded_at: Thu, 28 Jan 2016 20:51:16 GMT
|
206
|
+
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix>sav</Prefix><KeyCount>1</KeyCount><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated><Contents><Key>saved.*</Key><LastModified>2020-11-11T14:40:45.000Z</LastModified><ETag>"9a0364b9e99bb480dd25e1f0284c8555"</ETag><Size>7</Size><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
|
207
|
+
recorded_at: Wed, 11 Nov 2020 14:40:46 GMT
|
207
208
|
- request:
|
208
209
|
method: get
|
209
|
-
uri: https://file-manager-tests.s3
|
210
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/?list-type=2&prefix=
|
210
211
|
body:
|
211
|
-
encoding:
|
212
|
+
encoding: UTF-8
|
212
213
|
string: ''
|
213
214
|
headers:
|
214
215
|
Content-Type:
|
@@ -216,30 +217,31 @@ http_interactions:
|
|
216
217
|
Accept-Encoding:
|
217
218
|
- ''
|
218
219
|
User-Agent:
|
219
|
-
- aws-sdk-
|
220
|
-
X-Amz-Date:
|
221
|
-
- 20160128T205116Z
|
220
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
222
221
|
Host:
|
223
|
-
- file-manager-tests.s3
|
222
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
223
|
+
X-Amz-Date:
|
224
|
+
- 20201111T144046Z
|
224
225
|
X-Amz-Content-Sha256:
|
225
226
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
226
227
|
Authorization:
|
227
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
228
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201111/us-west-2/s3/aws4_request,
|
229
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=2aa01ab41c7f123d8075758815b46959908c7fad03f6de68ee83ed645c93047b
|
228
230
|
Content-Length:
|
229
231
|
- '0'
|
230
232
|
Accept:
|
231
|
-
-
|
233
|
+
- "*/*"
|
232
234
|
response:
|
233
235
|
status:
|
234
236
|
code: 200
|
235
237
|
message: OK
|
236
238
|
headers:
|
237
239
|
X-Amz-Id-2:
|
238
|
-
-
|
240
|
+
- JYbNZOGtdtG4qPHNBD5nspLPdZLAkTQQ3fuPl7wR0IpmSPUd1VOC6YRVRVSj6YQU4pmJNyfeDxE=
|
239
241
|
X-Amz-Request-Id:
|
240
|
-
-
|
242
|
+
- 15CB917B84C79716
|
241
243
|
Date:
|
242
|
-
-
|
244
|
+
- Wed, 11 Nov 2020 14:40:48 GMT
|
243
245
|
X-Amz-Bucket-Region:
|
244
246
|
- us-west-2
|
245
247
|
Content-Type:
|
@@ -249,17 +251,16 @@ http_interactions:
|
|
249
251
|
Server:
|
250
252
|
- AmazonS3
|
251
253
|
body:
|
252
|
-
encoding:
|
254
|
+
encoding: UTF-8
|
253
255
|
string: |-
|
254
256
|
<?xml version="1.0" encoding="UTF-8"?>
|
255
|
-
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><
|
256
|
-
|
257
|
-
recorded_at: Thu, 28 Jan 2016 20:51:17 GMT
|
257
|
+
<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>saved.*</Key><LastModified>2020-11-11T14:40:45.000Z</LastModified><ETag>"9a0364b9e99bb480dd25e1f0284c8555"</ETag><Size>7</Size><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
|
258
|
+
recorded_at: Wed, 11 Nov 2020 14:40:47 GMT
|
258
259
|
- request:
|
259
260
|
method: get
|
260
|
-
uri: https://file-manager-tests.s3
|
261
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/?list-type=2&prefix=sav
|
261
262
|
body:
|
262
|
-
encoding:
|
263
|
+
encoding: UTF-8
|
263
264
|
string: ''
|
264
265
|
headers:
|
265
266
|
Content-Type:
|
@@ -267,30 +268,31 @@ http_interactions:
|
|
267
268
|
Accept-Encoding:
|
268
269
|
- ''
|
269
270
|
User-Agent:
|
270
|
-
- aws-sdk-
|
271
|
-
X-Amz-Date:
|
272
|
-
- 20160128T205117Z
|
271
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
273
272
|
Host:
|
274
|
-
- file-manager-tests.s3
|
273
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
274
|
+
X-Amz-Date:
|
275
|
+
- 20201111T144047Z
|
275
276
|
X-Amz-Content-Sha256:
|
276
277
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
277
278
|
Authorization:
|
278
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
279
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201111/us-west-2/s3/aws4_request,
|
280
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=57a108b07f93c556be847569d84c9a3a4369215465946d6cbef887e0c85e5a41
|
279
281
|
Content-Length:
|
280
282
|
- '0'
|
281
283
|
Accept:
|
282
|
-
-
|
284
|
+
- "*/*"
|
283
285
|
response:
|
284
286
|
status:
|
285
287
|
code: 200
|
286
288
|
message: OK
|
287
289
|
headers:
|
288
290
|
X-Amz-Id-2:
|
289
|
-
-
|
291
|
+
- YSU7HH72kI7T/X968UOjUwCvrkIB7dXsju5SkBzIwmqhXCsiECjzWg2Zv432i5FYKBZVJSaSnaQ=
|
290
292
|
X-Amz-Request-Id:
|
291
|
-
-
|
293
|
+
- FB2506C6319B14CC
|
292
294
|
Date:
|
293
|
-
-
|
295
|
+
- Wed, 11 Nov 2020 14:40:49 GMT
|
294
296
|
X-Amz-Bucket-Region:
|
295
297
|
- us-west-2
|
296
298
|
Content-Type:
|
@@ -300,17 +302,16 @@ http_interactions:
|
|
300
302
|
Server:
|
301
303
|
- AmazonS3
|
302
304
|
body:
|
303
|
-
encoding:
|
305
|
+
encoding: UTF-8
|
304
306
|
string: |-
|
305
307
|
<?xml version="1.0" encoding="UTF-8"?>
|
306
|
-
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix>sav</Prefix><
|
307
|
-
|
308
|
-
recorded_at: Thu, 28 Jan 2016 20:51:18 GMT
|
308
|
+
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix>sav</Prefix><KeyCount>1</KeyCount><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated><Contents><Key>saved.*</Key><LastModified>2020-11-11T14:40:45.000Z</LastModified><ETag>"9a0364b9e99bb480dd25e1f0284c8555"</ETag><Size>7</Size><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
|
309
|
+
recorded_at: Wed, 11 Nov 2020 14:40:48 GMT
|
309
310
|
- request:
|
310
311
|
method: delete
|
311
|
-
uri: https://file-manager-tests.s3
|
312
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/saved.*
|
312
313
|
body:
|
313
|
-
encoding:
|
314
|
+
encoding: UTF-8
|
314
315
|
string: ''
|
315
316
|
headers:
|
316
317
|
Content-Type:
|
@@ -318,42 +319,42 @@ http_interactions:
|
|
318
319
|
Accept-Encoding:
|
319
320
|
- ''
|
320
321
|
User-Agent:
|
321
|
-
- aws-sdk-
|
322
|
-
X-Amz-Date:
|
323
|
-
- 20160128T205118Z
|
322
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
324
323
|
Host:
|
325
|
-
- file-manager-tests.s3
|
324
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
325
|
+
X-Amz-Date:
|
326
|
+
- 20201111T144048Z
|
326
327
|
X-Amz-Content-Sha256:
|
327
328
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
328
329
|
Authorization:
|
329
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
330
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201111/us-west-2/s3/aws4_request,
|
331
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=c961e4902756ff54a7fafa4772e99f1310b6685b291c2ee5d08e1bbea6b8ea56
|
330
332
|
Content-Length:
|
331
333
|
- '0'
|
332
334
|
Accept:
|
333
|
-
-
|
335
|
+
- "*/*"
|
334
336
|
response:
|
335
337
|
status:
|
336
338
|
code: 204
|
337
339
|
message: No Content
|
338
340
|
headers:
|
339
341
|
X-Amz-Id-2:
|
340
|
-
-
|
342
|
+
- BgLpZCfDuCxvYFpEmFglJb2iGBpzPXD95KdlDgb4+m+jDwjjRtAmOsElWGqNLsRjVKlOZT2BCo4=
|
341
343
|
X-Amz-Request-Id:
|
342
|
-
-
|
344
|
+
- 8970CC2F5A7337F5
|
343
345
|
Date:
|
344
|
-
-
|
346
|
+
- Wed, 11 Nov 2020 14:40:49 GMT
|
345
347
|
Server:
|
346
348
|
- AmazonS3
|
347
349
|
body:
|
348
|
-
encoding:
|
350
|
+
encoding: UTF-8
|
349
351
|
string: ''
|
350
|
-
|
351
|
-
recorded_at: Thu, 28 Jan 2016 20:51:19 GMT
|
352
|
+
recorded_at: Wed, 11 Nov 2020 14:40:49 GMT
|
352
353
|
- request:
|
353
354
|
method: get
|
354
|
-
uri: https://file-manager-tests.s3
|
355
|
+
uri: https://file-manager-tests.s3.us-west-2.amazonaws.com/?list-type=2&prefix=
|
355
356
|
body:
|
356
|
-
encoding:
|
357
|
+
encoding: UTF-8
|
357
358
|
string: ''
|
358
359
|
headers:
|
359
360
|
Content-Type:
|
@@ -361,30 +362,31 @@ http_interactions:
|
|
361
362
|
Accept-Encoding:
|
362
363
|
- ''
|
363
364
|
User-Agent:
|
364
|
-
- aws-sdk-
|
365
|
-
X-Amz-Date:
|
366
|
-
- 20160128T205119Z
|
365
|
+
- aws-sdk-ruby3/3.109.2 ruby/2.5.3 x86_64-linux aws-sdk-s3/1.84.1
|
367
366
|
Host:
|
368
|
-
- file-manager-tests.s3
|
367
|
+
- file-manager-tests.s3.us-west-2.amazonaws.com
|
368
|
+
X-Amz-Date:
|
369
|
+
- 20201111T144049Z
|
369
370
|
X-Amz-Content-Sha256:
|
370
371
|
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
371
372
|
Authorization:
|
372
|
-
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/
|
373
|
+
- AWS4-HMAC-SHA256 Credential=AKIAJ73G6IOWSUPCKP5A/20201111/us-west-2/s3/aws4_request,
|
374
|
+
SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date, Signature=079a24de07f965e31dfa550e584a8f18fe01c2f0e1f23a11ce269717e0aa0034
|
373
375
|
Content-Length:
|
374
376
|
- '0'
|
375
377
|
Accept:
|
376
|
-
-
|
378
|
+
- "*/*"
|
377
379
|
response:
|
378
380
|
status:
|
379
381
|
code: 200
|
380
382
|
message: OK
|
381
383
|
headers:
|
382
384
|
X-Amz-Id-2:
|
383
|
-
-
|
385
|
+
- PWxzEonlO9GGWnh3SjQM/8PDfZ+6CjjXqYil3UnOJVTwkXt3cY2y0P/0/fJauCMIQngqJoAlioQ=
|
384
386
|
X-Amz-Request-Id:
|
385
|
-
-
|
387
|
+
- F5B5C50C933FA075
|
386
388
|
Date:
|
387
|
-
-
|
389
|
+
- Wed, 11 Nov 2020 14:40:50 GMT
|
388
390
|
X-Amz-Bucket-Region:
|
389
391
|
- us-west-2
|
390
392
|
Content-Type:
|
@@ -394,10 +396,9 @@ http_interactions:
|
|
394
396
|
Server:
|
395
397
|
- AmazonS3
|
396
398
|
body:
|
397
|
-
encoding:
|
399
|
+
encoding: UTF-8
|
398
400
|
string: |-
|
399
401
|
<?xml version="1.0" encoding="UTF-8"?>
|
400
|
-
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>file-manager-tests</Name><Prefix></Prefix><
|
401
|
-
|
402
|
-
|
403
|
-
recorded_with: VCR 3.0.1
|
402
|
+
<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>
|
403
|
+
recorded_at: Wed, 11 Nov 2020 14:40:49 GMT
|
404
|
+
recorded_with: VCR 6.0.0
|