Remove deprecated find_test_caller function
This patchset removes the long-ago deprecated version of find_test_caller in ``tempest.lib.common.utils.misc.find_test_caller`` which was deprecated during Kilo release cycle in favor of ``tempest.lib.common.utils.test_utils.find_test_caller`` [0]. There are a few projects that depend on the old find_test_caller for which patchsets have been submitted to change to the non-deprecated version: [1][2]. Only remaining place is in openstack/tempest-lib which no longer appears to be supported (no activity in a few years) [3]. [0] http://git.openstack.org/cgit/openstack/tempest/tree/releasenotes/notes/12/12.1.0-new-test-utils-module-adf34468c4d52719.yaml [1] https://review.openstack.org/#/c/578166/ [2] https://review.openstack.org/#/c/578168/ [3] e.g. http://git.openstack.org/cgit/openstack/tempest-lib/tree/tempest_lib/common/utils/misc.py Change-Id: I64253af8eb401238aba254d1887d748a68cf32d3
This commit is contained in:
parent
942586a4e4
commit
a485b094fe
@ -0,0 +1,7 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
``tempest.lib.common.utils.misc.find_test_caller`` was deprecated during
|
||||
Kilo release cycle in favor of
|
||||
``tempest.lib.common.utils.test_utils.find_test_caller``. The deprecated
|
||||
version of ``find_test_caller`` is removed.
|
@ -14,8 +14,6 @@
|
||||
# under the License.
|
||||
from oslo_log import log as logging
|
||||
|
||||
from tempest.lib.common.utils import test_utils
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@ -28,10 +26,3 @@ def singleton(cls):
|
||||
instances[cls] = cls()
|
||||
return instances[cls]
|
||||
return getinstance
|
||||
|
||||
|
||||
def find_test_caller(*args, **kwargs):
|
||||
LOG.warning("tempest.lib.common.utils.misc.find_test_caller is deprecated "
|
||||
"in favor of tempest.lib.common.utils.test_utils."
|
||||
"find_test_caller")
|
||||
test_utils.find_test_caller(*args, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user