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
7be88836
Commit
7be88836
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
790d8401
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudInteractionWorkflow.py
...omponents/test.erp5.testSlapOSCloudInteractionWorkflow.py
+23
-3
No files found.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudInteractionWorkflow.py
View file @
7be88836
...
...
@@ -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
.
_addCertificateLogin
(
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,29 @@ 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
()),
<<<<<<<
HEAD
reference
=
"TESTCOMP-%s"
%
new_id
)
self
.
_addCertificateLogin
(
compute_node
)
=======
reference
=
"TESTCOMP-%s"
%
new_id
,
follow_up_value
=
project
)
self
.
_addERP5Login
(
compute_node
)
>>>>>>>
1561
dc0c2
(
slapos_cloud
:
assignment
needed
to
touch
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 +216,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