"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cinder/tests/unit/volume/drivers/ibm/test_storwize_svc.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_storwize_svc.py  (cinder-15.0.1):test_storwize_svc.py  (cinder-15.1.0)
skipping to change at line 8133 skipping to change at line 8133
@mock.patch.object(storwize_svc_common.StorwizeSSH, 'lsguicapabilities') @mock.patch.object(storwize_svc_common.StorwizeSSH, 'lsguicapabilities')
def test_compression_enabled(self, lsguicapabilities, lslicense): def test_compression_enabled(self, lsguicapabilities, lslicense):
fake_license_without_keys = {} fake_license_without_keys = {}
fake_license = { fake_license = {
'license_compression_enclosures': '1', 'license_compression_enclosures': '1',
'license_compression_capacity': '1' 'license_compression_capacity': '1'
} }
fake_license_scheme = { fake_license_scheme = {
'license_scheme': '9846' 'license_scheme': '9846'
} }
fake_9100_license_scheme = {
'license_scheme': 'flex'
}
fake_license_invalid_scheme = { fake_license_invalid_scheme = {
'license_scheme': '0000' 'license_scheme': '0000'
} }
lslicense.side_effect = [fake_license_without_keys, lslicense.side_effect = [fake_license_without_keys,
fake_license_without_keys, fake_license_without_keys,
fake_license, fake_license,
fake_license_without_keys] fake_license_without_keys]
lsguicapabilities.side_effect = [fake_license_without_keys, lsguicapabilities.side_effect = [fake_license_without_keys,
fake_license_invalid_scheme, fake_license_invalid_scheme,
fake_license_scheme] fake_license_scheme,
fake_9100_license_scheme]
self.assertFalse(self.storwize_svc_common.compression_enabled()) self.assertFalse(self.storwize_svc_common.compression_enabled())
self.assertFalse(self.storwize_svc_common.compression_enabled()) self.assertFalse(self.storwize_svc_common.compression_enabled())
self.assertTrue(self.storwize_svc_common.compression_enabled()) self.assertTrue(self.storwize_svc_common.compression_enabled())
self.assertTrue(self.storwize_svc_common.compression_enabled()) self.assertTrue(self.storwize_svc_common.compression_enabled())
@mock.patch.object(storwize_svc_common.StorwizeSSH, 'lsguicapabilities') @mock.patch.object(storwize_svc_common.StorwizeSSH, 'lsguicapabilities')
def test_replication_licensed(self, lsguicapabilities): def test_replication_licensed(self, lsguicapabilities):
 End of changes. 3 change blocks. 
2 lines changed or deleted 5 lines changed or added

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