Remove the deprecated tempest.test.attr
[1] moves the attr decorator from test.py to tempest/lib. So, all the references to tempest.test has to be moved to tempest.lib.decorator. [2] https://review.openstack.org/#/c/456236/ Change-Id: If977e559d9f3b982baf2974efef3c5b375f263b9
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from tempest import test
|
||||
from tempest.lib import decorators
|
||||
|
||||
from watcher_tempest_plugin.tests.api.admin import base
|
||||
|
||||
@@ -35,7 +35,7 @@ class TestShowListGoal(base.BaseInfraOptimTest):
|
||||
super(TestShowListGoal, self).assert_expected(
|
||||
expected, actual, keys)
|
||||
|
||||
@test.attr(type='smoke')
|
||||
@decorators.attr(type='smoke')
|
||||
def test_show_goal(self):
|
||||
_, goal = self.client.show_goal(self.DUMMY_GOAL)
|
||||
|
||||
@@ -46,7 +46,7 @@ class TestShowListGoal(base.BaseInfraOptimTest):
|
||||
'updated_at', 'uuid'}
|
||||
self.assertEqual(expected_fields, set(goal.keys()))
|
||||
|
||||
@test.attr(type='smoke')
|
||||
@decorators.attr(type='smoke')
|
||||
def test_show_goal_with_links(self):
|
||||
_, goal = self.client.show_goal(self.DUMMY_GOAL)
|
||||
self.assertIn('links', goal.keys())
|
||||
@@ -54,7 +54,7 @@ class TestShowListGoal(base.BaseInfraOptimTest):
|
||||
self.assertIn(goal['uuid'],
|
||||
goal['links'][0]['href'])
|
||||
|
||||
@test.attr(type="smoke")
|
||||
@decorators.attr(type="smoke")
|
||||
def test_list_goals(self):
|
||||
_, body = self.client.list_goals()
|
||||
self.assertIn(self.DUMMY_GOAL,
|
||||
|
||||
Reference in New Issue
Block a user