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 = (
|
||||
'attachments',
|
||||
'availability_zone',
|
||||
'backup_id',
|
||||
'bootable',
|
||||
'cluster_name',
|
||||
'consistencygroup_id',
|
||||
@@ -78,6 +79,7 @@ class TestVolumeCreate(volume_fakes.TestVolume):
|
||||
self.datalist = (
|
||||
self.volume.attachments,
|
||||
self.volume.availability_zone,
|
||||
self.volume.backup_id,
|
||||
self.volume.is_bootable,
|
||||
self.volume.cluster_name,
|
||||
self.volume.consistency_group_id,
|
||||
@@ -2011,6 +2013,7 @@ class TestVolumeShow(volume_fakes.TestVolume):
|
||||
self.columns = (
|
||||
'attachments',
|
||||
'availability_zone',
|
||||
'backup_id',
|
||||
'bootable',
|
||||
'cluster_name',
|
||||
'consistencygroup_id',
|
||||
@@ -2045,6 +2048,7 @@ class TestVolumeShow(volume_fakes.TestVolume):
|
||||
self.data = (
|
||||
self.volume.attachments,
|
||||
self.volume.availability_zone,
|
||||
self.volume.backup_id,
|
||||
self.volume.is_bootable,
|
||||
self.volume.cluster_name,
|
||||
self.volume.consistency_group_id,
|
||||
|
||||
@@ -107,8 +107,6 @@ def _format_volume(volume: _volume.Volume) -> dict[str, ty.Any]:
|
||||
'os-volume-replication:extended_status',
|
||||
# unnecessary columns
|
||||
'links',
|
||||
# temporarily ignored columns
|
||||
'backup_id',
|
||||
}
|
||||
optional_columns = {
|
||||
# only present if part of a consistency group
|
||||
|
||||
Reference in New Issue
Block a user