Remove redundant volume check in nova_volume_detach
In nova_volume_detach, show_volume and assertEqual are redundant because in wait_for_volume_resource_status this check is already done. This is to remove them for code clean. Change-Id: If5a25914bd4be039e0a8ddad661732ef1f3a28ee
This commit is contained in:
parent
4dfd78a4e0
commit
fc6280f84e
@ -506,9 +506,6 @@ class ScenarioTest(tempest.test.BaseTestCase):
|
||||
waiters.wait_for_volume_resource_status(self.volumes_client,
|
||||
volume['id'], 'available')
|
||||
|
||||
volume = self.volumes_client.show_volume(volume['id'])['volume']
|
||||
self.assertEqual('available', volume['status'])
|
||||
|
||||
def rebuild_server(self, server_id, image=None,
|
||||
preserve_ephemeral=False, wait=True,
|
||||
rebuild_kwargs=None):
|
||||
|
Loading…
Reference in New Issue
Block a user