volume: Add missing backup_id field in tests
This change also reverts commit:
* 5f1ffe742c
Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/958801
Change-Id: Icac78179bc324e6fbe762f8095f2cba490ef6aea
Signed-off-by: Luan Utimura <luan.utimura@luizalabs.com>
This commit is contained in:
@@ -37,6 +37,7 @@ class TestVolumeCreate(volume_fakes.TestVolume):
|
|||||||
columns = (
|
columns = (
|
||||||
'attachments',
|
'attachments',
|
||||||
'availability_zone',
|
'availability_zone',
|
||||||
|
'backup_id',
|
||||||
'bootable',
|
'bootable',
|
||||||
'cluster_name',
|
'cluster_name',
|
||||||
'consistencygroup_id',
|
'consistencygroup_id',
|
||||||
@@ -78,6 +79,7 @@ class TestVolumeCreate(volume_fakes.TestVolume):
|
|||||||
self.datalist = (
|
self.datalist = (
|
||||||
self.volume.attachments,
|
self.volume.attachments,
|
||||||
self.volume.availability_zone,
|
self.volume.availability_zone,
|
||||||
|
self.volume.backup_id,
|
||||||
self.volume.is_bootable,
|
self.volume.is_bootable,
|
||||||
self.volume.cluster_name,
|
self.volume.cluster_name,
|
||||||
self.volume.consistency_group_id,
|
self.volume.consistency_group_id,
|
||||||
@@ -2011,6 +2013,7 @@ class TestVolumeShow(volume_fakes.TestVolume):
|
|||||||
self.columns = (
|
self.columns = (
|
||||||
'attachments',
|
'attachments',
|
||||||
'availability_zone',
|
'availability_zone',
|
||||||
|
'backup_id',
|
||||||
'bootable',
|
'bootable',
|
||||||
'cluster_name',
|
'cluster_name',
|
||||||
'consistencygroup_id',
|
'consistencygroup_id',
|
||||||
@@ -2045,6 +2048,7 @@ class TestVolumeShow(volume_fakes.TestVolume):
|
|||||||
self.data = (
|
self.data = (
|
||||||
self.volume.attachments,
|
self.volume.attachments,
|
||||||
self.volume.availability_zone,
|
self.volume.availability_zone,
|
||||||
|
self.volume.backup_id,
|
||||||
self.volume.is_bootable,
|
self.volume.is_bootable,
|
||||||
self.volume.cluster_name,
|
self.volume.cluster_name,
|
||||||
self.volume.consistency_group_id,
|
self.volume.consistency_group_id,
|
||||||
|
|||||||
@@ -107,8 +107,6 @@ def _format_volume(volume: _volume.Volume) -> dict[str, ty.Any]:
|
|||||||
'os-volume-replication:extended_status',
|
'os-volume-replication:extended_status',
|
||||||
# unnecessary columns
|
# unnecessary columns
|
||||||
'links',
|
'links',
|
||||||
# temporarily ignored columns
|
|
||||||
'backup_id',
|
|
||||||
}
|
}
|
||||||
optional_columns = {
|
optional_columns = {
|
||||||
# only present if part of a consistency group
|
# only present if part of a consistency group
|
||||||
|
|||||||
Reference in New Issue
Block a user