Switch to decorators.idempotent_id

test.idempotent_id is being kept temporary to migrate
to new lib interface. Now idempotent_id is available as Tempest stable
interface decorators and all plugins tests using the old decorator
should be switched to new interface.

In future, Once all plugins are switched to new decorator Tempest
will remove the test.idempotent_id

Change-Id: I6e24344a809ef397a252fe1fb002b2cad10cd5ba
Related-Bug: 1616913
This commit is contained in:
ghanshyam 2017-01-27 06:26:32 +00:00 committed by Ghanshyam Mann
parent 9d9a091ba3
commit bb0cbbb1b9
1 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@ from tempest.api.volume import base
from tempest.common import waiters from tempest.common import waiters
from tempest import config from tempest import config
from tempest.lib.common.utils import data_utils from tempest.lib.common.utils import data_utils
from tempest import test from tempest.lib import decorators
from cinder.tests.tempest import cinder_clients from cinder.tests.tempest import cinder_clients
@ -65,7 +65,7 @@ class ConsistencyGroupsV2Test(base.BaseVolumeAdminTest):
self.consistencygroups_adm_client.wait_for_cgsnapshot_deletion( self.consistencygroups_adm_client.wait_for_cgsnapshot_deletion(
cgsnapshot_id) cgsnapshot_id)
@test.idempotent_id('3fe776ba-ec1f-4e6c-8d78-4b14c3a7fc44') @decorators.idempotent_id('3fe776ba-ec1f-4e6c-8d78-4b14c3a7fc44')
def test_consistencygroup_create_delete(self): def test_consistencygroup_create_delete(self):
# Create volume type # Create volume type
name = data_utils.rand_name("volume-type") name = data_utils.rand_name("volume-type")
@ -109,7 +109,7 @@ class ConsistencyGroupsV2Test(base.BaseVolumeAdminTest):
self._delete_consistencygroup(cg['id']) self._delete_consistencygroup(cg['id'])
self.admin_volume_types_client.delete_volume_type(volume_type['id']) self.admin_volume_types_client.delete_volume_type(volume_type['id'])
@test.idempotent_id('2134dd52-f333-4456-bb05-6cb0f009a44f') @decorators.idempotent_id('2134dd52-f333-4456-bb05-6cb0f009a44f')
def test_consistencygroup_cgsnapshot_create_delete(self): def test_consistencygroup_cgsnapshot_create_delete(self):
# Create volume type # Create volume type
name = data_utils.rand_name("volume-type") name = data_utils.rand_name("volume-type")
@ -169,7 +169,7 @@ class ConsistencyGroupsV2Test(base.BaseVolumeAdminTest):
self._delete_consistencygroup(cg['id']) self._delete_consistencygroup(cg['id'])
self.admin_volume_types_client.delete_volume_type(volume_type['id']) self.admin_volume_types_client.delete_volume_type(volume_type['id'])
@test.idempotent_id('3a6a5525-25ca-4a6c-aac4-cac6fa8f5b43') @decorators.idempotent_id('3a6a5525-25ca-4a6c-aac4-cac6fa8f5b43')
def test_create_consistencygroup_from_cgsnapshot(self): def test_create_consistencygroup_from_cgsnapshot(self):
# Create volume type # Create volume type
name = data_utils.rand_name("volume-type") name = data_utils.rand_name("volume-type")
@ -235,7 +235,7 @@ class ConsistencyGroupsV2Test(base.BaseVolumeAdminTest):
self._delete_consistencygroup(cg['id']) self._delete_consistencygroup(cg['id'])
self.admin_volume_types_client.delete_volume_type(volume_type['id']) self.admin_volume_types_client.delete_volume_type(volume_type['id'])
@test.idempotent_id('556121ae-de9c-4342-9897-e54260447a19') @decorators.idempotent_id('556121ae-de9c-4342-9897-e54260447a19')
def test_create_consistencygroup_from_consistencygroup(self): def test_create_consistencygroup_from_consistencygroup(self):
# Create volume type # Create volume type
name = data_utils.rand_name("volume-type") name = data_utils.rand_name("volume-type")