Merge "Volume snapshot backup"
This commit is contained in:
commit
4b992aca5f
@ -10,6 +10,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import testtools
|
||||
from testtools import matchers
|
||||
|
||||
from tempest.api.volume import base
|
||||
@ -149,3 +150,16 @@ class VolumesSnapshotTestJSON(base.BaseVolumeTest):
|
||||
# Should allow
|
||||
self.assertEqual(volume['snapshot_id'], src_snap['id'])
|
||||
self.assertEqual(volume['size'], src_size + 1)
|
||||
|
||||
@decorators.idempotent_id('bbcfa285-af7f-479e-8c1a-8c34fc16543c')
|
||||
@testtools.skipUnless(CONF.volume_feature_enabled.backup,
|
||||
"Cinder backup is disabled")
|
||||
def test_snapshot_backup(self):
|
||||
# Create a snapshot
|
||||
snapshot = self.create_snapshot(volume_id=self.volume_origin['id'])
|
||||
|
||||
backup = self.create_backup(volume_id=self.volume_origin['id'],
|
||||
snapshot_id=snapshot['id'])
|
||||
backup_info = self.backups_client.show_backup(backup['id'])['backup']
|
||||
self.assertEqual(self.volume_origin['id'], backup_info['volume_id'])
|
||||
self.assertEqual(snapshot['id'], backup_info['snapshot_id'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user