Merge "Remove obsolete Liberty code"
Jenkins authored 8 years ago
Gerrit Code Review committed 8 years ago
| 12 | 12 | # License for the specific language governing permissions and limitations |
| 13 | 13 | # under the License. |
| 14 | 14 | |
| 15 | from oslo_config import cfg | |
| 16 | import testtools | |
| 17 | ||
| 18 | 15 | from tempest.api.volume import base as volume_base |
| 19 | 16 | from tempest.common import waiters |
| 20 | 17 | from tempest import config |
| 21 | 18 | from tempest.lib.common.utils import data_utils |
| 22 | 19 | from tempest.lib import decorators |
| 23 | 20 | |
| 24 | # TODO(obutenko): Remove this when liberty-eol happens. | |
| 25 | snapshot_backup_opt = cfg.BoolOpt('snapshot_backup', | |
| 26 | default=False, | |
| 27 | help='Creating backup from snapshot not ' | |
| 28 | 'implemented in Liberty.') | |
| 29 | ||
| 30 | 21 | CONF = config.CONF |
| 31 | CONF.register_opt(snapshot_backup_opt, group='volume-feature-enabled') | |
| 32 | 22 | |
| 33 | 23 | |
| 34 | 24 | class VolumesBackupsTest(volume_base.BaseVolumeTest): |
| 39 | 29 | if not CONF.volume_feature_enabled.backup: |
| 40 | 30 | raise cls.skipException("Cinder backup feature disabled") |
| 41 | 31 | |
| 42 | @testtools.skipUnless(CONF.volume_feature_enabled.snapshot_backup, | |
| 43 | "Skip. Not implemented in Liberty.") | |
| 44 | 32 | @decorators.idempotent_id('885410c6-cd1d-452c-a409-7c32b7e0be15') |
| 45 | 33 | def test_volume_snapshot_backup(self): |
| 46 | 34 | """Create backup from snapshot.""" |