File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments