Codebase list cinder-tempest-plugin / a9c66f8
Add skip check for volume revert feature Volume revert is a new feature added in microversion 3.40, and now not all storage backend drivers have supported this feature. So it is necessary to add a skip check for it in Tempest tests. Change-Id: Icbd108f62f5b308e419843b03af20c8fe1278b24 jeremy.zhang 8 years ago
2 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2424
2525 class VolumeRevertTests(volume_base.BaseVolumeTest):
2626 min_microversion = '3.40'
27
28 @classmethod
29 def skip_checks(cls):
30 super(VolumeRevertTests, cls).skip_checks()
31 if not CONF.volume_feature_enabled.volume_revert:
32 raise cls.skipException("Cinder volume revert feature disabled")
2733
2834 @classmethod
2935 def setup_clients(cls):
1818 cfg.BoolOpt('consistency_group',
1919 default=False,
2020 help='Enable to run Cinder volume consistency group tests'),
21 cfg.BoolOpt('volume_revert',
22 default=False,
23 help='Enable to run Cinder volume revert tests'),
2124 ]