Greg Karékinian
21f3a9f60f
Remove all duplication the specs
...
S3 and Swift now run the same specs. The only difference is the before
block that defines the stubbed HTTP requests and the responses from the
Swift and S3 servers
2018-04-26 13:17:43 +02:00
Greg Karékinian
21dad2aba7
Get the metadata from Redis on a HEAD request
...
No need to hit the storage backend, we can set the response headers from
the data in Redis
2018-04-26 13:17:43 +02:00
Greg Karékinian
7bd45543f6
Set headers from the Redis metadata on a GET that results in a 304
...
Also add specs to check for the response headers
2018-04-26 13:17:43 +02:00
Greg Karékinian
f083022e6d
Get the ETag from Redis on a GET request
...
This prevents doing a network request when we would return a 304 anyway
2018-04-26 13:17:43 +02:00
Greg Karékinian
86dc45f444
Add support for S3 through the REST API
...
This is currently using the old S3 authentication
(https://s3.amazonaws.com/doc/s3-developer-guide/RESTAuthentication.html ),
in order to support Exoscale Storage
Refs #112
2018-04-26 13:17:43 +02:00