summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiriam Yumi <miriam.peixoto@netapp.com>2018-09-04 14:42:14 -0300
committerMiriam Yumi <miriam.peixoto@netapp.com>2018-09-21 15:08:11 -0300
commitfa8791ecb3ac75f8be547cd52d8309045b55a5d7 (patch)
tree3df9db0f2e1c8f6234a9c80eeb7f37e6854f8c15
parent08a38515de66cb09cb1c6c7c56bb90aeaa86c5c5 (diff)
downloadcinder-tempest-plugin-fa8791ecb3ac75f8be547cd52d8309045b55a5d7.zip
cinder-tempest-plugin-fa8791ecb3ac75f8be547cd52d8309045b55a5d7.tar.gz
cinder-tempest-plugin-fa8791ecb3ac75f8be547cd52d8309045b55a5d7.tar.bz2
Fix consistency groups test credentials
This patch fixes the test for consistency groups, changing it to an admin test in order to perform required operations. Change-Id: I5f7fd8d62ace7d880a27697cf2b15fbb13cde706 Depends-On: I8bdfc31bb2baeabe1d599ea6e9be3c473531f8b6 Closes-Bug: #1789944
-rw-r--r--cinder_tempest_plugin/api/volume/admin/__init__.py0
-rw-r--r--cinder_tempest_plugin/api/volume/admin/test_consistencygroups.py (renamed from cinder_tempest_plugin/api/volume/test_consistencygroups.py)2
-rw-r--r--cinder_tempest_plugin/api/volume/base.py12
3 files changed, 13 insertions, 1 deletions
diff --git a/cinder_tempest_plugin/api/volume/admin/__init__.py b/cinder_tempest_plugin/api/volume/admin/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/cinder_tempest_plugin/api/volume/admin/__init__.py
diff --git a/cinder_tempest_plugin/api/volume/test_consistencygroups.py b/cinder_tempest_plugin/api/volume/admin/test_consistencygroups.py
index d6b8e4a..15d19dc 100644
--- a/cinder_tempest_plugin/api/volume/test_consistencygroups.py
+++ b/cinder_tempest_plugin/api/volume/admin/test_consistencygroups.py
@@ -25,7 +25,7 @@ from cinder_tempest_plugin import cinder_clients
CONF = config.CONF
-class ConsistencyGroupsV2Test(base.BaseVolumeTest):
+class ConsistencyGroupsV2Test(base.BaseVolumeAdminTest):
@classmethod
def setup_clients(cls):
cls._api_version = 2
diff --git a/cinder_tempest_plugin/api/volume/base.py b/cinder_tempest_plugin/api/volume/base.py
index b3765e0..d1e71ef 100644
--- a/cinder_tempest_plugin/api/volume/base.py
+++ b/cinder_tempest_plugin/api/volume/base.py
@@ -168,3 +168,15 @@ class BaseVolumeTest(api_version_utils.BaseMicroversionTest,
self.os_primary.servers_client.delete_server,
body['id'])
return body
+
+
+class BaseVolumeAdminTest(BaseVolumeTest):
+ """Base test case class for all Volume Admin API tests."""
+
+ credentials = ['primary', 'admin']
+
+ @classmethod
+ def setup_clients(cls):
+ super(BaseVolumeAdminTest, cls).setup_clients()
+
+ cls.admin_volume_types_client = cls.os_admin.volume_types_client_latest

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