From 6e3454465e343922dd4c977c1e4fd84f257f5650 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Tue, 6 Aug 2013 18:11:15 -0700 Subject: [PATCH] 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 --- tempest/api/compute/security_groups/test_security_groups.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tempest/api/compute/security_groups/test_security_groups.py b/tempest/api/compute/security_groups/test_security_groups.py index 697a83911b..5bd1e7aa87 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 @@ 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