murano/murano/tests/unit/api/v1/cloudfoundry
Felipe Monteiro 4f06ae69e1 Fixes cfapi unit test conflicting with other tests.
Backported from master branch.

Currently, test_cfapi appears to be conflicting with other
unit tests [1][2] (see gate-murano-python27-db-ubuntu-xenial
in each case).

This is because test_cfapi has a helper method called
_set_override that calls oslo_config.cfg.set_override without
using clearing the overrides during tearDown (i.e. by calling
self.addCleanup(oslo_config.cfg.clear_override) for all
the values that were overriden with set_override.

The tests are always run in random order (i.e. with tox -e py27)
so the conflict does not appear to be deterministic or
guaranteed across all test runs.

[1] https://review.openstack.org/#/c/433724/1
[2] https://review.openstack.org/#/c/429978/

Change-Id: Ia2730072eac5962c5eefd8209406b1b3903f15f5
(cherry picked from commit 9a90e9d443)
2017-02-15 15:10:54 -05:00
..
__init__.py Cloud Foundry Service Broker API initial commit 2015-09-02 21:17:16 +03:00
test_cfapi.py Fixes cfapi unit test conflicting with other tests. 2017-02-15 15:10:54 -05:00
test_router.py Cloud Foundry Service Broker API initial commit 2015-09-02 21:17:16 +03:00