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
4ec9b021
Commit
4ec9b021
authored
Mar 28, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_crm: test: stabilize dict serialization
parent
744ee9ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
master/bt5/slapos_crm/TestTemplateItem/portal_components/test.erp5.testSlapOSCRMAlarm.py
...ateItem/portal_components/test.erp5.testSlapOSCRMAlarm.py
+12
-8
No files found.
master/bt5/slapos_crm/TestTemplateItem/portal_components/test.erp5.testSlapOSCRMAlarm.py
View file @
4ec9b021
...
...
@@ -506,10 +506,11 @@ class TestSlapOSCrmTriggerEscalationOnAcknowledgmentRegularisationRequest(SlapOS
'next_service_relative_url, title, text_content, comment, '
\
'notification_message=None, substitution_method_parameter_dict=None, '
\
'REQUEST=None'
,
'import json
\
n
'
\
'context.portal_workflow.doActionFor('
\
'context, action="edit_action", '
\
'comment="Visited by RegularisationRequest_checkToTriggerNextEscalationStep '
\
'%s %s %s %s %s %s %s %s" % (delay_period_in_days, current_service_relative_url, next_service_relative_url, title, text_content, comment, notification_message,
substitution_method_parameter_dict
))'
)
'%s %s %s %s %s %s %s %s" % (delay_period_in_days, current_service_relative_url, next_service_relative_url, title, text_content, comment, notification_message,
json.dumps(substitution_method_parameter_dict, sort_keys=True)
))'
)
def
test_RegularisationRequest_triggerAcknowledgmentEscalation_script_matchingEvent
(
self
):
ticket
=
self
.
createRegularisationRequest
()
ticket
.
RegularisationRequest_triggerAcknowledgmentEscalation
()
...
...
@@ -530,7 +531,7 @@ The slapos team
"""
%
self
.
portal
.
portal_preferences
.
getPreferredSlaposWebSiteUrl
(),
'Stopping reminder.'
,
'slapos-crm.acknowledgment.escalation'
,
"{'user_name': None, 'days': 15}"
),
'{"days": 15, "user_name": null}'
),
ticket
.
workflow_history
[
'edit_workflow'
][
-
1
][
'comment'
])
...
...
@@ -593,10 +594,11 @@ class TestSlapOSCrmTriggerEscalationOnStopReminderRegularisationRequest(SlapOSTe
'next_service_relative_url, title, text_content, comment, '
\
'notification_message=None, substitution_method_parameter_dict=None, '
\
'REQUEST=None'
,
'import json
\
n
'
\
'context.portal_workflow.doActionFor('
\
'context, action="edit_action", '
\
'comment="Visited by RegularisationRequest_checkToTriggerNextEscalationStep '
\
'%s %s %s %s %s %s %s %s" % (delay_period_in_days, current_service_relative_url, next_service_relative_url, title, text_content, comment, notification_message,
substitution_method_parameter_dict
))'
)
'%s %s %s %s %s %s %s %s" % (delay_period_in_days, current_service_relative_url, next_service_relative_url, title, text_content, comment, notification_message,
json.dumps(substitution_method_parameter_dict, sort_keys=True)
))'
)
def
test_RegularisationRequest_triggerStopReminderEscalation_script_matchingEvent
(
self
):
ticket
=
self
.
createRegularisationRequest
()
ticket
.
RegularisationRequest_triggerStopReminderEscalation
()
...
...
@@ -617,7 +619,7 @@ The slapos team
"""
%
self
.
portal
.
portal_preferences
.
getPreferredSlaposWebSiteUrl
(),
'Stopping acknowledgment.'
,
'slapos-crm.stop.reminder.escalation'
,
"{'user_name': None, 'days': 7}"
),
'{"days": 7, "user_name": null}'
),
ticket
.
workflow_history
[
'edit_workflow'
][
-
1
][
'comment'
])
...
...
@@ -680,10 +682,11 @@ class TestSlapOSCrmTriggerEscalationOnStopAcknowledgmentRegularisationRequest(Sl
'next_service_relative_url, title, text_content, comment, '
\
'notification_message=None, substitution_method_parameter_dict=None, '
\
'REQUEST=None'
,
'import json
\
n
'
\
'context.portal_workflow.doActionFor('
\
'context, action="edit_action", '
\
'comment="Visited by RegularisationRequest_checkToTriggerNextEscalationStep '
\
'%s %s %s %s %s %s %s %s" % (delay_period_in_days, current_service_relative_url, next_service_relative_url, title, text_content, comment, notification_message,
substitution_method_parameter_dict
))'
)
'%s %s %s %s %s %s %s %s" % (delay_period_in_days, current_service_relative_url, next_service_relative_url, title, text_content, comment, notification_message,
json.dumps(substitution_method_parameter_dict, sort_keys=True)
))'
)
def
test_RegularisationRequest_triggerStopAcknowledgmentEscalation_script_matchingEvent
(
self
):
ticket
=
self
.
createRegularisationRequest
()
ticket
.
RegularisationRequest_triggerStopAcknowledgmentEscalation
()
...
...
@@ -704,7 +707,7 @@ The slapos team
"""
%
self
.
portal
.
portal_preferences
.
getPreferredSlaposWebSiteUrl
(),
'Deleting reminder.'
,
'slapos-crm.stop.acknowledgment.escalation'
,
"{'user_name': None, 'days': 7}"
),
'{"days": 7, "user_name": null}'
),
ticket
.
workflow_history
[
'edit_workflow'
][
-
1
][
'comment'
])
...
...
@@ -764,10 +767,11 @@ class TestSlapOSCrmTriggerEscalationOnDeleteReminderRegularisationRequest(SlapOS
'next_service_relative_url, title, text_content, comment, '
\
'notification_message=None, substitution_method_parameter_dict=None, '
\
'REQUEST=None'
,
'import json
\
n
'
\
'context.portal_workflow.doActionFor('
\
'context, action="edit_action", '
\
'comment="Visited by RegularisationRequest_checkToTriggerNextEscalationStep '
\
'%s %s %s %s %s %s %s %s" % (delay_period_in_days, current_service_relative_url, next_service_relative_url, title, text_content, comment, notification_message,
substitution_method_parameter_dict
))'
)
'%s %s %s %s %s %s %s %s" % (delay_period_in_days, current_service_relative_url, next_service_relative_url, title, text_content, comment, notification_message,
json.dumps(substitution_method_parameter_dict, sort_keys=True)
))'
)
def
test_RegularisationRequest_triggerDeleteReminderEscalation_script_matchingEvent
(
self
):
ticket
=
self
.
createRegularisationRequest
()
ticket
.
RegularisationRequest_triggerDeleteReminderEscalation
()
...
...
@@ -788,7 +792,7 @@ The slapos team
"""
%
self
.
portal
.
portal_preferences
.
getPreferredSlaposWebSiteUrl
(),
'Deleting acknowledgment.'
,
'slapos-crm.delete.reminder.escalation'
,
"{'user_name': None, 'days': 10}"
),
'{"days": 10, "user_name": null}'
),
ticket
.
workflow_history
[
'edit_workflow'
][
-
1
][
'comment'
])
...
...
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