Commit 74b6ee2b authored by Romain Courteaud's avatar Romain Courteaud

slapos_crm: fixup slapos_crm_check_instance_in_error test

parent bd04895b
...@@ -673,14 +673,14 @@ class TestSlapOSCrmMonitoringCheckInstanceInError(SlapOSTestCaseMixinWithAbort): ...@@ -673,14 +673,14 @@ class TestSlapOSCrmMonitoringCheckInstanceInError(SlapOSTestCaseMixinWithAbort):
instance_tree.requestStart(**kw) instance_tree.requestStart(**kw)
instance_tree.requestInstance(**kw) instance_tree.requestInstance(**kw)
def test_alarm_check_instance_in_error_validated_instance_tree(self): def test_checkInstanceInError_validated_instance_tree(self):
host_sub = self._makeInstanceTree() host_sub = self._makeInstanceTree()
self.tic() self.tic()
alarm = self.portal.portal_alarms.\ alarm = self.portal.portal_alarms.\
slapos_crm_check_instance_in_error slapos_crm_check_instance_in_error
self._test_alarm(alarm, host_sub, "InstanceTree_checkSoftwareInstanceState") self._test_alarm(alarm, host_sub, "InstanceTree_checkSoftwareInstanceState")
def test_alarm_check_instance_in_error_validated_instance_tree_with_monitor_disabled(self): def test_checkInstanceInError_validated_instance_tree_with_monitor_disabled(self):
host_sub = self._makeInstanceTree() host_sub = self._makeInstanceTree()
host_sub.edit(monitor_scope="disabled") host_sub.edit(monitor_scope="disabled")
self.tic() self.tic()
...@@ -693,7 +693,7 @@ class TestSlapOSCrmMonitoringCheckInstanceInError(SlapOSTestCaseMixinWithAbort): ...@@ -693,7 +693,7 @@ class TestSlapOSCrmMonitoringCheckInstanceInError(SlapOSTestCaseMixinWithAbort):
self.assertEqual('Visited by InstanceTree_checkSoftwareInstanceState', self.assertEqual('Visited by InstanceTree_checkSoftwareInstanceState',
host_sub.workflow_history['edit_workflow'][-1]['comment']) host_sub.workflow_history['edit_workflow'][-1]['comment'])
def test_alarm_check_instance_in_error_archived_instance_tree(self): def test_checkInstanceInError_archived_instance_tree(self):
host_sub = self._makeInstanceTree() host_sub = self._makeInstanceTree()
host_sub.archive() host_sub.archive()
self.tic() self.tic()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment