"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cinder/tests/unit/volume/drivers/dell_emc/powermax/test_powermax_utils.py" between
cinder-15.0.1.tar.gz and cinder-15.1.0.tar.gz

About: OpenStack Cinder (Core Service: Block Storage) provides persistent block storage to running instances. Its pluggable driver architecture facilitates the creation and management of block storage devices.
The "Train" series (latest release).

test_powermax_utils.py  (cinder-15.0.1):test_powermax_utils.py  (cinder-15.1.0)
skipping to change at line 453 skipping to change at line 453
self.assertEqual(expected_snap_name, updated_name) self.assertEqual(expected_snap_name, updated_name)
def test_change_replication(self): def test_change_replication(self):
new_type = {'extra_specs': self.data.extra_specs_rep_enabled} new_type = {'extra_specs': self.data.extra_specs_rep_enabled}
self.assertFalse(self.utils.change_replication(True, new_type)) self.assertFalse(self.utils.change_replication(True, new_type))
self.assertTrue(self.utils.change_replication(False, new_type)) self.assertTrue(self.utils.change_replication(False, new_type))
def test_get_child_sg_name(self): def test_get_child_sg_name(self):
host_name = 'HostX' host_name = 'HostX'
# Slo and rep enabled # Slo and rep enabled
extra_specs1 = self.data.extra_specs_rep_enabled extra_specs1 = {
extra_specs1[utils.PORTGROUPNAME] = self.data.port_group_name_f 'pool_name': u'Diamond+DSS+SRP_1+000197800123',
'slo': 'Diamond',
'workload': 'DSS',
'srp': 'SRP_1',
'array': self.data.array,
'interval': 3,
'retries': 120,
'replication_enabled': True,
'rep_mode': 'Synchronous',
utils.PORTGROUPNAME: self.data.port_group_name_f}
child_sg_name, do_disable_compression, rep_enabled, pg_name = ( child_sg_name, do_disable_compression, rep_enabled, pg_name = (
self.utils.get_child_sg_name(host_name, extra_specs1)) self.utils.get_child_sg_name(host_name, extra_specs1))
re_name = self.data.storagegroup_name_f + '-RE' re_name = self.data.storagegroup_name_f + '-RE'
self.assertEqual(re_name, child_sg_name) self.assertEqual(re_name, child_sg_name)
# Disable compression # Disable compression
extra_specs2 = self.data.extra_specs_disable_compression extra_specs2 = deepcopy(self.data.extra_specs_disable_compression)
extra_specs2[utils.PORTGROUPNAME] = self.data.port_group_name_f extra_specs2[utils.PORTGROUPNAME] = self.data.port_group_name_f
child_sg_name, do_disable_compression, rep_enabled, pg_name = ( child_sg_name, do_disable_compression, rep_enabled, pg_name = (
self.utils.get_child_sg_name(host_name, extra_specs2)) self.utils.get_child_sg_name(host_name, extra_specs2))
cd_name = self.data.storagegroup_name_f + '-CD' cd_name = self.data.storagegroup_name_f + '-CD'
self.assertEqual(cd_name, child_sg_name) self.assertEqual(cd_name, child_sg_name)
# No slo # No slo
extra_specs3 = deepcopy(self.data.extra_specs) extra_specs3 = deepcopy(self.data.extra_specs)
extra_specs3[utils.SLO] = None extra_specs3[utils.SLO] = None
extra_specs3[utils.PORTGROUPNAME] = self.data.port_group_name_f extra_specs3[utils.PORTGROUPNAME] = self.data.port_group_name_f
child_sg_name, do_disable_compression, rep_enabled, pg_name = ( child_sg_name, do_disable_compression, rep_enabled, pg_name = (
 End of changes. 2 change blocks. 
3 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)