ironic/ironic/tests/unit/api
Vanou Ishii f2431ed1f4 Modify test code to avoid CONF modification affection
Few unit tests change attribute of  CONF variable via Python
assignment. This changes attribute of CONF, which is instance
of XxxOpt class defined in oslo_config, to Python literal value.

This affects result of another unit test.

To avoid this, we should change attribute of CONF variable with
set_override method.

Change-Id: I4bd8b1b4ea974834f1149fcaa79de85d24f5f7d1
Story: 2010214
Task: 45956
(cherry picked from commit 3b28d0984d)
(cherry picked from commit 593a547a8d)
(cherry picked from commit 3f624e5caa)
(cherry picked from commit 35e20b62de)
(cherry picked from commit 7d47ee3344)
2022-08-09 14:37:51 -07:00
..
controllers Use assertCountEqual instead of assertItemsEqual 2020-11-10 13:36:44 +00:00
__init__.py Prepare for functional testing 2015-09-28 21:27:01 +00:00
base.py Don't use wsme test webapp for patch tests 2020-04-20 12:24:22 +12:00
test_acl.py Stop using six library 2019-12-23 09:38:25 +01:00
test_audit.py Modify test code to avoid CONF modification affection 2022-08-09 14:37:51 -07:00
test_healthcheck.py Add optional healthcheck middleware 2018-02-12 14:48:05 -05:00
test_hooks.py Stop using six library 2019-12-23 09:38:25 +01:00
test_middleware.py Stop using six library 2019-12-23 09:38:25 +01:00
test_ospmiddleware.py Modify test code to avoid CONF modification affection 2022-08-09 14:37:51 -07:00
test_proxy_middleware.py Use HTTPProxyToWSGI middleware from oslo 2019-08-02 12:29:37 +00:00
test_root.py Stop using six library 2019-12-23 09:38:25 +01:00
utils.py Add owner to allocations and create relevant policies 2019-12-10 19:00:33 +00:00