From 02113d25bd2697723e80def4d8fc28fb3f0514e4 Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Thu, 9 Feb 2017 10:04:02 -0800 Subject: [PATCH] Switch to use test_utils.call_until_true test.call_until_true has been deprecated since Newton on Tempest side, and now Tempest provides test_utils.call_until_true as the stable library method. So this patch switches to use the stable method before removing old test.call_until_true on Tempest side. Change-Id: I5e82466f6eb7b164042406813b1ad72a1cbb05fa --- .../test/inspector_tempest_plugin/tests/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ironic_inspector/test/inspector_tempest_plugin/tests/manager.py b/ironic_inspector/test/inspector_tempest_plugin/tests/manager.py index 961b2847a..5856716a1 100644 --- a/ironic_inspector/test/inspector_tempest_plugin/tests/manager.py +++ b/ironic_inspector/test/inspector_tempest_plugin/tests/manager.py @@ -18,8 +18,8 @@ import time import tempest from tempest import config from tempest.lib.common.api_version_utils import LATEST_MICROVERSION +from tempest.lib.common.utils import test_utils from tempest.lib import exceptions as lib_exc -from tempest import test from ironic_inspector.test.inspector_tempest_plugin import exceptions from ironic_inspector.test.inspector_tempest_plugin.services import \ @@ -152,7 +152,7 @@ class InspectorScenarioTest(BaremetalScenarioTest): return False return True - if not test.call_until_true( + if not test_utils.call_until_true( check_node, duration=CONF.baremetal_introspection.discovery_timeout, sleep_for=20):