Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.core
Commits
268ea783
Commit
268ea783
authored
Feb 08, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate to new alarms.
parent
72b6dfbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
...ct/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
+16
-4
No files found.
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
View file @
268ea783
...
@@ -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
stepTrigger
Stop
InvoiceAlarm
(
self
,
sequence
,
**
kw
):
def
stepTrigger
ConfirmPlanned
InvoiceAlarm
(
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment