From 16896934d2c33f1a2289445ede3a8751f7efb97b Mon Sep 17 00:00:00 2001 From: Luong Anh Tuan Date: Mon, 16 Oct 2017 16:21:38 +0700 Subject: [PATCH] Update tests to do not use deprecated test.services() Function 'tempest.test.services()' has moved to 'tempest.common.utils.services()' in version 'Pike'. This commit update tests accordingly. Change-Id: I30316bf2481ed7f1d963521728eb7cd5f9bd63dc --- .../test/inspector_tempest_plugin/tests/test_basic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ironic_inspector/test/inspector_tempest_plugin/tests/test_basic.py b/ironic_inspector/test/inspector_tempest_plugin/tests/test_basic.py index 536b85368..2dd316c05 100644 --- a/ironic_inspector/test/inspector_tempest_plugin/tests/test_basic.py +++ b/ironic_inspector/test/inspector_tempest_plugin/tests/test_basic.py @@ -11,9 +11,9 @@ # under the License. from ironic_tempest_plugin.tests.scenario import baremetal_manager +from tempest.common import utils from tempest.config import CONF from tempest.lib import decorators -from tempest import test # noqa from ironic_inspector.test.inspector_tempest_plugin.tests import manager @@ -58,7 +58,7 @@ class InspectorBasicTest(manager.InspectorScenarioTest): interval=self.wait_provisioning_state_interval) @decorators.idempotent_id('03bf7990-bee0-4dd7-bf74-b97ad7b52a4b') - @test.services('compute', 'image', 'network', 'object_storage') + @utils.services('compute', 'image', 'network', 'object_storage') def test_baremetal_introspection(self): """This smoke test case follows this set of operations: @@ -149,7 +149,7 @@ class InspectorSmokeTest(manager.InspectorScenarioTest): @decorators.idempotent_id('a702d1f1-88e4-42ce-88ef-cba2d9e3312e') @decorators.attr(type='smoke') - @test.services('object_storage') + @utils.services('object_storage') def test_baremetal_introspection(self): """This smoke test case follows this very basic set of operations: