rally/tests/unit
Alexander Maretskiy 404f0fab68 [Context] Fix side effect changes of context config
Since context configuration passed to Context.__init__() is
a mutable type (dict or list), sometimes we have unexpected
changes done by unpredictable code (for example, in wrappers).

This patch uses types `common.utils.LockedDict' and `tuple'
for locking this data from further changes.

Also there was missing unit test for Context.__init__()
with DEFAULT_CONFIG set - this unit test is added.

Change-Id: Ic1f11281fcf95b35d9fbb3ee82cb1d67f1d8abd7
Closes-Bug: #1570328
2016-05-06 12:45:07 +03:00
..
cli Remove extraneous isfile check for task file 2016-04-27 22:06:23 +00:00
common [Common] Add class rally.common.utils.LockedDict 2016-05-05 18:26:34 +03:00
deployment [Tests] Fix unexpected tox output of SomeError exception 2016-04-11 15:07:50 +03:00
doc Use booleans to check for empty lists 2016-02-08 12:32:55 +00:00
plugins [Context] Fix side effect changes of context config 2016-05-06 12:45:07 +03:00
rally_jobs Rename BenchmarkEngine to TaskEngine 2015-11-12 11:43:13 +00:00
task [Context] Fix side effect changes of context config 2016-05-06 12:45:07 +03:00
ui [Reports] Add an option for embedding JS/CSS libs into report 2015-11-24 11:33:25 +02:00
verification Merge "[Verify] Don't install Tempest when rally verify start" 2016-05-03 17:48:00 +00:00
__init__.py Reorganize test module structure 2014-10-07 13:50:40 +00:00
fakes.py Add basic support for Senlin service 2016-04-13 00:16:30 -04:00
test_api.py [Verify] Don't install Tempest when rally verify start 2016-04-27 09:26:48 +00:00
test_ddt.py Add AST checker for missing @ddt.ddt decorators 2015-11-04 12:21:51 -06:00
test_docstrings.py [cli] Introduce "rally plugin" show and list commands 2015-09-16 14:22:16 -07:00
test_hacking.py Using 'dt' as alias for datetime imports 2016-02-22 20:04:34 +08:00
test_logging.py change name of rally.common.log module 2015-12-14 03:01:49 -05:00
test_mock.py unit-tests: fix mock check errors messages 2015-06-27 16:20:33 +03:00
test_osclients.py Merge "Add basic support for Senlin service" 2016-04-27 14:36:16 +00:00
test_resources.py Rename rally.cmd to rally.cli 2015-05-21 18:14:19 +03:00
test_test_ddt.py Add AST checker for missing @ddt.ddt decorators 2015-11-04 12:21:51 -06:00
test_test_mock.py unit-tests: inception: add mock check unit-tests 2015-07-13 17:01:11 +03:00
test.py Automatically configure mock context clients 2016-03-21 11:47:50 -05:00