Bump test microversion and fix backup test
We added new field "backup_type" in share-backups API in 2.85. Change-Id: Iaaf3c3914089ad0d27b61a524f14353cae35c4d5 Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
This commit is contained in:
parent
1687dd6ef6
commit
077fd3d198
@ -40,7 +40,7 @@ ShareGroup = [
|
||||
"This value is only used to validate the versions "
|
||||
"response from Manila."),
|
||||
cfg.StrOpt("max_api_microversion",
|
||||
default="2.82",
|
||||
default="2.85",
|
||||
help="The maximum api microversion is configured to be the "
|
||||
"value of the latest microversion supported by Manila."),
|
||||
cfg.StrOpt("region",
|
||||
|
@ -54,11 +54,14 @@ class ShareBackupTest(base.BaseSharesMixedTest):
|
||||
def test_create_share_backup(self):
|
||||
backup = self.create_backup_wait_for_active(self.share_id)
|
||||
|
||||
# Verify backup create API response
|
||||
# Verify backup create API response, we use the configured max API
|
||||
# version to make this call
|
||||
expected_keys = ["id", "share_id", "status",
|
||||
"availability_zone", "created_at", "updated_at",
|
||||
"size", "progress", "restore_progress",
|
||||
"name", "description"]
|
||||
if utils.is_microversion_ge(CONF.share.max_api_microversion, '2.85'):
|
||||
expected_keys.append("backup_type")
|
||||
|
||||
# Strict key check
|
||||
actual_backup = self.shares_v2_client.get_share_backup(
|
||||
|
Loading…
Reference in New Issue
Block a user