]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixes case insensitive for resp body
authorhuangtianhua <huangtianhua@huawei.com>
Fri, 29 Nov 2013 08:56:35 +0000 (16:56 +0800)
committerhuangtianhua <huangtianhua@huawei.com>
Wed, 4 Dec 2013 07:24:39 +0000 (15:24 +0800)
commitb625f558862465184dd28da7215f34c77ec1ece6
tree348ed7a29562ae46c8e64aa71eb8b9a141e5a212
parente128cffb9c5f4b8e76491664204db2b548307cf4
Fixes case insensitive for resp body

Create metadata for a snapshot with key-value set, which key in uppercase
and lowercase(e.g.{"key": "v1", "KEY": "V1"), the server accept the
request and return the key-value set {"key": "v1", "KEY": "V1"}. But the
server just add one metadata because the server is not case sensitive.

The patch will modify the resp body with the one which the server added.

update_all has the same ploblem.

DocImpact
Change-Id: I684049412a4aa84f593e970c87157c74fffdfffe
Closes-Bug: #1255917
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/tests/api/v1/test_snapshot_metadata.py
cinder/tests/api/v2/test_snapshot_metadata.py
cinder/tests/test_db_api.py
cinder/volume/api.py