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
This commit is contained in:
Matt Riedemann
2013-08-06 18:11:15 -07:00
parent 843bd00bd7
commit 6e3454465e

View File

@@ -123,6 +123,8 @@ class SecurityGroupsTestJSON(base.BaseComputeTest):
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 @@ class SecurityGroupsTestJSON(base.BaseComputeTest):
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