From fed468f060566a6d8a35acf634bd19e312d84a1a Mon Sep 17 00:00:00 2001 From: ghanshyam Date: Tue, 25 Jul 2017 04:30:28 +0300 Subject: [PATCH] Replace deprecated test.attr with decorators.attr Tempest has deprecated decorator 'tempest.test.attr' and moved the same as stable interface to 'tempest.lib.decorators .attr' in version 16.1.0. Let's use the stable interface for attr decorator. This will help Tempest to remove the deprecated decorator. Change-Id: I8e0face1852df17d64ec667bf591d8bb3f0791be --- .../tests/scenario/test_server_basic_ops.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nova_lxd_tempest_plugin/tests/scenario/test_server_basic_ops.py b/nova_lxd_tempest_plugin/tests/scenario/test_server_basic_ops.py index 8dfaa293..4ff3e393 100644 --- a/nova_lxd_tempest_plugin/tests/scenario/test_server_basic_ops.py +++ b/nova_lxd_tempest_plugin/tests/scenario/test_server_basic_ops.py @@ -19,6 +19,7 @@ import json from tempest import config from tempest import exceptions from tempest.lib.common.utils import test_utils +from tempest.lib import decorators from tempest import test from nova_lxd_tempest_plugin.tests.scenario import manager @@ -105,7 +106,7 @@ class TestServerBasicOps(manager.ScenarioTest): # instance info and do direct comparison. @decorators.idempotent_id('7fff3fb3-91d8-4fd0-bd7d-0204f1f180ba') - @test.attr(type='smoke') + @decorators.attr(type='smoke') @test.services('compute', 'network') def test_server_basic_ops(self): keypair = self.create_keypair()