Bump API testing version to 2.95 and fix replica tests
Bump the version to 2.95 - which is the most recent API version
supported in Manila after the Gazpacho release.
After backporting changes to 2026.1, we encountered issues related
to the share replica metadata tests, which we did not catch by the
time of the release.
The tests should also take into consideration that after version
2.95, a metadata field will be included as part of the response
of some requests in the share replicas APIs.
This change addresses the failures to the tests that were impacted
by the metadata change.
Change-Id: I521818c68f8c56d69ba711e9f209751b8f526849
Signed-off-by: Carlos da Silva <ces.eduardo98@gmail.com>
diff --git a/manila_tempest_tests/config.py b/manila_tempest_tests/config.py
index 8b6695d..c4dae88 100644
--- a/manila_tempest_tests/config.py
+++ b/manila_tempest_tests/config.py
@@ -40,7 +40,7 @@
"This value is only used to validate the versions "
"response from Manila."),
cfg.StrOpt("max_api_microversion",
- default="2.90",
+ default="2.95",
help="The maximum api microversion is configured to be the "
"value of the latest microversion supported by Manila."),
cfg.StrOpt("region",
diff --git a/manila_tempest_tests/tests/api/test_replication.py b/manila_tempest_tests/tests/api/test_replication.py
index 5865e69..2d8d1d3 100644
--- a/manila_tempest_tests/tests/api/test_replication.py
+++ b/manila_tempest_tests/tests/api/test_replication.py
@@ -32,6 +32,9 @@
SUMMARY_KEYS = ['share_id', 'id', 'replica_state', 'status']
DETAIL_KEYS = SUMMARY_KEYS + ['availability_zone', 'updated_at',
'share_network_id', 'created_at']
+REPLICA_METADATA_MICROVERSION = "2.95"
+if utils.is_microversion_supported(REPLICA_METADATA_MICROVERSION):
+ DETAIL_KEYS += ['metadata']
@ddt.ddt