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): ...@@ -81,4 +81,19 @@ class TestSlapOSSubscriptionRequestProcessAlarm(SlapOSTestCaseMixin):
self._test_alarm( self._test_alarm(
alarm, subscription_request, script_name) 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 @@ ...@@ -100,11 +100,13 @@
</record> </record>
<record id="4" aka="AAAAAAAAAAQ="> <record id="4" aka="AAAAAAAAAAQ=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
<pickle> <pickle>
<tuple> <dictionary>
<none/> <item>
<key> <string>_log</string> </key>
<value>
<list> <list>
<dictionary> <dictionary>
<item> <item>
...@@ -117,8 +119,9 @@ ...@@ -117,8 +119,9 @@
</item> </item>
</dictionary> </dictionary>
</list> </list>
<none/> </value>
</tuple> </item>
</dictionary>
</pickle> </pickle>
</record> </record>
</ZopeData> </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