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
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
599f3e75
Commit
599f3e75
authored
Dec 28, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cover new alarm checks
parent
8e3647c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
...ct/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
+18
-4
No files found.
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
View file @
599f3e75
...
...
@@ -585,6 +585,14 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
self
.
assertEqual
(
'confirmed'
,
payment_transaction
.
getSimulationState
())
self
.
assertEqual
(
'solved'
,
payment_transaction
.
getCausalityState
())
def
stepInvoiceSetStartDatePreviousMonth
(
self
,
sequence
,
**
kw
):
invoice
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'invoice_uid'
])
invoice
.
setStartDate
(
getClosestDate
(
target_date
=
DateTime
())
-
1
)
def
stepTriggerStopInvoiceAlarm
(
self
,
sequence
,
**
kw
):
self
.
portal
.
portal_alarms
.
stop_planned_sale_invoice_transaction
.
activeSense
()
def
test_OpenOrder_sale_packing_list
(
self
):
"""
Check that sale_packing_list is generated properly from simulation
...
...
@@ -616,6 +624,11 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
CheckHostingSubscriptionStoppedDocumentCoverage
# proff that alarm will ignore this month invoices
TriggerStopInvoiceAlarm
Tic
CheckHostingSubscriptionStoppedDocumentCoverage
# Confirm current invoice and stop next delivery. After triggering build
# new planned invoice shall be available.
...
...
@@ -644,13 +657,14 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
CheckHostingSubscriptionStoppedInvoiceDocumentCoverage
# P
ayment should cover both invoices
# P
roof that alarm is capable to stop previous month invoice
SelectPlannedInvoice
ConfirmInvoice
StartInvoice
StopInvoice
InvoiceSetStartDatePreviousMonth
Tic
TriggerStopInvoiceAlarm
Tic
# Payment should cover both invoices
TriggerBuild
Tic
...
...
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