murano/murano/tests/unit/api
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
..
cmd Improved Test-Runner's output 2016-06-30 19:26:09 +03:00
middleware Increase unit test coverage for Version Negotiation API. 2016-10-18 17:40:22 -04:00
v1 Fixes cfapi unit test conflicting with other tests. 2017-02-15 15:10:54 -05:00
__init__.py Move and rename functional tests 2014-07-29 22:29:27 +04:00
base.py Ability to retrieve current/owner user/project 2016-11-24 02:07:34 -08:00