JIRA: FUEL-356
Fuel/MCP has set allow_availability_zone_fallback option to True.
If the requested Cinder availability zone is unavailable, fall back
to the value of default_availability_zone, then storage_availability_zone,
instead of failing.
Change-Id: I04f45f8435dbdf1113ac6b2c50bf913c1f29cd20
Signed-off-by: Linda Wang <wangwulin@huawei.com>
| test_create_volume_bad_image | 2 & 3 | Tests to ensure that attempting to create a volume with an|
| | | image that does not exist raises a BadRequest exception |
+----------------------------------------+---------------+-----------------------------------------------------------+
-| test_create_volume_bad_zone | 2 & 3 | Tests to ensure that attempting to create a volume with an|
-| | | invalid availability zone raises a BadRequest exception |
-+----------------------------------------+---------------+-----------------------------------------------------------+
create_volume_tests.py - CreateVolumeWithTypeTests
--------------------------------------------------
with self.assertRaises(BadRequest):
self.volume_creator.create(block=True)
- def test_create_volume_bad_zone(self):
- """
- Tests the creation of an OpenStack volume with an availability zone
- that does not exist to ensure it raises a BadRequest exception.
- """
- volume_settings = VolumeConfig(
- name=self.__class__.__name__ + '-' + str(self.guid),
- availability_zone='foo')
-
- # Create Volume
- self.volume_creator = OpenStackVolume(self.os_creds, volume_settings)
-
- with self.assertRaises(BadRequest):
- self.volume_creator.create(block=True)
-
class CreateVolumeWithTypeTests(OSIntegrationTestCase):
"""