Merge "Port test_emc_vnx to Python 3"
This commit is contained in:
commit
4d66ea1eec
@ -2814,8 +2814,7 @@ Time Remaining: 0 second(s)
|
||||
new_volume['name_id'] = new_volume['id']
|
||||
vol = self.driver.create_volume_from_snapshot(
|
||||
new_volume, test_snap)
|
||||
self.assertTrue(
|
||||
vol['provider_location'].find('type^smp') > 0)
|
||||
self.assertIn('type^smp', vol['provider_location'])
|
||||
expect_cmd = [
|
||||
mock.call(
|
||||
*self.testData.SNAP_COPY_CMD(
|
||||
@ -6144,11 +6143,14 @@ class EMCVNXCLIDriverReplicationV2TestCase(DriverTestCaseBase):
|
||||
self.assertEqual(
|
||||
self.configuration.replication_device[0]['managed_backend_name'],
|
||||
model_update['host'])
|
||||
self.assertEqual(
|
||||
build_provider_location(
|
||||
'1', 'lun', rep_volume.name,
|
||||
self.target_device_id),
|
||||
model_update['provider_location'])
|
||||
expected = build_provider_location('1', 'lun', rep_volume.name,
|
||||
self.target_device_id)
|
||||
provider_location = model_update['provider_location']
|
||||
# Don't compare the exact string but the set of items: dictionary
|
||||
# items are rendered in a random order because of the hash
|
||||
# randomization
|
||||
self.assertSetEqual(set(expected.split('|')),
|
||||
set(provider_location.split('|')))
|
||||
|
||||
def test_failover_replication_from_secondary(self):
|
||||
rep_volume = EMCVNXCLIDriverTestData.convert_volume(
|
||||
|
@ -77,4 +77,6 @@ class Configuration(object):
|
||||
return None
|
||||
|
||||
def __getattr__(self, value):
|
||||
return getattr(self.local_conf, value)
|
||||
# Don't use self.local_conf to avoid reentrant call to __getattr__()
|
||||
local_conf = object.__getattribute__(self, 'local_conf')
|
||||
return getattr(local_conf, value)
|
||||
|
@ -69,6 +69,7 @@ cinder.tests.unit.test_dellscapi
|
||||
cinder.tests.unit.test_dothill
|
||||
cinder.tests.unit.test_drbdmanagedrv
|
||||
cinder.tests.unit.test_emc_vmax
|
||||
cinder.tests.unit.test_emc_vnx
|
||||
cinder.tests.unit.test_emc_vnxdirect
|
||||
cinder.tests.unit.test_emc_xtremio
|
||||
cinder.tests.unit.test_eqlx
|
||||
|
Loading…
Reference in New Issue
Block a user