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
21784bde
Commit
21784bde
authored
Jun 29, 2022
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: switch admin to production manager in tests
parent
621bc0aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5DefaultScenario.py
...tal_components/test.erp5.testSlapOSERP5DefaultScenario.py
+3
-3
No files found.
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5DefaultScenario.py
View file @
21784bde
...
@@ -32,11 +32,11 @@ class TestSlapOSDefaultScenario(DefaultScenarioMixin):
...
@@ -32,11 +32,11 @@ class TestSlapOSDefaultScenario(DefaultScenarioMixin):
group='company'
group='company'
).open()
).open()
"""
"""
def
addProject
ComputeNode
ManagerAssignment
(
self
,
person
,
project
):
def
addProject
Production
ManagerAssignment
(
self
,
person
,
project
):
person
.
newContent
(
person
.
newContent
(
portal_type
=
'Assignment'
,
portal_type
=
'Assignment'
,
destination_project_value
=
project
,
destination_project_value
=
project
,
function
=
'
computer
/manager'
function
=
'
production
/manager'
).
open
()
).
open
()
def
addProjectCustomerAssignment
(
self
,
person
,
project
):
def
addProjectCustomerAssignment
(
self
,
person
,
project
):
...
@@ -73,7 +73,7 @@ class TestSlapOSDefaultScenario(DefaultScenarioMixin):
...
@@ -73,7 +73,7 @@ class TestSlapOSDefaultScenario(DefaultScenarioMixin):
# first slapos administrator assignment can only be created by
# first slapos administrator assignment can only be created by
# the erp5 manager
# the erp5 manager
self
.
addProject
ComputeNode
ManagerAssignment
(
owner_person
,
project
)
self
.
addProject
Production
ManagerAssignment
(
owner_person
,
project
)
self
.
tic
()
self
.
tic
()
# hooray, now it is time to create compute_nodes
# hooray, now it is time to create compute_nodes
...
...
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