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