Commit 268ea783 authored by Łukasz Nowak's avatar Łukasz Nowak

Migrate to new alarms.

parent 72b6dfbc
...@@ -589,11 +589,19 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin): ...@@ -589,11 +589,19 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
uid=sequence['invoice_uid']) uid=sequence['invoice_uid'])
invoice.setStartDate(getClosestDate(target_date=DateTime())-1) invoice.setStartDate(getClosestDate(target_date=DateTime())-1)
def stepTriggerStopInvoiceAlarm(self, sequence, **kw): def stepTriggerConfirmPlannedInvoiceAlarm(self, sequence, **kw):
sm = getSecurityManager() sm = getSecurityManager()
self.login() self.login()
try: try:
self.portal.portal_alarms.stop_planned_sale_invoice_transaction.activeSense() self.portal.portal_alarms.confirm_planned_sale_invoice_transaction.activeSense()
finally:
setSecurityManager(sm)
def stepTriggerStopConfirmedInvoiceAlarm(self, sequence, **kw):
sm = getSecurityManager()
self.login()
try:
self.portal.portal_alarms.stop_confirmed_sale_invoice_transaction.activeSense()
finally: finally:
setSecurityManager(sm) setSecurityManager(sm)
...@@ -629,7 +637,9 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin): ...@@ -629,7 +637,9 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
CheckHostingSubscriptionStoppedDocumentCoverage CheckHostingSubscriptionStoppedDocumentCoverage
# proff that alarm will ignore this month invoices # proff that alarm will ignore this month invoices
TriggerStopInvoiceAlarm TriggerConfirmPlannedInvoiceAlarm
Tic
TriggerStopConfirmedInvoiceAlarm
Tic Tic
CheckHostingSubscriptionStoppedDocumentCoverage CheckHostingSubscriptionStoppedDocumentCoverage
...@@ -665,7 +675,9 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin): ...@@ -665,7 +675,9 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
SelectPlannedInvoice SelectPlannedInvoice
InvoiceSetStartDatePreviousMonth InvoiceSetStartDatePreviousMonth
Tic Tic
TriggerStopInvoiceAlarm TriggerConfirmPlannedInvoiceAlarm
Tic
TriggerStopConfirmedInvoiceAlarm
Tic Tic
# Payment should cover both invoices # Payment should cover both invoices
......
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