Skip to content

Commit 02097ae

Browse files
committed
_cleanup appending
1 parent b48e6b9 commit 02097ae

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/integration/smoke/test_vm_deployment_planner.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,23 @@ def setUpClass(cls):
4242
cls.zone = get_zone(cls.apiclient, testClient.getZoneForTests())
4343
cls.hypervisor = testClient.getHypervisorInfo()
4444
cls.services['mode'] = cls.zone.networktype
45-
4645
cls.services["virtual_machine"]["zoneid"] = cls.zone.id
46+
cls._cleanup = []
4747

4848
# Create an account, network, VM and IP addresses
4949
cls.account = Account.create(
5050
cls.apiclient,
5151
cls.services["account"],
5252
domainid=cls.domain.id
5353
)
54+
cls._cleanup.append(cls.account)
55+
5456
cls.service_offering = ServiceOffering.create(
5557
cls.apiclient,
5658
cls.services["service_offerings"]["tiny"]
5759
)
60+
cls._cleanup.append(cls.service_offering)
5861

59-
cls._cleanup = [
60-
cls.account,
61-
cls.service_offering
62-
]
6362

6463
@classmethod
6564
def tearDownClass(cls):

0 commit comments

Comments
 (0)