"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cinder/tests/unit/volume/drivers/dell_emc/powermax/test_powermax_rest.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_rest.py  (cinder-15.0.1):test_powermax_rest.py  (cinder-15.1.0)
skipping to change at line 1547 skipping to change at line 1547
extra_specs = self.data.extra_specs extra_specs = self.data.extra_specs
source_group = self.data.storagegroup_name_source source_group = self.data.storagegroup_name_source
snap_name = self.data.group_snapshot_name snap_name = self.data.group_snapshot_name
with mock.patch.object( with mock.patch.object(
self.rest, 'create_storagegroup_snap') as mock_create: self.rest, 'create_storagegroup_snap') as mock_create:
self.rest.create_storagegroup_snap( self.rest.create_storagegroup_snap(
array, source_group, snap_name, extra_specs) array, source_group, snap_name, extra_specs)
mock_create.assert_called_once_with( mock_create.assert_called_once_with(
array, source_group, snap_name, extra_specs) array, source_group, snap_name, extra_specs)
def test_delete_storagegroup_snap(self):
array = self.data.array
source_group = self.data.storagegroup_name_source
snap_name = self.data.group_snapshot_name
with mock.patch.object(
self.rest, 'delete_storagegroup_snap') as mock_delete:
self.rest.delete_storagegroup_snap(
array, source_group, snap_name, '0')
mock_delete.assert_called_once_with(
array, source_group, snap_name, '0')
@mock.patch.object(rest.PowerMaxRest, 'get_resource',
return_value={'generations': ['0', '1']})
def test_get_storagegroup_snap_generation_list(self, mock_list):
array = self.data.array
source_group = self.data.storagegroup_name_source
snap_name = self.data.group_snapshot_name
ret_list = self.rest.get_storagegroup_snap_generation_list(
array, source_group, snap_name)
self.assertEqual(['0', '1'], ret_list)
def test_get_storagegroup_rdf_details(self): def test_get_storagegroup_rdf_details(self):
details = self.rest.get_storagegroup_rdf_details( details = self.rest.get_storagegroup_rdf_details(
self.data.array, self.data.test_vol_grp_name, self.data.array, self.data.test_vol_grp_name,
self.data.rdf_group_no) self.data.rdf_group_no)
self.assertEqual(self.data.sg_rdf_details[0], details) self.assertEqual(self.data.sg_rdf_details[0], details)
def test_verify_rdf_state(self): def test_verify_rdf_state(self):
verify1 = self.rest._verify_rdf_state( verify1 = self.rest._verify_rdf_state(
self.data.array, self.data.test_vol_grp_name, self.data.array, self.data.test_vol_grp_name,
self.data.rdf_group_no, 'Failover') self.data.rdf_group_no, 'Failover')
 End of changes. 1 change blocks. 
0 lines changed or deleted 21 lines changed or added

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