Merge "Remove name checking for api version 1"

This commit is contained in:
Jenkins 2017-03-27 19:37:52 +00:00 committed by Gerrit Code Review
commit 39f9363fdd
3 changed files with 3 additions and 17 deletions

View File

@ -230,12 +230,7 @@ class ScenarioTest(tempest.test.BaseTestCase):
volume['id'])
self.addCleanup(test_utils.call_and_ignore_notfound_exc,
self.volumes_client.delete_volume, volume['id'])
# NOTE(e0ne): Cinder API v2 uses name instead of display_name
if 'display_name' in volume:
self.assertEqual(name, volume['display_name'])
else:
self.assertEqual(name, volume['name'])
self.assertEqual(name, volume['name'])
waiters.wait_for_volume_resource_status(self.volumes_client,
volume['id'], 'available')
# The volume retrieved on creation has a non-up-to-date status.

View File

@ -68,10 +68,7 @@ class TestStampPattern(manager.ScenarioTest):
volume['id'], 'available')
waiters.wait_for_volume_resource_status(self.snapshots_client,
snapshot['id'], 'available')
if 'display_name' in snapshot:
self.assertEqual(snapshot_name, snapshot['display_name'])
else:
self.assertEqual(snapshot_name, snapshot['name'])
self.assertEqual(snapshot_name, snapshot['name'])
return snapshot
def _wait_for_volume_available_on_the_system(self, ip_address,

View File

@ -81,13 +81,7 @@ class TestVolumeBootPattern(manager.ScenarioTest):
self.addCleanup(self.snapshots_client.delete_snapshot, snap['id'])
waiters.wait_for_volume_resource_status(self.snapshots_client,
snap['id'], 'available')
# NOTE(e0ne): Cinder API v2 uses name instead of display_name
if 'display_name' in snap:
self.assertEqual(snap_name, snap['display_name'])
else:
self.assertEqual(snap_name, snap['name'])
self.assertEqual(snap_name, snap['name'])
return snap
def _delete_server(self, server):