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
Łukasz Nowak
slapos.core
Commits
93f2fcb9
Commit
93f2fcb9
authored
Aug 18, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio_ui_test: Validate Notification Messages
parent
c1e24e2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
master/bt5/slapos_jio_ui_test/SkinTemplateItem/portal_skins/slapos_ui_test/ERP5Site_initSlapOSUITest.py
.../portal_skins/slapos_ui_test/ERP5Site_initSlapOSUITest.py
+14
-0
No files found.
master/bt5/slapos_jio_ui_test/SkinTemplateItem/portal_skins/slapos_ui_test/ERP5Site_initSlapOSUITest.py
View file @
93f2fcb9
...
...
@@ -87,4 +87,18 @@ kw = {'portal_type': ('Authentication Event', 'Passoword Event')}
for
authentication_event
in
portal
.
portal_catalog
(
**
kw
):
portal
.
system_event_module
.
manage_delObjects
(
ids
=
[
authentication_event
.
getId
()])
notification_message_to_enable
=
[
'slapos-upgrade-instance-tree.notification'
,
'slapos-upgrade-delivered-instance-tree.notification'
,
'slapos-upgrade-compute-node.notification'
,
'slapos-upgrade-delivered-compute-node.notification'
,
]
for
reference
in
notification_message_to_enable
:
search_kw
=
dict
(
portal_type
=
'Notification Message'
,
reference
=
reference
)
if
not
len
(
portal
.
portal_catalog
(
validation_state
=
'validated'
,
**
search_kw
)):
portal
.
portal_catalog
.
getResultValue
(
validation_state
=
'draft'
,
**
search_kw
).
validate
()
return
"Done."
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