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
546c017a
Commit
546c017a
authored
Jan 06, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: person need right assignment
parent
a96ce52e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudComputeNodeSlapInterfaceWorkflow.py
...t.erp5.testSlapOSCloudComputeNodeSlapInterfaceWorkflow.py
+10
-5
No files found.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudComputeNodeSlapInterfaceWorkflow.py
View file @
546c017a
...
@@ -87,14 +87,17 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin):
...
@@ -87,14 +87,17 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin):
def
test_approveComputeNodeRegistration
(
self
):
def
test_approveComputeNodeRegistration
(
self
):
self
.
person_user
=
self
.
makePerson
(
self
.
project
)
self
.
person_user
=
self
.
makePerson
(
self
.
project
)
self
.
addProjectProductionManagerAssignment
(
self
.
person_user
,
self
.
project
)
self
.
tic
()
self
.
login
(
self
.
person_user
.
getUserId
())
self
.
login
(
self
.
person_user
.
getUserId
())
compute_node
=
self
.
portal
.
compute_node_module
.
newContent
(
portal_type
=
'Compute Node'
,
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
()),
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
=
self
.
project
)
compute_node
.
approveComputeNodeRegistration
()
compute_node
.
approveComputeNodeRegistration
()
self
.
assertEqual
(
'open/personal'
,
compute_node
.
getAllocationScope
())
self
.
assertEqual
(
'open'
,
compute_node
.
getAllocationScope
())
self
.
assertEqual
(
self
.
person_user
.
getRelativeUrl
(),
compute_node
.
getSourceAdministration
())
self
.
assertEqual
(
'validated'
,
compute_node
.
getValidationState
())
self
.
assertEqual
(
'validated'
,
compute_node
.
getValidationState
())
def
_countInstanceBang
(
self
,
instance
,
comment
):
def
_countInstanceBang
(
self
,
instance
,
comment
):
...
@@ -492,6 +495,8 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflowSupply(SlapOSTestCaseMixin):
...
@@ -492,6 +495,8 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflowSupply(SlapOSTestCaseMixin):
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
Base_createCloneDocument
(
batch_mode
=
1
)
# Clone person document
# Clone person document
person_user
=
self
.
makePerson
(
self
.
project
,
new_id
=
self
.
new_id
,
index
=
0
)
person_user
=
self
.
makePerson
(
self
.
project
,
new_id
=
self
.
new_id
,
index
=
0
)
self
.
addProjectProductionManagerAssignment
(
person_user
,
self
.
project
)
self
.
tic
()
compute_node
.
edit
(
compute_node
.
edit
(
title
=
"Compute Node %s for %s"
%
(
self
.
new_id
,
person_user
.
getReference
()),
title
=
"Compute Node %s for %s"
%
(
self
.
new_id
,
person_user
.
getReference
()),
...
...
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