Commit d93963fd authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_subscription_request/testSlapOSSubscriptionAlarm: Add Test for started alarms

parent 6d371f48
......@@ -81,4 +81,19 @@ class TestSlapOSSubscriptionRequestProcessAlarm(SlapOSTestCaseMixin):
self._test_alarm(
alarm, subscription_request, script_name)
def test_alarm_slapos_subscription_request_process_started(self):
script_name = "SubscriptionRequest_processStarted"
alarm = self.portal.portal_alarms.slapos_subscription_request_process_started
subscription_request = self.portal.subscription_request_module.newContent(
portal_type='Subscription Request',
title="Test Subscription Request %s" % self.new_id,
reference="TESTSUBSCRIPTIONREQUEST-%s" % self.new_id
)
subscription_request.plan()
subscription_request.order()
subscription_request.confirm()
subscription_request.start()
self._test_alarm(
alarm, subscription_request, script_name)
......@@ -100,11 +100,13 @@
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
<global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle>
<pickle>
<tuple>
<none/>
<dictionary>
<item>
<key> <string>_log</string> </key>
<value>
<list>
<dictionary>
<item>
......@@ -117,8 +119,9 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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