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
This commit is contained in:
ghanshyam 2017-07-25 04:30:28 +03:00 committed by Chris MacNaughton
parent af15cd09d4
commit fed468f060
1 changed files with 2 additions and 1 deletions

View File

@ -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()