Commit 6ac39385 authored by Romain Courteaud's avatar Romain Courteaud

slapos_crm: fixup slapos_crm_update_support_request_state tests

parent 74b6ee2b
...@@ -737,7 +737,7 @@ class TestSlaposCrmUpdateSupportRequestState(SlapOSTestCaseMixinWithAbort): ...@@ -737,7 +737,7 @@ class TestSlaposCrmUpdateSupportRequestState(SlapOSTestCaseMixinWithAbort):
return instance_tree return instance_tree
def test_alarm_update_support_request_state(self): def test_updateSupportRequestState_monitoring(self):
support_request = self._makeSupportRequest() support_request = self._makeSupportRequest()
support_request.setResource("service_module/slapos_crm_monitoring") support_request.setResource("service_module/slapos_crm_monitoring")
hs = self._makeInstanceTree() hs = self._makeInstanceTree()
...@@ -747,6 +747,15 @@ class TestSlaposCrmUpdateSupportRequestState(SlapOSTestCaseMixinWithAbort): ...@@ -747,6 +747,15 @@ class TestSlaposCrmUpdateSupportRequestState(SlapOSTestCaseMixinWithAbort):
slapos_crm_update_support_request_state slapos_crm_update_support_request_state
self._test_alarm(alarm, support_request, "SupportRequest_updateMonitoringState") self._test_alarm(alarm, support_request, "SupportRequest_updateMonitoringState")
def test_updateSupportRequestState_not_monitoring(self):
support_request = self._makeSupportRequest()
hs = self._makeInstanceTree()
support_request.setAggregateValue(hs)
self.tic()
alarm = self.portal.portal_alarms.\
slapos_crm_update_support_request_state
self._test_alarm_not_visited(alarm, support_request, "SupportRequest_updateMonitoringState")
class TestSlaposCrmSendPendingTicket_reminder(SlapOSTestCaseMixinWithAbort): class TestSlaposCrmSendPendingTicket_reminder(SlapOSTestCaseMixinWithAbort):
......
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