]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Create unit tests for volume objects
authorThang Pham <thang.g.pham@gmail.com>
Mon, 16 Mar 2015 15:48:07 +0000 (11:48 -0400)
committerThang Pham <thang.g.pham@gmail.com>
Thu, 26 Mar 2015 19:15:26 +0000 (19:15 +0000)
commit982c423dfefe85d498887d5d57ef6b5c8e4105cf
treecca060015d691c3c2cbc962ba7b74e0a61f2b1a8
parent769d30b5702406b09565ebbf6dbcd177489bed41
Create unit tests for volume objects

This is a follow up patch to cinder objects that adds
missing unit tests for volume objects. It also adds
a @base.remotable decorator to the volume save method,
which makes sure a context is properly supplied to the
method, whether it is passed in or taken from the
context stashed in the object.

Change-Id: I9febfdf94c4d8c82defedf0ceaec03800552affe
Implements: blueprint cinder-objects
Closes-Bug: #1434571
cinder/objects/volume.py
cinder/tests/fake_volume.py
cinder/tests/objects/test_volume.py [new file with mode: 0644]