Merge pull request #921 from picadoh/master

Fixing metadata key on s3 operation response
This commit is contained in:
Steve Pulec 2017-05-10 21:59:57 -04:00 committed by GitHub
commit 2f923b8248
2 changed files with 2 additions and 1 deletions

View File

@ -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)),
}

View File

@ -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)