]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix huawei driver test issues
authorzhangchao010 <zhangchao010@huawei.com>
Tue, 17 Sep 2013 15:53:24 +0000 (23:53 +0800)
committerzhangchao010 <zhangchao010@huawei.com>
Tue, 17 Sep 2013 15:53:24 +0000 (23:53 +0800)
commit306dc1792dba21e016d319c4a0211e9d4dcc3ad9
treef23d370520d1189ff3f472242f6fc1d56089b480
parent1f563d6061f9e8e4dce73fae1c88f559079bcec6
Fix huawei driver test issues

Replace "params[params.index('-lun')]" with
"params[params.index('-lun') + 1]" to get lun ID correctly.
Replace the invalid controller ID "N" with "B".
Dict CLONED_LUN_INFO has no key provider_location, delete it.

Moreover, simplify the "if..., elif..." module with "getattr"
method in fake recv function.

fixes bug 1225884
Change-Id: Ic4cbf8b07321cdecd6290e8cd90bca1b09dca7fd
cinder/tests/test_huawei_t_dorado.py