Skip test_gateway_mtu_neutron_net_id_with_neutron
This test works with datas that Manila provides
till 2.50 API microversion and they are absent in
the latest API versions
Related-Prod: PRODX-30864
Change-Id: I697ee4faa9ae2b193c9d27e2471e25a2c97a54cc
diff --git a/manila_tempest_tests/tests/api/test_share_networks.py b/manila_tempest_tests/tests/api/test_share_networks.py
index f990566..6e798ee 100644
--- a/manila_tempest_tests/tests/api/test_share_networks.py
+++ b/manila_tempest_tests/tests/api/test_share_networks.py
@@ -22,6 +22,7 @@
from manila_tempest_tests import utils
CONF = config.CONF
+LATEST_MICROVERSION = CONF.share.max_api_microversion
class ShareNetworkListMixin(object):
@@ -299,6 +300,12 @@
self.assertDictContainsSubset(data, sn2)
@decorators.idempotent_id('2dbf91da-04ae-4f9f-a7b9-0299c6b2e02c')
+ # In this test Share client use the latest API microversion
+ # for connection to the Manila service.
+ # This test may not work after microversion 2.50
+ # https://docs.openstack.org/api-ref/shared-file-system/?expanded=list-share-networks-with-details-detail
+ @utils.skip_if_is_microversion_ge(LATEST_MICROVERSION,
+ utils.SHARE_NETWORK_SUBNETS_MICROVERSION)
@testtools.skipUnless(CONF.share.create_networks_when_multitenancy_enabled,
"Only for setups with network creation.")
@testtools.skipUnless(CONF.share.multitenancy_enabled,