'Test glance_core_properties defined in cinder.conf is empty.'

@mock.patch.object(glance.GlanceImageService, 'create')
@mock.patch.object(volume_rpcapi.VolumeAPI, 'copy_volume_to_image')
def test_copy_volume_to_image_without_core_prop(self, mock_copy_to_image, mock_create):

    (volume, expected) = self._create_volume_with_type()
    mock_create.side_effect = self.fake_image_service_create
    self.override_config('glance_core_properties', [])
    req = fakes.HTTPRequest.blank(('/v2/fakeproject/volumes/%s/action' % volume.id), use_admin_context=self.context.is_admin)
    body = self._get_os_volume_upload_image()
    res_dict = self.controller._volume_upload_image(req, volume.id, body)
    self.assertDictEqual(expected, res_dict)
    vol_db = objects.Volume.get_by_id(self.context, volume.id)
    self.assertEqual('uploading', vol_db.status)
    self.assertEqual('available', vol_db.previous_status)
