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
9ce08585
Commit
9ce08585
authored
Aug 21, 2023
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_panel_ui_test: test: assignments are automatically created when adding a virtual master
parent
f70e2bbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
22 deletions
+4
-22
master/bt5/slapos_panel_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.SlapOSPanelUiTest.py
...tem/portal_components/extension.erp5.SlapOSPanelUiTest.py
+4
-22
No files found.
master/bt5/slapos_panel_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.SlapOSPanelUiTest.py
View file @
9ce08585
...
...
@@ -42,8 +42,7 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
newSecurityManager
(
None
,
portal
.
acl_users
.
getUser
(
SUPER_USER
))
# Ensure checkConsistency is OK on the website installed by ui_test bt5
portal
.
portal_alarms
.
upgrader_check_post_upgrade
.
activeSense
(
fixit
=
True
)
portal
.
portal_alarms
.
upgrader_check_post_upgrade
.
activeSense
(
fixit
=
True
)
# Currency
currency
=
portal
.
currency_module
.
newContent
(
...
...
@@ -152,19 +151,14 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
scenario
==
'accounting'
,
currency
.
getRelativeUrl
(),
batch
=
1
)
manager_person
.
newContent
(
portal_type
=
'Assignment'
,
title
=
'Manager for project %s'
%
project
.
getTitle
(),
destination_project_value
=
project
,
function
=
'production/manager'
).
open
()
if
scenario
==
'accounting'
:
manager_person
.
newContent
(
portal_type
=
'Assignment'
,
title
=
'Sale'
,
function
=
'sale/manager'
).
open
()
customer_person
.
newContent
(
portal_type
=
'Assignment'
,
title
=
'Customer for project %s'
%
project
.
getTitle
(),
...
...
@@ -194,24 +188,12 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
).
open
()
if
scenario
==
'customer_remote'
:
remote_project
=
customer_person
.
Person_addVirtualMaster
(
customer_person
.
Person_addVirtualMaster
(
'Test Remote Project'
,
scenario
==
'accounting'
,
scenario
==
'accounting'
,
currency
.
getRelativeUrl
(),
batch
=
1
)
customer_person
.
newContent
(
portal_type
=
'Assignment'
,
title
=
'Manager for project %s'
%
project
.
getTitle
(),
destination_project_value
=
remote_project
,
function
=
'production/manager'
).
open
()
remote_customer_person
.
newContent
(
portal_type
=
'Assignment'
,
title
=
'Customer for project %s'
%
remote_project
.
getTitle
(),
destination_project_value
=
remote_project
,
function
=
'customer'
).
open
()
finally
:
...
...
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