test_emc_vmax.py should not mock volume_types.get_volume_type_extra_spec globally
Bug #1659481 reported by
jiamin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Helen Walsh |
Bug Description
in test_emc_vmax.py, EMCV3MultiPoolD
6913 volume_
6914 return_
6915 'pool_name': 'Bronze+
description: | updated |
summary: |
- test_emc_vmax.py can not mock volume_types.get_volume_type_extra_spec + test_emc_vmax.py should not mock volume_types.get_volume_type_extra_spec globally |
tags: | added: tests |
Changed in cinder: | |
assignee: | nobody → Helen Walsh (walshh2) |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in cinder: | |
assignee: | Helen Walsh (walshh2) → Walt Boring (walter-boring) |
Changed in cinder: | |
assignee: | Walt Boring (walter-boring) → Helen Walsh (walshh2) |
To post a comment you must log in.
Please replace the following mock decorator for volume_types with "with mock.patch.object" inside the test to limit the scope:
@mock. patch.object(
volume_ types,
'get_volume_ type_extra_ specs',
return_ value={ 'volume_ backend_ name': 'MULTI_POOL_BE'}) CG_no_volumes_ multi_pool_ success(
def test_delete_
Please do a search and fix all the mocks for volume_types.