Codebase list cinder-tempest-plugin / 41be8c1
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: Ie7789c072b8954de5821777bf3f672cdfa4bceca Related-Bug: 1616913 Ken'ichi Ohmichi 9 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1919 from tempest.common import waiters
2020 from tempest import config
2121 from tempest.lib.common.utils import data_utils
22 from tempest import test
22 from tempest.lib import decorators
2323
2424 # TODO(obutenko): Remove this when liberty-eol happens.
2525 snapshot_backup_opt = cfg.BoolOpt('snapshot_backup',
4141
4242 @testtools.skipUnless(CONF.volume_feature_enabled.snapshot_backup,
4343 "Skip. Not implemented in Liberty.")
44 @test.idempotent_id('885410c6-cd1d-452c-a409-7c32b7e0be15')
44 @decorators.idempotent_id('885410c6-cd1d-452c-a409-7c32b7e0be15')
4545 def test_volume_snapshot_backup(self):
4646 """Create backup from snapshot."""
4747 volume = self.create_volume()
6666 self.volumes_client.delete_volume(volume['id'])
6767 self.volumes_client.wait_for_resource_deletion(volume['id'])
6868
69 @test.idempotent_id('b5d837b0-7066-455d-88fc-4a721a899306')
69 @decorators.idempotent_id('b5d837b0-7066-455d-88fc-4a721a899306')
7070 def test_backup_create_and_restore_to_an_existing_volume(self):
7171 """Test backup create and restore to an existing volume."""
7272 # Create volume
9393 self.assertEqual(src_vol['id'], restore['volume_id'])
9494 self.assertEqual(backup['id'], restore['backup_id'])
9595
96 @test.idempotent_id('c810fe2c-cb40-43ab-96aa-471b74516a98')
96 @decorators.idempotent_id('c810fe2c-cb40-43ab-96aa-471b74516a98')
9797 def test_incremental_backup(self):
9898 """Test create incremental backup."""
9999 # Create volume from image