[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.
Reviewed: https:/ /review. openstack. org/306489 /git.openstack. org/cgit/ openstack/ rally/commit/ ?id=404f0fab683 adbf12c016aea4f 2bf89a402ff461
Committed: https:/
Submitter: Jenkins
Branch: master
commit 404f0fab683adbf 12c016aea4f2bf8 9a402ff461
Author: Alexander Maretskiy <email address hidden>
Date: Fri Apr 15 17:52:21 2016 +0300
[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.LockedDic t' 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: Ic1f11281fcf95b 35d9fbb3ee82cb1 d67f1d8abd7
Closes-Bug: #1570328