Fix deprecation warning in test_flavors.py

As function tempest.test.services() has been moved to
tempest.common.utils.services() in Pike, currently when we run
trove-tempest-plugin we get ugly warning:

DeprecationWarning: Function 'tempest.test.services()' has moved
to 'tempest.common.utils.services()' in version 'Pike' and will
be removed in a future version

Let's remove it by simply using new name of that function.

Change-Id: Ia4981c0c9eec1ae2655e25d9baba44e283b2450c
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
This commit is contained in:
Krzysztof Opasiak 2018-05-09 20:48:24 +02:00
parent afc68dfc12
commit 58fe807f4b
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from tempest.common import utils
from tempest.lib import decorators
from tempest import test
from testtools import testcase as testtools
from trove_tempest_plugin.tests.api.database import base
@ -60,7 +60,7 @@ class DatabaseFlavorsTest(base.BaseDatabaseTest):
@testtools.attr('smoke')
@decorators.idempotent_id('afb2667f-4ec2-4925-bcb7-313fdcffb80d')
@test.services('compute')
@utils.services('compute')
def test_compare_db_flavors_with_os(self):
db_flavors = self.client.list_db_flavors()['flavors']
os_flavors = (self.os_flavors_client.list_flavors(detail=True)