From eeabdd2ce6576836a4572bdd5eced17809675515 Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Fri, 27 Jan 2017 17:46:00 -0800 Subject: Switch to decorators.idempotent_id on identity So many modules are using test.idempotent_id and this is for switching to decorators.idempotent_id on identity. Change-Id: I8c3ad6a3b20c6829c752f9fae5a27bd3e284c1b1 Related-Bug: #1616913 --- tempest/api/identity/admin/v3/test_credentials.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tempest/api/identity/admin/v3/test_credentials.py') diff --git a/tempest/api/identity/admin/v3/test_credentials.py b/tempest/api/identity/admin/v3/test_credentials.py index d4fe32d52..e5a218d10 100644 --- a/tempest/api/identity/admin/v3/test_credentials.py +++ b/tempest/api/identity/admin/v3/test_credentials.py @@ -16,6 +16,7 @@ from oslo_serialization import jsonutils as json from tempest.api.identity import base from tempest.common.utils import data_utils +from tempest.lib import decorators from tempest import test @@ -52,7 +53,7 @@ class CredentialsTestJSON(base.BaseIdentityV3AdminTest): self.creds_client.delete_credential(cred_id) @test.attr(type='smoke') - @test.idempotent_id('7cd59bf9-bda4-4c72-9467-d21cab278355') + @decorators.idempotent_id('7cd59bf9-bda4-4c72-9467-d21cab278355') def test_credentials_create_get_update_delete(self): blob = '{"access": "%s", "secret": "%s"}' % ( data_utils.rand_name('Access'), data_utils.rand_name('Secret')) @@ -87,7 +88,7 @@ class CredentialsTestJSON(base.BaseIdentityV3AdminTest): self.assertEqual(update_body['blob'][value2], get_body['blob'][value2]) - @test.idempotent_id('13202c00-0021-42a1-88d4-81b44d448aab') + @decorators.idempotent_id('13202c00-0021-42a1-88d4-81b44d448aab') def test_credentials_list_delete(self): created_cred_ids = list() fetched_cred_ids = list() -- cgit v1.2.1