The heat_integrationtests.scenario.test_volumes Module

The heat_integrationtests.scenario.test_volumes Module

class heat_integrationtests.scenario.test_volumes.VolumeBackupRestoreIntegrationTest(*args, **kwargs)[source]

Bases: heat_integrationtests.scenario.scenario_base.ScenarioTestsBase

Class is responsible for testing of volume backup.

check_stack(stack_id, parameters)[source]
setUp()[source]
test_cinder_volume_create_backup_restore()[source]

Ensure the ‘Snapshot’ deletion policy works.

This requires a more complex test, but it tests several aspects of the heat cinder resources:

  1. Create a volume, attach it to an instance, write some data to it
  2. Delete the stack, with ‘Snapshot’ specified, creates a backup
  3. Check the snapshot has created a volume backup
  4. Create a new stack, where the volume is created from the backup
  5. Verify the test data written in (1) is present in the new volume
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.