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
Xiaowu Zhang
slapos.core
Commits
6425d6ff
Commit
6425d6ff
authored
Sep 26, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_crm: Test ComputeNode_getTicketRelatedList
parent
43d57bc8
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
301 additions
and
4 deletions
+301
-4
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/ComputeNode_getTicketRelatedList.py
...slapos_crm_monitoring/ComputeNode_getTicketRelatedList.py
+4
-3
master/bt5/slapos_crm/TestTemplateItem/portal_components/test.erp5.testSlapOSCRMSkins.py
...ateItem/portal_components/test.erp5.testSlapOSCRMSkins.py
+297
-1
No files found.
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/ComputeNode_getTicketRelatedList.py
View file @
6425d6ff
...
@@ -8,7 +8,8 @@ uid_list = [context.getUid()]
...
@@ -8,7 +8,8 @@ uid_list = [context.getUid()]
computer_partition_uid_list
=
[
computer_partition_uid_list
=
[
cp
.
getUid
()
for
cp
in
context
.
contentValues
(
portal_type
=
"Compute Partition"
)
if
cp
.
getSlapState
()
==
'busy'
]
cp
.
getUid
()
for
cp
in
context
.
contentValues
(
portal_type
=
"Compute Partition"
)
if
cp
.
getSlapState
()
==
'busy'
]
for
instance
in
portal
.
portal_catalog
(
if
computer_partition_uid_list
:
for
instance
in
portal
.
portal_catalog
(
portal_type
=
"Software Instance"
,
portal_type
=
"Software Instance"
,
select_dict
=
{
'specialise_uid'
:
None
},
select_dict
=
{
'specialise_uid'
:
None
},
specialise_portal_type
=
"Instance Tree"
,
specialise_portal_type
=
"Instance Tree"
,
...
...
master/bt5/slapos_crm/TestTemplateItem/portal_components/test.erp5.testSlapOSCRMSkins.py
View file @
6425d6ff
This diff is collapsed.
Click to expand it.
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