def stub_volume_get_all_by_project(self, context, marker, limit,
sort_keys=None, sort_dirs=None,
filters=None,
- viewable_admin_meta=False):
+ viewable_admin_meta=False, offset=None):
filters = filters or {}
- return [stub_volume_get(self, context, '1')]
+ return [stub_volume_get(self, context, '1', viewable_admin_meta=True)]
def stub_snapshot(id, **kwargs):
self.stubs.Set(db, 'service_get_all_by_topic',
stubs.stub_service_get_all_by_topic)
self.maxDiff = None
+ self.ctxt = context.RequestContext('admin', 'fakeproject', True)
- def test_volume_create(self):
+ @mock.patch(
+ 'cinder.api.openstack.wsgi.Controller.validate_name_and_description')
+ def test_volume_create(self, mock_validate):
self.stubs.Set(volume_api.API, 'get', stubs.stub_volume_get)
self.stubs.Set(volume_api.API, "create", stubs.stub_volume_create)