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:
agireesh
committed by
Goutham Pacha Ravi
parent
1687dd6ef6
commit
077fd3d198
2 changed files with 5 additions and 2 deletions
@@ -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(
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.