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: Iba2130aca93c8e6bccb4f8ed169424c791ebc127 Needed-by: Ide11a7434a4714e5d2211af1803333535f557370
This commit is contained in:
@@ -18,6 +18,7 @@ from __future__ import unicode_literals
|
||||
|
||||
import functools
|
||||
|
||||
from tempest.lib.common.utils import test_utils
|
||||
from tempest.lib import exceptions
|
||||
from tempest import test
|
||||
|
||||
@@ -125,7 +126,7 @@ class TestCreateUpdateDeleteAudit(base.BaseInfraOptimTest):
|
||||
_, body = self.create_audit(audit_template['uuid'])
|
||||
audit_uuid = body['uuid']
|
||||
|
||||
test.call_until_true(
|
||||
test_utils.call_until_true(
|
||||
func=functools.partial(
|
||||
self.is_audit_idle, audit_uuid),
|
||||
duration=10,
|
||||
@@ -140,7 +141,7 @@ class TestCreateUpdateDeleteAudit(base.BaseInfraOptimTest):
|
||||
|
||||
self.delete_audit(audit_uuid)
|
||||
|
||||
test.call_until_true(
|
||||
test_utils.call_until_true(
|
||||
func=functools.partial(is_audit_deleted, audit_uuid),
|
||||
duration=5,
|
||||
sleep_for=1
|
||||
|
||||
Reference in New Issue
Block a user