]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
GlusterFS tests: Mock out compute, don't load novaclient
authorEric Harney <eharney@redhat.com>
Thu, 19 Jun 2014 16:57:51 +0000 (12:57 -0400)
committerEric Harney <eharney@redhat.com>
Thu, 19 Jun 2014 17:01:10 +0000 (13:01 -0400)
commite0072d5352c27dbaef4a95325ebf9e7af96f2991
tree17151417b8e173a9d1ac788201b553966d6be5ce
parent7e57a36a3d3086b2f76d4b6daa9bffdb2a6cff19
GlusterFS tests: Mock out compute, don't load novaclient

Mock out the compute library for these tests, which prevents loading
the novaclient library.

This makes these tests more reliable, as currently the novaclient
lib interferes with our mocking of os.path.exists in these tests
in some test configurations.

This should also make the GlusterFS tests slightly more efficient
since they were previously loading the novaclient python library
but did not really need to.

Change-Id: I49e858b8536e30572b6231f209a35578460fff96
cinder/tests/test_glusterfs.py