Change tempest find_test_caller import

The tempest.lib.common.utils.misc.find_test_caller is
deprecated, replace with tempest.lib.common.utils.
test_utils.find_test_caller.

Closes-Bug: #1666299
Change-Id: I974c482825686d49ad1dfd25eac00e85d0fc6b50
This commit is contained in:
Kaitlin Farr 2017-02-22 09:07:48 -05:00
parent 20f8aebe7b
commit 8a057cdd40

View File

@ -18,7 +18,7 @@ import os
import requests import requests
from six.moves import urllib from six.moves import urllib
from tempest.lib.common.utils import misc as misc_utils from tempest.lib.common.utils import test_utils
from functionaltests.common import auth from functionaltests.common import auth
from functionaltests.common import config from functionaltests.common import config
@ -120,7 +120,7 @@ class BarbicanClient(object):
'Response: {response_body}').format(**format_kwargs) 'Response: {response_body}').format(**format_kwargs)
def log_request(self, request_kwargs, response, user_name): def log_request(self, request_kwargs, response, user_name):
test_name = misc_utils.find_test_caller() test_name = test_utils.find_test_caller()
str_request = self.stringify_request(request_kwargs, response) str_request = self.stringify_request(request_kwargs, response)
if user_name is None: if user_name is None:
user_info = '' user_info = ''