]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixes case insensitive for resp body
authorhuangtianhua <huangtianhua@huawei.com>
Thu, 5 Dec 2013 03:15:11 +0000 (11:15 +0800)
committerhuangtianhua <huangtianhua@huawei.com>
Thu, 5 Dec 2013 07:59:59 +0000 (15:59 +0800)
commitb91e6e31ece12d5b1204680aa0a912e3b9569f3b
tree618bcc9488431785c18fd6b09396341ecaf05b46
parent05cb71956841d89770e919a1a94de5769d69b984
Fixes case insensitive for resp body

Create metadata for a volume 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.

Fixes errors on v2 unittest without difficulty.

DocImpact
Closes-Bug: #1258004

Change-Id: Ic337c0a351ac234493e1d73b86ba87520f32289a
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/tests/api/v1/test_volume_metadata.py
cinder/tests/api/v2/test_snapshot_metadata.py
cinder/tests/api/v2/test_volume_metadata.py
cinder/tests/api/v2/test_volumes.py
cinder/tests/test_db_api.py
cinder/volume/api.py