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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
ddb2bd35
Commit
ddb2bd35
authored
Feb 20, 2024
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_crm: test: reduce number of alarm triggered
parent
1875aabc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
master/bt5/slapos_crm/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5CRMScenario.py
.../portal_components/test.erp5.testSlapOSERP5CRMScenario.py
+9
-3
No files found.
master/bt5/slapos_crm/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5CRMScenario.py
View file @
ddb2bd35
...
...
@@ -17,7 +17,6 @@ class TestSlapOSCRMScenario(TestSlapOSVirtualMasterScenarioMixin):
Ensure services are destroyed, open order are archived, and
deposit is used to pay the invoice
"""
self
.
portal
.
testromain
()
creation_date
=
DateTime
(
'2020/05/19'
)
with
PinnedDateTime
(
self
,
creation_date
):
owner_person
,
currency
,
project
=
self
.
bootstrapAccountingTest
()
...
...
@@ -108,11 +107,17 @@ class TestSlapOSCRMScenario(TestSlapOSVirtualMasterScenarioMixin):
# Trigger regularisation request escalation
self
.
logout
()
self
.
login
()
for
date_offset
in
range
(
33
,
64
,
1
):
for
date_offset
in
range
(
33
,
70
,
1
):
# Trigger the alarm everyday, to not depend too much
# of the alarm crm delay current implementation
with
PinnedDateTime
(
self
,
creation_date
+
date_offset
):
self
.
stepCallAlarmList
()
for
alarm_id
in
[
'slapos_crm_trigger_acknowledgment_escalation'
,
'slapos_crm_trigger_delete_reminder_escalation'
,
'update_open_order_simulation'
,
'slapos_stop_confirmed_aggregated_sale_invoice_transaction'
]:
self
.
portal
.
portal_alarms
[
alarm_id
].
activeSense
()
self
.
tic
()
##################################################
...
...
@@ -133,6 +138,7 @@ class TestSlapOSCRMScenario(TestSlapOSVirtualMasterScenarioMixin):
self
.
assertEquals
(
open_order
.
getValidationState
(),
'archived'
)
self
.
assertNotEquals
(
open_order
.
getStopDate
(),
open_order
.
getStartDate
())
self
.
assertNotEquals
(
open_order
.
getStopDate
(),
None
)
self
.
assertEquals
(
open_order
.
getStopDate
(),
DateTime
(
'2020/07/17'
))
for
line
in
open_order
.
contentValues
():
for
cell
in
line
.
contentValues
():
...
...
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