Merge pull request #921 from picadoh/master
Fixing metadata key on s3 operation response
This commit is contained in:
commit
2f923b8248
@ -91,7 +91,7 @@ class FakeKey(BaseModel):
|
|||||||
@property
|
@property
|
||||||
def response_dict(self):
|
def response_dict(self):
|
||||||
res = {
|
res = {
|
||||||
'Etag': self.etag,
|
'ETag': self.etag,
|
||||||
'last-modified': self.last_modified_RFC1123,
|
'last-modified': self.last_modified_RFC1123,
|
||||||
'content-length': str(len(self.value)),
|
'content-length': str(len(self.value)),
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,7 @@ def test_s3_server_bucket_create():
|
|||||||
res = test_client.put(
|
res = test_client.put(
|
||||||
'/bar', 'http://foobaz.localhost:5000/', data='test value')
|
'/bar', 'http://foobaz.localhost:5000/', data='test value')
|
||||||
res.status_code.should.equal(200)
|
res.status_code.should.equal(200)
|
||||||
|
assert 'ETag' in dict(res.headers)
|
||||||
|
|
||||||
res = test_client.get('/bar', 'http://foobaz.localhost:5000/')
|
res = test_client.get('/bar', 'http://foobaz.localhost:5000/')
|
||||||
res.status_code.should.equal(200)
|
res.status_code.should.equal(200)
|
||||||
|
Loading…
Reference in New Issue
Block a user