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
904651ac
Commit
904651ac
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
ea38dc37
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 @
904651ac
...
@@ -705,9 +705,12 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
...
@@ -705,9 +705,12 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
# behaviour.
# behaviour.
compute_node
.
edit
(
capacity_scope
=
'open'
)
compute_node
.
edit
(
capacity_scope
=
'open'
)
elif
node
==
"remote"
:
elif
node
==
"remote"
:
remote_project
=
self
.
addProject
(
is_accountable
=
False
)
compute_node
=
self
.
portal
.
compute_node_module
.
newContent
(
compute_node
=
self
.
portal
.
compute_node_module
.
newContent
(
portal_type
=
"Remote Node"
,
portal_type
=
"Remote Node"
,
follow_up_value
=
project
follow_up_value
=
project
,
destination_project_value
=
remote_project
,
destination_section_value
=
person
)
)
elif
node
==
"instance"
:
elif
node
==
"instance"
:
compute_node
=
self
.
portal
.
compute_node_module
.
newContent
(
compute_node
=
self
.
portal
.
compute_node_module
.
newContent
(
...
@@ -791,7 +794,10 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
...
@@ -791,7 +794,10 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
partition
.
markBusy
()
partition
.
markBusy
()
# create fake open order, to bypass Service_getSubscriptionStatus
# 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
(
open_order
=
self
.
portal
.
open_sale_order_module
.
newContent
(
portal_type
=
"Open Sale Order"
,
portal_type
=
"Open Sale Order"
,
ledger
=
"automated"
,
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