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
1561dc0c
Commit
1561dc0c
authored
Jan 09, 2023
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: assignment needed to touch compute node
parent
978e06ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudInteractionWorkflow.py
...omponents/test.erp5.testSlapOSCloudInteractionWorkflow.py
+19
-4
No files found.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudInteractionWorkflow.py
View file @
1561dc0c
...
...
@@ -25,13 +25,17 @@ class TestSlapOSCoreSlapOSCloudInteractionWorkflow(SlapOSTestCaseMixin):
def
test_ComputeNode_setSubjectList
(
self
):
project
=
self
.
addProject
()
self
.
person_user
=
self
.
makePerson
(
project
)
self
.
addProjectProductionManagerAssignment
(
self
.
person_user
,
project
)
self
.
tic
()
self
.
login
(
self
.
person_user
.
getUserId
())
new_id
=
self
.
generateNewId
()
compute_node
=
self
.
portal
.
compute_node_module
.
newContent
(
portal_type
=
'Compute Node'
,
title
=
"Compute Node %s for %s"
%
(
new_id
,
self
.
person_user
.
getReference
()),
reference
=
"TESTCOMP-%s"
%
new_id
)
reference
=
"TESTCOMP-%s"
%
new_id
,
follow_up_value
=
project
)
self
.
tic
()
assert
compute_node
.
getDestinationSectionValue
()
is
None
...
...
@@ -134,17 +138,22 @@ class TestSlapOSCoreSlapOSCloudInteractionWorkflow(SlapOSTestCaseMixin):
def
check_SoftwareInstallation_changeState
(
self
,
method_id
):
project
=
self
.
addProject
()
self
.
person_user
=
self
.
makePerson
(
project
)
self
.
addProjectProductionManagerAssignment
(
self
.
person_user
,
project
)
self
.
tic
()
self
.
login
(
self
.
person_user
.
getUserId
())
compute_node
=
self
.
portal
.
compute_node_module
.
newContent
(
portal_type
=
'Compute Node'
,
title
=
"Compute Node %s for %s"
%
(
self
.
new_id
,
self
.
person_user
.
getReference
()),
reference
=
"TESTCOMP-%s"
%
self
.
new_id
)
reference
=
"TESTCOMP-%s"
%
self
.
new_id
,
follow_up_value
=
project
)
self
.
_addERP5Login
(
compute_node
)
installation
=
self
.
portal
.
software_installation_module
.
newContent
(
portal_type
=
'Software Installation'
,
title
=
"Installation %s for %s"
%
(
self
.
new_id
,
self
.
person_user
.
getReference
()),
aggregate_value
=
compute_node
,
follow_up_value
=
project
)
self
.
tic
()
...
...
@@ -176,19 +185,24 @@ class TestSlapOSCoreSlapOSCloudInteractionWorkflow(SlapOSTestCaseMixin):
def
check_SoftwareInstance_changeState
(
self
,
method_id
):
project
=
self
.
addProject
()
self
.
person_user
=
self
.
makePerson
(
project
)
self
.
login
(
self
.
person_user
.
getUserId
()
)
self
.
addProjectProductionManagerAssignment
(
self
.
person_user
,
project
)
new_id
=
self
.
generateNewId
()
compute_node
=
self
.
portal
.
compute_node_module
.
newContent
(
portal_type
=
'Compute Node'
,
title
=
"Compute Node %s for %s"
%
(
new_id
,
self
.
person_user
.
getReference
()),
reference
=
"TESTCOMP-%s"
%
new_id
)
reference
=
"TESTCOMP-%s"
%
new_id
,
follow_up_value
=
project
)
self
.
_addERP5Login
(
compute_node
)
partition
=
compute_node
.
newContent
(
portal_type
=
'Compute Partition'
,
title
=
"Partition Compute Node %s for %s"
%
(
new_id
,
self
.
person_user
.
getReference
()),
reference
=
"TESTPART-%s"
%
new_id
)
self
.
login
(
self
.
person_user
.
getUserId
())
instance
=
self
.
portal
.
software_instance_module
.
newContent
(
portal_type
=
"Software Instance"
,
title
=
"Instance %s for %s"
%
(
new_id
,
self
.
person_user
.
getReference
()),
...
...
@@ -197,6 +211,7 @@ class TestSlapOSCoreSlapOSCloudInteractionWorkflow(SlapOSTestCaseMixin):
destination_reference
=
"TESTINST-%s"
%
new_id
,
ssl_certificate
=
"foo"
,
ssl_key
=
"bar"
,
follow_up_value
=
project
)
request_kw
=
dict
(
...
...
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