Switch to non-deprecated find_test_caller in tempest.lib
This patchset drops usage of misc utils in Tempest lib
for accessing find_test_caller which has been
deprecated for a long time [0][1] in favor of the non-deprecated
versions in test_utils module in Tempest lib.
[0] http://git.openstack.org/cgit/openstack/tempest/tree/releasenotes/notes/12/12.1.0-new-test-utils-module-adf34468c4d52719.yaml
[1] 942586a4e4/tempest/lib/common/utils/misc.py (L34)
Change-Id: If4c209e1295df401f0d9b4974a75c2d9a3af6bb5
This commit is contained in:
parent
9fcd051a96
commit
991fc6b510
@ -12,7 +12,7 @@
|
||||
|
||||
import time
|
||||
|
||||
from tempest.lib.common.utils import misc as misc_utils
|
||||
from tempest.lib.common.utils import test_utils
|
||||
from tempest.lib import exceptions as lib_exc
|
||||
|
||||
from tempest import exceptions
|
||||
@ -273,7 +273,7 @@ class LoadBalancerV1Client(base.BaseNetworkClient):
|
||||
message += ' failed to reach status %s' % status
|
||||
message += ' (current: %s)' % resource['status']
|
||||
message += ' within the required time %s' % timeout
|
||||
caller = misc_utils.find_test_caller()
|
||||
caller = test_utils.find_test_caller()
|
||||
if caller:
|
||||
message = '(%s) %s' % (caller, message)
|
||||
raise exceptions.TimeoutException(message)
|
||||
|
Loading…
Reference in New Issue
Block a user