summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Harney <eharney@redhat.com>2019-02-25 10:26:29 -0500
committerEric Harney <eharney@redhat.com>2019-02-25 10:28:15 -0500
commit3cd73f60d8726170c7567338d9812f0e399ab7e7 (patch)
treee23ccf19d2b0f1d84cdb43594ed330f10ef7858b
parentf208601ab5ba7e33cff535595d4ce480489ef4b9 (diff)
downloadcinder-tempest-plugin-3cd73f60d8726170c7567338d9812f0e399ab7e7.zip
cinder-tempest-plugin-3cd73f60d8726170c7567338d9812f0e399ab7e7.tar.gz
cinder-tempest-plugin-3cd73f60d8726170c7567338d9812f0e399ab7e7.tar.bz2
Add metadata to snapshot for revert test0.2.0
This may help test the problem exposed in bug 1805790, but it will only trigger it if the job is running with notifications turned on. Related-Bug: #1805790 Change-Id: Ie1778624f51cfc05c5d42174065a21a6ceaae138
-rw-r--r--cinder_tempest_plugin/api/volume/test_volume_revert.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cinder_tempest_plugin/api/volume/test_volume_revert.py b/cinder_tempest_plugin/api/volume/test_volume_revert.py
index 8a2f657..7c5eed1 100644
--- a/cinder_tempest_plugin/api/volume/test_volume_revert.py
+++ b/cinder_tempest_plugin/api/volume/test_volume_revert.py
@@ -46,7 +46,8 @@ class VolumeRevertTests(base.BaseVolumeTest):
# Create volume
self.volume = self.create_volume()
# Create snapshot
- self.snapshot = self.create_snapshot(self.volume['id'])
+ self.snapshot = self.create_snapshot(self.volume['id'],
+ metadata={'mykey1': 'value1'})
@decorators.idempotent_id('87b7dcb7-4950-4a3a-802c-ece55491846d')
def test_volume_revert_to_snapshot(self):

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