From 991fc6b51094aa256ac539dfa1ae6d36229b845d Mon Sep 17 00:00:00 2001 From: Felipe Monteiro Date: Tue, 26 Jun 2018 19:18:30 +0100 Subject: [PATCH] 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] https://github.com/openstack/tempest/blob/942586a4e4f96adff4373c1913f9b22fab9c5c60/tempest/lib/common/utils/misc.py#L34 Change-Id: If4c209e1295df401f0d9b4974a75c2d9a3af6bb5 --- vmware_nsx_tempest_plugin/services/load_balancer_v1_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmware_nsx_tempest_plugin/services/load_balancer_v1_client.py b/vmware_nsx_tempest_plugin/services/load_balancer_v1_client.py index 5412ac8..05738fc 100644 --- a/vmware_nsx_tempest_plugin/services/load_balancer_v1_client.py +++ b/vmware_nsx_tempest_plugin/services/load_balancer_v1_client.py @@ -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)