CLOUDSTACK-3900: Remove the offering that is deleted before cleanup

One of the VPC offerings (4) is deleted in the test before moving into
teardown. This offering should be removed from cleanup.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit d66edb5e2bc7d0396709ffcc35dfc61d563f307a)
This commit is contained in:
Prasanna Santhanam 2013-07-29 15:55:39 +05:30
parent eae874918d
commit 098c2db4b7

View File

@ -303,7 +303,6 @@ class TestVPCOffering(cloudstackTestCase):
) )
# Enable Network offering # Enable Network offering
self.network_offering.update(self.apiclient, state='Enabled') self.network_offering.update(self.apiclient, state='Enabled')
self.cleanup.append(self.network_offering)
gateway = vpc.cidr.split('/')[0] gateway = vpc.cidr.split('/')[0]
# Split the cidr to retrieve gateway # Split the cidr to retrieve gateway
@ -1006,7 +1005,7 @@ class TestVPCOffering(cloudstackTestCase):
) )
return return
@attr(tags=["advanced", "intervlan"]) @attr(tags=["advanced", "intervlan", "needle"])
def test_08_list_vpc_off(self): def test_08_list_vpc_off(self):
"""Test list VPC offering""" """Test list VPC offering"""
@ -1061,7 +1060,6 @@ class TestVPCOffering(cloudstackTestCase):
self.apiclient, self.apiclient,
self.services["vpc_offering"] self.services["vpc_offering"]
) )
self.cleanup.append(vpc_off_4)
self.debug("Enabling the VPC offering created") self.debug("Enabling the VPC offering created")
vpc_off_4.update(self.apiclient, state='Enabled') vpc_off_4.update(self.apiclient, state='Enabled')