Commit d8522ba8 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel_ui_test:

* test: assignments are automatically created when adding a virtual master
parent 73dddd1c
...@@ -42,8 +42,7 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login, ...@@ -42,8 +42,7 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
newSecurityManager(None, portal.acl_users.getUser(SUPER_USER)) newSecurityManager(None, portal.acl_users.getUser(SUPER_USER))
# Ensure checkConsistency is OK on the website installed by ui_test bt5 # Ensure checkConsistency is OK on the website installed by ui_test bt5
portal.portal_alarms.upgrader_check_post_upgrade.activeSense( portal.portal_alarms.upgrader_check_post_upgrade.activeSense(fixit=True)
fixit=True)
# Currency # Currency
currency = portal.currency_module.newContent( currency = portal.currency_module.newContent(
...@@ -152,19 +151,14 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login, ...@@ -152,19 +151,14 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
scenario == 'accounting', scenario == 'accounting',
currency.getRelativeUrl(), currency.getRelativeUrl(),
batch=1) 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': if scenario == 'accounting':
manager_person.newContent( manager_person.newContent(
portal_type='Assignment', portal_type='Assignment',
title='Sale', title='Sale',
function='sale/manager' function='sale/manager'
).open() ).open()
customer_person.newContent( customer_person.newContent(
portal_type='Assignment', portal_type='Assignment',
title='Customer for project %s' % project.getTitle(), title='Customer for project %s' % project.getTitle(),
...@@ -200,12 +194,6 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login, ...@@ -200,12 +194,6 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
scenario == 'accounting', scenario == 'accounting',
currency.getRelativeUrl(), currency.getRelativeUrl(),
batch=1) 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( remote_customer_person.newContent(
portal_type='Assignment', portal_type='Assignment',
title='Customer for project %s' % remote_project.getTitle(), title='Customer for project %s' % remote_project.getTitle(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment