Commit 6faa785f authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: (Test) Post a message dont re-open a Regularisation Request

parent 687c9774
Pipeline #38002 failed with stage
in 0 seconds
...@@ -255,16 +255,22 @@ class TestSlapOSCRMScenario(TestSlapOSVirtualMasterScenarioMixin): ...@@ -255,16 +255,22 @@ class TestSlapOSCRMScenario(TestSlapOSVirtualMasterScenarioMixin):
self.assertNotEqual(regularisation_request, None) self.assertNotEqual(regularisation_request, None)
self.assertEqual(regularisation_request.getSimulationState(), 'suspended') self.assertEqual(regularisation_request.getSimulationState(), 'suspended')
with PinnedDateTime(self, creation_date + 32.1): with PinnedDateTime(self, creation_date + 32.1):
self.login(owner_person.getUserId()) self.login(owner_person.getUserId())
# Ensure that posting a ticket dont re-open the ticket.
event = regularisation_request.Ticket_createProjectEvent( event = regularisation_request.Ticket_createProjectEvent(
'foo', 'incoming', 'Web Message', 'foo', 'incoming', 'Web Message',
regularisation_request.getResource(), regularisation_request.getResource(),
'bar', "text/plain" 'bar', "text/plain"
) )
self.tic() self.tic()
self.assertEqual(regularisation_request.getSimulationState(), 'validated') self.assertEqual(regularisation_request.getSimulationState(), 'suspended')
self.assertEqual(event.getSimulationState(), 'delivered') self.assertEqual(event.getSimulationState(), 'stopped')
self.logout()
self.login()
regularisation_request.validate()
################################################## ##################################################
# Trigger regularisation request escalation # Trigger regularisation request escalation
......
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