Merge "Skip snaphost tests unless snapshot feature is enabled"

This commit is contained in:
Zuul 2021-09-29 04:43:21 +00:00 committed by Gerrit Code Review
commit c46ab5973a
2 changed files with 5 additions and 0 deletions

View File

@ -455,6 +455,8 @@ class AttachVolumeMultiAttachTest(BaseAttachVolumeTest):
@utils.services('image')
@decorators.idempotent_id('885ac48a-2d7a-40c5-ae8b-1993882d724c')
@testtools.skipUnless(CONF.compute_feature_enabled.snapshot,
'Snapshotting is not available.')
def test_snapshot_volume_backed_multiattach(self):
"""Boots a server from a multiattach volume and snapshots the server.

View File

@ -13,6 +13,7 @@
import abc
from oslo_log import log as logging
import testtools
from tempest.api.volume import base
from tempest.common import waiters
@ -146,6 +147,8 @@ class VolumeRetypeWithMigrationTest(VolumeRetypeTest):
self._retype_volume(src_vol, migration_policy='on-demand')
@decorators.idempotent_id('d0d9554f-e7a5-4104-8973-f35b27ccb60d')
@testtools.skipUnless(CONF.volume_feature_enabled.snapshot,
"Cinder volume snapshots are disabled.")
def test_volume_from_snapshot_retype_with_migration(self):
"""Test volume created from snapshot retype with migration