Skip secgroup invalid name/desc tests until bug 1161411 is fixed
There is an existing review which tries to deal with bug 1161411:
https://review.openstack.org/#/c/34559/
Until there is consensus on how to fix this, skip the compute tests if
neutron is available.
Change-Id: I41bd2232ad4e489daaa8de3902d7e158f3e577bf
diff --git a/tempest/api/compute/security_groups/test_security_groups.py b/tempest/api/compute/security_groups/test_security_groups.py
index 697a839..5bd1e7a 100644
--- a/tempest/api/compute/security_groups/test_security_groups.py
+++ b/tempest/api/compute/security_groups/test_security_groups.py
@@ -123,6 +123,8 @@
self.assertRaises(exceptions.NotFound, self.client.get_security_group,
non_exist_id)
+ @testtools.skipIf(config.TempestConfig().service_available.neutron,
+ "Skipped until the Bug #1161411 is resolved")
@attr(type=['negative', 'gate'])
def test_security_group_create_with_invalid_group_name(self):
# Negative test: Security Group should not be created with group name
@@ -141,6 +143,8 @@
self.client.create_security_group, s_name,
s_description)
+ @testtools.skipIf(config.TempestConfig().service_available.neutron,
+ "Skipped until the Bug #1161411 is resolved")
@attr(type=['negative', 'gate'])
def test_security_group_create_with_invalid_group_description(self):
# Negative test:Security Group should not be created with description