Remove a redundent resource_cleanup method
The volumes will already be removed by resource_cleanup method in BaseVolumeTest class Change-Id: I6c31a94e0810eb739b0e29b8f6e64cd3ea863f19
This commit is contained in:
parent
95854ce727
commit
b5c88f4f79
@ -61,20 +61,11 @@ class VolumesV2ListTestJSON(base.BaseVolumeTest):
|
||||
|
||||
# Create 3 test volumes
|
||||
cls.volume_list = []
|
||||
cls.volume_id_list = []
|
||||
cls.metadata = {'Type': 'work'}
|
||||
for i in range(3):
|
||||
volume = cls.create_volume(metadata=cls.metadata)
|
||||
volume = cls.client.show_volume(volume['id'])['volume']
|
||||
cls.volume_list.append(volume)
|
||||
cls.volume_id_list.append(volume['id'])
|
||||
|
||||
@classmethod
|
||||
def resource_cleanup(cls):
|
||||
# Delete the created volumes
|
||||
for volid in cls.volume_id_list:
|
||||
cls.delete_volume(cls.client, volid)
|
||||
super(VolumesV2ListTestJSON, cls).resource_cleanup()
|
||||
|
||||
def _list_by_param_value_and_assert(self, params, with_detail=False):
|
||||
"""list or list_details with given params and validates result"""
|
||||
|
Loading…
Reference in New Issue
Block a user