murano/murano/tests/unit
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
..
api Fixes cfapi unit test conflicting with other tests. 2017-02-15 15:10:54 -05:00
cmd Increase unit test coverage for Manage CLI. 2016-10-07 07:15:31 +00:00
common Increase unit test coverage for Common WSGI. 2017-01-15 17:08:57 +00:00
core_library Remove partial clean-up in Instance.destroy 2014-09-04 15:29:43 +04:00
db Order the packages for parameter search 2016-11-04 17:55:40 -04:00
dsl Merge "Increase unit test coverage for DSL Helpers." 2017-01-05 01:18:27 +00:00
engine Always declare agent RabbitMQ queues 2016-11-28 20:29:09 +00:00
packages Merge "Increase unit test coverage for Package Base API." 2016-10-03 18:58:58 +00:00
policy Ability to retrieve current/owner user/project 2016-11-24 02:07:34 -08:00
services Ability to retrieve current/owner user/project 2016-11-24 02:07:34 -08:00
__init__.py Move and rename functional tests 2014-07-29 22:29:27 +04:00
base.py make enforce_type=True in CONF.set_override 2016-01-13 23:28:26 +08:00
test_actions.py Remove unnecessary setUp 2016-09-25 16:20:08 +08:00
test_engine.py Removes unnecessary utf-8 encoding 2016-12-22 10:36:26 +07:00
test_hacking.py Merge "Increase unit test coverage for hacking checks" 2016-10-03 18:53:19 +00:00
test_heat_stack.py HeatStack async mode fix 2016-11-22 16:02:12 +00:00
test_utils.py Use method ensure_tree from oslo.utils 2016-11-14 19:45:48 +08:00
utils.py Remove arguments "{}" and "[]" in function definitions 2015-12-19 01:10:30 +08:00