mirror of https://github.com/apache/cloudstack.git
Merge branch '4.9'
This commit is contained in:
commit
fcc8dcd5d7
|
|
@ -360,8 +360,8 @@ class TestSnapshotList(cloudstackTestCase):
|
|||
cls.service_offering,
|
||||
]
|
||||
except Exception as e:
|
||||
cls.domain_1.delete(cls.apiclient,cleanup="true")
|
||||
cls.domain_2.delete(cls.apiclient,cleanup="true")
|
||||
cls.domain_1.delete(cls.apiclient,cleanup="true")
|
||||
cleanup_resources(cls.apiclient, cls.cleanup)
|
||||
raise Exception("Failed to create the setup required to execute the test cases: %s" % e)
|
||||
|
||||
|
|
@ -370,10 +370,11 @@ class TestSnapshotList(cloudstackTestCase):
|
|||
cls.apiclient = super(TestSnapshotList, cls).getClsTestClient().getApiClient()
|
||||
cls.apiclient.connection.apiKey = cls.default_apikey
|
||||
cls.apiclient.connection.securityKey = cls.default_secretkey
|
||||
cls.domain_1.delete(cls.apiclient,cleanup="true")
|
||||
cls.domain_2.delete(cls.apiclient,cleanup="true")
|
||||
try:
|
||||
cls.domain_2.delete(cls.apiclient,cleanup="true")
|
||||
cls.domain_1.delete(cls.apiclient,cleanup="true")
|
||||
except: pass
|
||||
cleanup_resources(cls.apiclient, cls.cleanup)
|
||||
return
|
||||
|
||||
def setUp(cls):
|
||||
cls.apiclient = cls.testClient.getApiClient()
|
||||
|
|
|
|||
|
|
@ -333,8 +333,8 @@ class TestVMList(cloudstackTestCase):
|
|||
cls.service_offering,
|
||||
]
|
||||
except Exception as e:
|
||||
cls.domain_1.delete(cls.apiclient,cleanup="true")
|
||||
cls.domain_2.delete(cls.apiclient,cleanup="true")
|
||||
cls.domain_1.delete(cls.apiclient,cleanup="true")
|
||||
cleanup_resources(cls.apiclient, cls.cleanup)
|
||||
raise Exception("Failed to create the setup required to execute the test cases: %s" % e)
|
||||
|
||||
|
|
@ -343,10 +343,11 @@ class TestVMList(cloudstackTestCase):
|
|||
cls.apiclient = super(TestVMList, cls).getClsTestClient().getApiClient()
|
||||
cls.apiclient.connection.apiKey = cls.default_apikey
|
||||
cls.apiclient.connection.securityKey = cls.default_secretkey
|
||||
cls.domain_1.delete(cls.apiclient,cleanup="true")
|
||||
cls.domain_2.delete(cls.apiclient,cleanup="true")
|
||||
try:
|
||||
cls.domain_2.delete(cls.apiclient,cleanup="true")
|
||||
cls.domain_1.delete(cls.apiclient,cleanup="true")
|
||||
except: pass
|
||||
cleanup_resources(cls.apiclient, cls.cleanup)
|
||||
return
|
||||
|
||||
def setUp(cls):
|
||||
cls.apiclient = cls.testClient.getApiClient()
|
||||
|
|
|
|||
|
|
@ -345,8 +345,8 @@ class TestVolumeList(cloudstackTestCase):
|
|||
cls.service_offering,
|
||||
]
|
||||
except Exception as e:
|
||||
cls.domain_1.delete(cls.apiclient,cleanup="true")
|
||||
cls.domain_2.delete(cls.apiclient,cleanup="true")
|
||||
cls.domain_1.delete(cls.apiclient,cleanup="true")
|
||||
cleanup_resources(cls.apiclient, cls.cleanup)
|
||||
raise Exception("Failed to create the setup required to execute the test cases: %s" % e)
|
||||
|
||||
|
|
@ -358,9 +358,10 @@ class TestVolumeList(cloudstackTestCase):
|
|||
cls.apiclient.connection.apiKey = cls.default_apikey
|
||||
cls.apiclient.connection.securityKey = cls.default_secretkey
|
||||
cleanup_resources(cls.apiclient, cls.cleanup)
|
||||
cls.domain_1.delete(cls.apiclient,cleanup="true")
|
||||
cls.domain_2.delete(cls.apiclient,cleanup="true")
|
||||
return
|
||||
try:
|
||||
cls.domain_2.delete(cls.apiclient,cleanup="true")
|
||||
cls.domain_1.delete(cls.apiclient,cleanup="true")
|
||||
except: pass
|
||||
|
||||
def setUp(cls):
|
||||
cls.apiclient = cls.testClient.getApiClient()
|
||||
|
|
|
|||
Loading…
Reference in New Issue