Codebase list cinder-tempest-plugin / bb0cbbb
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 ghanshyam authored 9 years ago Ghanshyam Mann committed 9 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
1717 from tempest.common import waiters
1818 from tempest import config
1919 from tempest.lib.common.utils import data_utils
20 from tempest import test
20 from tempest.lib import decorators
2121
2222 from cinder.tests.tempest import cinder_clients
2323
6464 self.consistencygroups_adm_client.wait_for_cgsnapshot_deletion(
6565 cgsnapshot_id)
6666
67 @test.idempotent_id('3fe776ba-ec1f-4e6c-8d78-4b14c3a7fc44')
67 @decorators.idempotent_id('3fe776ba-ec1f-4e6c-8d78-4b14c3a7fc44')
6868 def test_consistencygroup_create_delete(self):
6969 # Create volume type
7070 name = data_utils.rand_name("volume-type")
108108 self._delete_consistencygroup(cg['id'])
109109 self.admin_volume_types_client.delete_volume_type(volume_type['id'])
110110
111 @test.idempotent_id('2134dd52-f333-4456-bb05-6cb0f009a44f')
111 @decorators.idempotent_id('2134dd52-f333-4456-bb05-6cb0f009a44f')
112112 def test_consistencygroup_cgsnapshot_create_delete(self):
113113 # Create volume type
114114 name = data_utils.rand_name("volume-type")
168168 self._delete_consistencygroup(cg['id'])
169169 self.admin_volume_types_client.delete_volume_type(volume_type['id'])
170170
171 @test.idempotent_id('3a6a5525-25ca-4a6c-aac4-cac6fa8f5b43')
171 @decorators.idempotent_id('3a6a5525-25ca-4a6c-aac4-cac6fa8f5b43')
172172 def test_create_consistencygroup_from_cgsnapshot(self):
173173 # Create volume type
174174 name = data_utils.rand_name("volume-type")
234234 self._delete_consistencygroup(cg['id'])
235235 self.admin_volume_types_client.delete_volume_type(volume_type['id'])
236236
237 @test.idempotent_id('556121ae-de9c-4342-9897-e54260447a19')
237 @decorators.idempotent_id('556121ae-de9c-4342-9897-e54260447a19')
238238 def test_create_consistencygroup_from_consistencygroup(self):
239239 # Create volume type
240240 name = data_utils.rand_name("volume-type")