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
f4c68f27
Commit
f4c68f27
authored
Aug 01, 2023
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: test: fixup remote node creation
parent
9ff12054
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
...teItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
+8
-2
No files found.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
View file @
f4c68f27
...
...
@@ -713,9 +713,12 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
# behaviour.
compute_node
.
edit
(
capacity_scope
=
'open'
)
elif
node
==
"remote"
:
remote_project
=
self
.
addProject
(
is_accountable
=
False
)
compute_node
=
self
.
portal
.
compute_node_module
.
newContent
(
portal_type
=
"Remote Node"
,
follow_up_value
=
project
follow_up_value
=
project
,
destination_project_value
=
remote_project
,
destination_section_value
=
person
)
elif
node
==
"instance"
:
compute_node
=
self
.
portal
.
compute_node_module
.
newContent
(
...
...
@@ -799,7 +802,10 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
partition
.
markBusy
()
# create fake open order, to bypass Service_getSubscriptionStatus
for
item
in
[
instance_tree
.
getSuccessorValue
(),
partition
.
getParentValue
()]:
subscrible_item_list
=
[
instance_tree
]
if
partition
is
not
None
:
subscrible_item_list
.
append
(
partition
.
getParentValue
())
for
item
in
subscrible_item_list
:
open_order
=
self
.
portal
.
open_sale_order_module
.
newContent
(
portal_type
=
"Open Sale Order"
,
ledger
=
"automated"
,
...
...
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