]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Remove useless unit tests mock in Huawei driver
authorWilson Liu <liuxinguo@huawei.com>
Sat, 23 Jan 2016 02:21:41 +0000 (10:21 +0800)
committerWilson Liu <liuxinguo@huawei.com>
Mon, 1 Feb 2016 08:45:36 +0000 (16:45 +0800)
commit93d6d819c3c1150e259d44e8dbca979729f47b29
treed72924523bc631e6eb6b4f80a5f328faf879d1c8
parent55744deafb3fd8b4c7ba093626836d5a92255996
Remove useless unit tests mock in Huawei driver

There are some useless ut mocks in Huawei driver,
we'd better to cleanup them.

Also we did some other code cleanup:
1. Cleanup the return value when delete_volume and extend_volume.
2. Check whether the LUN exists in a LUN group firstly besause
   this case is more likely to happen than other cases.

Closes-Bug: #1535697
Change-Id: Ia3ea1d666623cf7c37b6be3fbc55282229293ea8
cinder/tests/unit/test_huawei_drivers.py
cinder/volume/drivers/huawei/huawei_driver.py
cinder/volume/drivers/huawei/rest_client.py