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
Titouan Soulard
slapos.core
Commits
65da9b8c
Commit
65da9b8c
authored
Sep 11, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_crm: update tests
parent
eeacf205
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/Alarm_stopInstanceTreeFromRegularisationRequest.py
...os_crm/Alarm_stopInstanceTreeFromRegularisationRequest.py
+2
-2
master/bt5/slapos_crm/TestTemplateItem/portal_components/test.erp5.testSlapOSCRMAlarm.py
...ateItem/portal_components/test.erp5.testSlapOSCRMAlarm.py
+7
-5
No files found.
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/Alarm_stopInstanceTreeFromRegularisationRequest.py
View file @
65da9b8c
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
sub_tag
=
"RegularisationRequest_stopInstanceTreeList"
sub_tag
=
"RegularisationRequest_stopInstanceTreeList"
portal
.
portal_catalog
.
searchAndActivate
(
portal
.
portal_catalog
.
searchAndActivate
(
portal_type
=
"Regularisation Request"
,
portal_type
=
"Regularisation Request"
,
simulation_state
=
[
"suspended"
],
simulation_state
=
[
"suspended"
],
default_resource
_uid
=
[
resource_
_uid
=
[
portal
.
service_module
.
slapos_crm_stop_acknowledgement
.
getUid
(),
portal
.
service_module
.
slapos_crm_stop_acknowledgement
.
getUid
(),
portal
.
service_module
.
slapos_crm_delete_reminder
.
getUid
(),
portal
.
service_module
.
slapos_crm_delete_reminder
.
getUid
(),
portal
.
service_module
.
slapos_crm_delete_acknowledgement
.
getUid
(),
portal
.
service_module
.
slapos_crm_delete_acknowledgement
.
getUid
(),
...
...
master/bt5/slapos_crm/TestTemplateItem/portal_components/test.erp5.testSlapOSCRMAlarm.py
View file @
65da9b8c
...
@@ -401,7 +401,10 @@ class TestSlapOSCrmStopInstanceTree(SlapOSTestCaseMixinWithAbort):
...
@@ -401,7 +401,10 @@ class TestSlapOSCrmStopInstanceTree(SlapOSTestCaseMixinWithAbort):
reference
=
"TESTREGREQ-%s"
%
new_id
,
reference
=
"TESTREGREQ-%s"
%
new_id
,
)
)
def
test_stopInstanceTree_matching_regularisation_request
(
self
):
#################################################################
# slapos_crm_trigger_delete_reminder_escalation
#################################################################
def
test_RegularisationRequest_stopInstanceTreeList_alarm_matchingRegularisationRequest
(
self
):
ticket
=
self
.
createRegularisationRequest
()
ticket
=
self
.
createRegularisationRequest
()
ticket
.
edit
(
resource
=
'service_module/slapos_crm_delete_reminder'
)
ticket
.
edit
(
resource
=
'service_module/slapos_crm_delete_reminder'
)
ticket
.
validate
()
ticket
.
validate
()
...
@@ -412,7 +415,7 @@ class TestSlapOSCrmStopInstanceTree(SlapOSTestCaseMixinWithAbort):
...
@@ -412,7 +415,7 @@ class TestSlapOSCrmStopInstanceTree(SlapOSTestCaseMixinWithAbort):
slapos_crm_stop_instance_tree
slapos_crm_stop_instance_tree
self
.
_test_alarm
(
alarm
,
ticket
,
"RegularisationRequest_stopInstanceTreeList"
)
self
.
_test_alarm
(
alarm
,
ticket
,
"RegularisationRequest_stopInstanceTreeList"
)
def
test_
stopInstanceTree_matching_regularisation_request_
2
(
self
):
def
test_
RegularisationRequest_stopInstanceTreeList_alarm_matchingRegularisationRequest
2
(
self
):
ticket
=
self
.
createRegularisationRequest
()
ticket
=
self
.
createRegularisationRequest
()
ticket
.
edit
(
resource
=
'service_module/slapos_crm_stop_acknowledgement'
)
ticket
.
edit
(
resource
=
'service_module/slapos_crm_stop_acknowledgement'
)
ticket
.
validate
()
ticket
.
validate
()
...
@@ -423,7 +426,7 @@ class TestSlapOSCrmStopInstanceTree(SlapOSTestCaseMixinWithAbort):
...
@@ -423,7 +426,7 @@ class TestSlapOSCrmStopInstanceTree(SlapOSTestCaseMixinWithAbort):
slapos_crm_stop_instance_tree
slapos_crm_stop_instance_tree
self
.
_test_alarm
(
alarm
,
ticket
,
"RegularisationRequest_stopInstanceTreeList"
)
self
.
_test_alarm
(
alarm
,
ticket
,
"RegularisationRequest_stopInstanceTreeList"
)
def
test_
stopInstanceTree_not_s
uspended
(
self
):
def
test_
RegularisationRequest_stopInstanceTreeList_alarm_notS
uspended
(
self
):
ticket
=
self
.
createRegularisationRequest
()
ticket
=
self
.
createRegularisationRequest
()
ticket
.
edit
(
resource
=
'service_module/slapos_crm_stop_acknowledgement'
)
ticket
.
edit
(
resource
=
'service_module/slapos_crm_stop_acknowledgement'
)
ticket
.
validate
()
ticket
.
validate
()
...
@@ -433,8 +436,7 @@ class TestSlapOSCrmStopInstanceTree(SlapOSTestCaseMixinWithAbort):
...
@@ -433,8 +436,7 @@ class TestSlapOSCrmStopInstanceTree(SlapOSTestCaseMixinWithAbort):
slapos_crm_stop_instance_tree
slapos_crm_stop_instance_tree
self
.
_test_alarm_not_visited
(
alarm
,
ticket
,
"RegularisationRequest_stopInstanceTreeList"
)
self
.
_test_alarm_not_visited
(
alarm
,
ticket
,
"RegularisationRequest_stopInstanceTreeList"
)
def
test_RegularisationRequest_stopInstanceTreeList_alarm_otherResource
(
self
):
def
test_stopInstanceTree_other_resource
(
self
):
ticket
=
self
.
createRegularisationRequest
()
ticket
=
self
.
createRegularisationRequest
()
ticket
.
edit
(
resource
=
'service_module/slapos_acknowledgement'
)
ticket
.
edit
(
resource
=
'service_module/slapos_acknowledgement'
)
ticket
.
validate
()
ticket
.
validate
()
...
...
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