Skip list_vifs test with Quantum
Currently Quantum doesn't support all the features provided
by nova-network. Thus some tests related to features not
available in Quantum API must be skipped.
Fix Bug #1183436
Change-Id: I02ece3c49c9852197c7fb22c5025920baf60d98d
diff --git a/tempest/api/compute/servers/test_virtual_interfaces.py b/tempest/api/compute/servers/test_virtual_interfaces.py
index 3119643..9073aeb 100644
--- a/tempest/api/compute/servers/test_virtual_interfaces.py
+++ b/tempest/api/compute/servers/test_virtual_interfaces.py
@@ -16,9 +16,11 @@
# under the License.
import netaddr
+import testtools
from tempest.api.compute import base
from tempest.common.utils.data_utils import rand_name
+from tempest import config
from tempest import exceptions
from tempest.test import attr
@@ -26,6 +28,8 @@
class VirtualInterfacesTestJSON(base.BaseComputeTest):
_interface = 'json'
+ CONF = config.TempestConfig()
+
@classmethod
def setUpClass(cls):
super(VirtualInterfacesTestJSON, cls).setUpClass()
@@ -33,6 +37,8 @@
resp, server = cls.create_server(wait_until='ACTIVE')
cls.server_id = server['id']
+ @testtools.skipIf(CONF.network.quantum_available, "This feature is not " +
+ "implemented by Quantum. See bug: #1183436")
@attr(type='gate')
def test_list_virtual_interfaces(self):
# Positive test:Should be able to GET the virtual interfaces list