summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeremy.zhang <zhangjun_inspur@163.com>2017-12-17 15:16:06 +0800
committerjeremy.zhang <zhangjun_inspur@163.com>2017-12-17 15:16:06 +0800
commita9c66f83c89507afc1b88f51ad7596fb2a951118 (patch)
treeb6e44f291aa578de7ed05ac696e1a3266a0007a1
parent3d3f57f5c8871dcfecc60a47cbbd9037cfc6c08d (diff)
downloadcinder-tempest-plugin-a9c66f83c89507afc1b88f51ad7596fb2a951118.zip
cinder-tempest-plugin-a9c66f83c89507afc1b88f51ad7596fb2a951118.tar.gz
cinder-tempest-plugin-a9c66f83c89507afc1b88f51ad7596fb2a951118.tar.bz2
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
-rw-r--r--cinder/tests/tempest/api/volume/test_volume_revert.py6
-rw-r--r--cinder/tests/tempest/config.py3
2 files changed, 9 insertions, 0 deletions
diff --git a/cinder/tests/tempest/api/volume/test_volume_revert.py b/cinder/tests/tempest/api/volume/test_volume_revert.py
index 7314fdb..1f4bead 100644
--- a/cinder/tests/tempest/api/volume/test_volume_revert.py
+++ b/cinder/tests/tempest/api/volume/test_volume_revert.py
@@ -27,6 +27,12 @@ class VolumeRevertTests(volume_base.BaseVolumeTest):
min_microversion = '3.40'
@classmethod
+ def skip_checks(cls):
+ super(VolumeRevertTests, cls).skip_checks()
+ if not CONF.volume_feature_enabled.volume_revert:
+ raise cls.skipException("Cinder volume revert feature disabled")
+
+ @classmethod
def setup_clients(cls):
cls._api_version = 3
super(VolumeRevertTests, cls).setup_clients()
diff --git a/cinder/tests/tempest/config.py b/cinder/tests/tempest/config.py
index f4eb098..e15a399 100644
--- a/cinder/tests/tempest/config.py
+++ b/cinder/tests/tempest/config.py
@@ -19,4 +19,7 @@ cinder_option = [
cfg.BoolOpt('consistency_group',
default=False,
help='Enable to run Cinder volume consistency group tests'),
+ cfg.BoolOpt('volume_revert',
+ default=False,
+ help='Enable to run Cinder volume revert tests'),
]

This mirror site include all the OpenStack related repositories under: openstack, openstack-dev and openstack-infra.

NOTE: All repositories are updated every one hour.

Usage

For Git Clone
 git clone http://git.trystack.cn/openstack/nova.git 
For DevStack

Add GIT_BASE, NOVNC_REPO and SPICE_REPO variables to local.conf file.

[[local|localrc]]

# use TryStack git mirror
GIT_BASE=http://git.trystack.cn
NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git
SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git