Skip to content

Commit

Permalink
cleanup unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanHoogland committed Nov 14, 2023
1 parent 02097ae commit 9402195
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/integration/smoke/test_hostha_kvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def setUp(self):
self.apiclient,
self.services["service_offerings"]["hasmall"]
)
self.cleanup = [self.service_offering]

self.template = get_test_template(
self.apiclient,
Expand All @@ -87,7 +88,6 @@ def setUp(self):
)

self.configureAndDisableHostHa()
self.cleanup = [self.service_offering]

def updateConfiguration(self, name, value):
cmd = updateConfiguration.updateConfigurationCmd()
Expand Down Expand Up @@ -116,9 +116,10 @@ def tearDown(self):
self.dbclient.execute("delete from mshost where runid=%s" % self.getFakeMsRunId())
self.dbclient.execute("delete from cluster_details where name='outOfBandManagementEnabled'")
self.dbclient.execute("delete from data_center_details where name='outOfBandManagementEnabled'")
cleanup_resources(self.apiclient, self.cleanup)
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
finally:
super(TestHAKVM, self).tearDown()

def getHostHaEnableCmd(self):
cmd = enableHAForHost.enableHAForHostCmd()
Expand Down Expand Up @@ -292,7 +293,6 @@ def test_hostha_enable_ha_when_host_in_maintenance(self):
# Enable HA
self.configureAndEnableHostHa()


# Prepare for maintenance Host
self.setHostToMaintanance(self.host.id)

Expand Down Expand Up @@ -341,7 +341,6 @@ def test_remove_ha_provider_not_possible(self):
"""
self.logger.debug("Starting test_remove_ha_provider_not_possible")


# Enable HA
self.apiclient.configureHAForHost(self.getHostHaConfigCmd())
cmd = self.getHostHaEnableCmd()
Expand Down Expand Up @@ -393,7 +392,6 @@ def test_hostha_kvm_host_degraded(self):
self.startAgent()
self.waitUntilHostInState("Available")


@attr(tags=["devcloud", "advanced", "advancedns", "smoke", "basic", "sg"], required_hardware="true")
def test_hostha_kvm_host_recovering(self):
"""
Expand Down Expand Up @@ -581,7 +579,6 @@ def getIpmiServerIp(self):
return s.getsockname()[0]

def get_non_configured_ha_host(self):

response = list_hosts(
self.apiclient,
type='Routing'
Expand Down

0 comments on commit 9402195

Please sign in to comment.