test_server_rescue.py should use CONF.volume.volume_size
test_server_rescue.py contains hard-coded volume_size value without any option to override it. The tests should use CONF.volume.volume_size. Closes-Bug: 1877259 Change-Id: Id502dfa06547023229ae2e6f9426eeb99da7dd89
This commit is contained in:
parent
006e8d175e
commit
abda8712a4
|
@ -198,7 +198,7 @@ class ServerBootFromVolumeStableRescueTest(BaseServerStableDeviceRescueTest):
|
||||||
block_device_mapping_v2 = [{
|
block_device_mapping_v2 = [{
|
||||||
"boot_index": "0",
|
"boot_index": "0",
|
||||||
"source_type": "blank",
|
"source_type": "blank",
|
||||||
"volume_size": "1",
|
"volume_size": CONF.volume.volume_size,
|
||||||
"destination_type": "volume"}]
|
"destination_type": "volume"}]
|
||||||
server_id, rescue_image_id = self._create_server_and_rescue_image(
|
server_id, rescue_image_id = self._create_server_and_rescue_image(
|
||||||
hw_rescue_device='disk', hw_rescue_bus='virtio',
|
hw_rescue_device='disk', hw_rescue_bus='virtio',
|
||||||
|
@ -210,7 +210,7 @@ class ServerBootFromVolumeStableRescueTest(BaseServerStableDeviceRescueTest):
|
||||||
block_device_mapping_v2 = [{
|
block_device_mapping_v2 = [{
|
||||||
"boot_index": "0",
|
"boot_index": "0",
|
||||||
"source_type": "image",
|
"source_type": "image",
|
||||||
"volume_size": "1",
|
"volume_size": CONF.volume.volume_size,
|
||||||
"uuid": CONF.compute.image_ref,
|
"uuid": CONF.compute.image_ref,
|
||||||
"destination_type": "volume"}]
|
"destination_type": "volume"}]
|
||||||
server_id, rescue_image_id = self._create_server_and_rescue_image(
|
server_id, rescue_image_id = self._create_server_and_rescue_image(
|
||||||
|
@ -226,7 +226,7 @@ class ServerBootFromVolumeStableRescueTest(BaseServerStableDeviceRescueTest):
|
||||||
block_device_mapping_v2 = [{
|
block_device_mapping_v2 = [{
|
||||||
"boot_index": "0",
|
"boot_index": "0",
|
||||||
"source_type": "snapshot",
|
"source_type": "snapshot",
|
||||||
"volume_size": "1",
|
"volume_size": CONF.volume.volume_size,
|
||||||
"uuid": snapshot_id,
|
"uuid": snapshot_id,
|
||||||
"destination_type": "volume"}]
|
"destination_type": "volume"}]
|
||||||
server_id, rescue_image_id = self._create_server_and_rescue_image(
|
server_id, rescue_image_id = self._create_server_and_rescue_image(
|
||||||
|
|
Loading…
Reference in New Issue