"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cinder/tests/unit/volume/test_snapshot.py" between
cinder-14.0.1.tar.gz and cinder-14.0.2.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 "Stein" series (latest release).

test_snapshot.py  (cinder-14.0.1):test_snapshot.py  (cinder-14.0.2)
skipping to change at line 119 skipping to change at line 119
self.context, self.context,
availability_zone=CONF.storage_availability_zone, availability_zone=CONF.storage_availability_zone,
**self.volume_params) **self.volume_params)
mock_notify.assert_not_called() mock_notify.assert_not_called()
self.volume.create_volume(self.context, volume) self.volume.create_volume(self.context, volume)
self.assert_notify_called(mock_notify, self.assert_notify_called(mock_notify,
(['INFO', 'volume.create.start'], (['INFO', 'volume.create.start'],
['INFO', 'volume.create.end'])) ['INFO', 'volume.create.end']),
any_order=True)
snapshot = create_snapshot(volume['id'], size=volume['size']) snapshot = create_snapshot(volume['id'], size=volume['size'])
snapshot_id = snapshot.id snapshot_id = snapshot.id
self.volume.create_snapshot(self.context, snapshot) self.volume.create_snapshot(self.context, snapshot)
self.assertEqual( self.assertEqual(
snapshot_id, objects.Snapshot.get_by_id(self.context, snapshot_id, objects.Snapshot.get_by_id(self.context,
snapshot_id).id) snapshot_id).id)
self.assert_notify_called(mock_notify, self.assert_notify_called(mock_notify,
(['INFO', 'volume.create.start'], (['INFO', 'volume.create.start'],
['INFO', 'volume.create.end'], ['INFO', 'volume.create.end'],
['INFO', 'snapshot.create.start'], ['INFO', 'snapshot.create.start'],
['INFO', 'snapshot.create.end'])) ['INFO', 'snapshot.create.end']),
any_order=True)
self.volume.delete_snapshot(self.context, snapshot) self.volume.delete_snapshot(self.context, snapshot)
self.assert_notify_called(mock_notify, self.assert_notify_called(mock_notify,
(['INFO', 'volume.create.start'], (['INFO', 'volume.create.start'],
['INFO', 'volume.create.end'], ['INFO', 'volume.create.end'],
['INFO', 'snapshot.create.start'], ['INFO', 'snapshot.create.start'],
['INFO', 'snapshot.create.end'], ['INFO', 'snapshot.create.end'],
['INFO', 'snapshot.delete.start'], ['INFO', 'snapshot.delete.start'],
['INFO', 'snapshot.delete.end'])) ['INFO', 'snapshot.delete.end']),
any_order=True)
snap = objects.Snapshot.get_by_id(context.get_admin_context( snap = objects.Snapshot.get_by_id(context.get_admin_context(
read_deleted='yes'), snapshot_id) read_deleted='yes'), snapshot_id)
self.assertEqual(fields.SnapshotStatus.DELETED, snap.status) self.assertEqual(fields.SnapshotStatus.DELETED, snap.status)
self.assertRaises(exception.NotFound, self.assertRaises(exception.NotFound,
db.snapshot_get, db.snapshot_get,
self.context, self.context,
snapshot_id) snapshot_id)
self.volume.delete_volume(self.context, volume) self.volume.delete_volume(self.context, volume)
 End of changes. 3 change blocks. 
3 lines changed or deleted 6 lines changed or added

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