Skip test_connectivity_min_max_mtu if cirros image is used
Command "ping" available in cirros image don't have "-M" option.
This is necessary in test_connectivity_min_max_mtu scenario tests
to check connectivity without fragmenting packets.
So those tests will always fail with cirros and should be skipped
in such case.
Change-Id: Idb63cb37f6e1cc467106ea3ee99727824a4b1529
Closes-Bug: #1786472
diff --git a/neutron_tempest_plugin/scenario/test_mtu.py b/neutron_tempest_plugin/scenario/test_mtu.py
index 0e3afe9..dbfde9b 100644
--- a/neutron_tempest_plugin/scenario/test_mtu.py
+++ b/neutron_tempest_plugin/scenario/test_mtu.py
@@ -19,6 +19,7 @@
from tempest.common import waiters
from tempest.lib.common.utils import data_utils
from tempest.lib import decorators
+import testtools
from neutron_tempest_plugin.common import ssh
from neutron_tempest_plugin import config
@@ -118,6 +119,9 @@
self.keypair['private_key'])
return server_ssh_client1, fip1, server_ssh_client2, fip2
+ @testtools.skipUnless(
+ CONF.neutron_plugin_options.image_is_advanced,
+ "Advanced image is required to run this test.")
@decorators.idempotent_id('3d73ec1a-2ec6-45a9-b0f8-04a273d9d344')
def test_connectivity_min_max_mtu(self):
server_ssh_client, _, _, fip2 = self._create_setup()
@@ -207,6 +211,9 @@
self.keypair['private_key'])
return server_ssh_client1, fip1, server_ssh_client2, fip2
+ @testtools.skipUnless(
+ CONF.neutron_plugin_options.image_is_advanced,
+ "Advanced image is required to run this test.")
@decorators.idempotent_id('bc470200-d8f4-4f07-b294-1b4cbaaa35b9')
def test_connectivity_min_max_mtu(self):
server_ssh_client, _, _, fip2 = self._create_setup()