mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
remove the wait during cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
d52d2c8505
commit
e90ef2b4b5
@ -930,7 +930,6 @@ class TesttemplateHierarchy(cloudstackTestCase):
|
|||||||
# 2. Verify template is also visible for domain_2
|
# 2. Verify template is also visible for domain_2
|
||||||
|
|
||||||
# Sleep to ensure that template state is reflected across
|
# Sleep to ensure that template state is reflected across
|
||||||
time.sleep(self.services["sleep"])
|
|
||||||
|
|
||||||
templates = list_templates(
|
templates = list_templates(
|
||||||
self.apiclient,
|
self.apiclient,
|
||||||
@ -1169,12 +1168,6 @@ class TestUserDetails(cloudstackTestCase):
|
|||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
try:
|
try:
|
||||||
interval = list_configurations(
|
|
||||||
self.apiclient,
|
|
||||||
name='account.cleanup.interval'
|
|
||||||
)
|
|
||||||
# Sleep to ensure that all resources are deleted
|
|
||||||
time.sleep(int(interval[0].value) * 2)
|
|
||||||
#Clean up, terminate the created network offerings
|
#Clean up, terminate the created network offerings
|
||||||
cleanup_resources(self.apiclient, self.cleanup)
|
cleanup_resources(self.apiclient, self.cleanup)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@ -1475,12 +1468,6 @@ class TestUserLogin(cloudstackTestCase):
|
|||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
try:
|
try:
|
||||||
interval = list_configurations(
|
|
||||||
self.apiclient,
|
|
||||||
name='account.cleanup.interval'
|
|
||||||
)
|
|
||||||
# Sleep to ensure that all resources are deleted
|
|
||||||
time.sleep(int(interval[0].value) * 2)
|
|
||||||
#Clean up, terminate the created network offerings
|
#Clean up, terminate the created network offerings
|
||||||
cleanup_resources(self.apiclient, self.cleanup)
|
cleanup_resources(self.apiclient, self.cleanup)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@ -1651,19 +1638,13 @@ class TestDomainForceRemove(cloudstackTestCase):
|
|||||||
try:
|
try:
|
||||||
#Clean up, terminate the created resources
|
#Clean up, terminate the created resources
|
||||||
cleanup_resources(self.apiclient, self.cleanup)
|
cleanup_resources(self.apiclient, self.cleanup)
|
||||||
interval = list_configurations(
|
|
||||||
self.apiclient,
|
|
||||||
name='account.cleanup.interval'
|
|
||||||
)
|
|
||||||
# Sleep to ensure that all resources are deleted
|
|
||||||
time.sleep(int(interval[0].value) * 2)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise Exception("Warning: Exception during cleanup : %s" % e)
|
raise Exception("Warning: Exception during cleanup : %s" % e)
|
||||||
return
|
return
|
||||||
|
|
||||||
@attr(tags=["domains", "advanced", "advancedns", "simulator"])
|
@attr(tags=["domains", "advanced", "advancedns", "simulator"])
|
||||||
def test_forceDeleteDomain(self):
|
def test_forceDeleteDomain(self):
|
||||||
""" Test delete domain with force option"""
|
""" Test delete domain without force option"""
|
||||||
|
|
||||||
# Steps for validations
|
# Steps for validations
|
||||||
# 1. create a domain DOM
|
# 1. create a domain DOM
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user