]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Switch to the oslo_utils.fileutils
authorSergey Vilgelm <sergey@vilgelm.info>
Wed, 8 Jul 2015 12:18:13 +0000 (15:18 +0300)
committerSergey Vilgelm <svilgelm@mirantis.com>
Thu, 20 Aug 2015 07:47:48 +0000 (07:47 +0000)
commit212aff327a36f925be3be69b9b54b946dbdd5c2a
tree330afbbf6cc96625cfdbbeaf347aec83ba2220bf
parent64b0f23ac9ea52815095f33b6326436f30bb615d
Switch to the oslo_utils.fileutils

fileutils is graduated in the oslo.utils library.
Use the open function from builtins instead of fileutils.file_open.
Change the test_backup_volume (test_scality module) and
test_restore_backup (test_scality, test_volume) functions to use
mock library instead of mox.

Implements: blueprint graduate-fileutils[1]
[1] https://blueprints.launchpad.net/oslo-incubator/+spec/graduate-fileutils

Change-Id: I7abf0273bf2b90c72f51ebf4896808eaabb91969
26 files changed:
cinder/image/image_utils.py
cinder/openstack/common/fileutils.py [deleted file]
cinder/tests/unit/backup/fake_swift_client2.py
cinder/tests/unit/targets/targets_fixture.py
cinder/tests/unit/test_glusterfs.py
cinder/tests/unit/test_gpfs.py
cinder/tests/unit/test_image_utils.py
cinder/tests/unit/test_quobyte.py
cinder/tests/unit/test_scality.py
cinder/tests/unit/test_vmware_vmdk.py
cinder/tests/unit/test_volume.py
cinder/tests/unit/windows/test_windows.py
cinder/volume/driver.py
cinder/volume/drivers/glusterfs.py
cinder/volume/drivers/ibm/gpfs.py
cinder/volume/drivers/lvm.py
cinder/volume/drivers/quobyte.py
cinder/volume/drivers/rbd.py
cinder/volume/drivers/scality.py
cinder/volume/drivers/sheepdog.py
cinder/volume/drivers/vmware/vmdk.py
cinder/volume/drivers/windows/smbfs.py
cinder/volume/drivers/windows/windows.py
cinder/volume/targets/cxt.py
cinder/volume/targets/tgt.py
openstack-common.conf