Fix test failures with api version 2.87+
export location structure has changed in 2.87.
New test cases are being added in
I113ea3095cdc9d5d2903ba83641afd3ee112c17d.
Change-Id: Ieb8dfc8813a3366b4252b6816397632ffb6a20bf
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
diff --git a/manila_tempest_tests/tests/api/admin/test_export_locations.py b/manila_tempest_tests/tests/api/admin/test_export_locations.py
index db382f2..74df8d1 100644
--- a/manila_tempest_tests/tests/api/admin/test_export_locations.py
+++ b/manila_tempest_tests/tests/api/admin/test_export_locations.py
@@ -58,6 +58,8 @@
summary_keys = ['id', 'path']
if utils.is_microversion_ge(version, '2.14'):
summary_keys += ['preferred']
+ if utils.is_microversion_ge(version, '2.87'):
+ summary_keys += ['metadata']
admin_summary_keys = summary_keys + [
'share_instance_id', 'is_admin_only']
diff --git a/manila_tempest_tests/tests/api/test_replication_export_locations.py b/manila_tempest_tests/tests/api/test_replication_export_locations.py
index 2227290..bff8d2d 100644
--- a/manila_tempest_tests/tests/api/test_replication_export_locations.py
+++ b/manila_tempest_tests/tests/api/test_replication_export_locations.py
@@ -196,6 +196,9 @@
"""Validates exports from the replica export locations APIs"""
el_summary_keys = ['id', 'path', 'replica_state',
'availability_zone', 'preferred']
+ if utils.is_microversion_ge(LATEST_MICROVERSION, '2.87'):
+ el_summary_keys += ['metadata']
+
el_detail_keys = el_summary_keys + ['created_at', 'updated_at']
share, replica, expected_primary_exports, expected_replica_exports = (
self._create_share_and_replica_get_exports()