Commit dcdac461 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel_ui_test: fix consistency of other documents before running the tests

parent 03b4178f
...@@ -41,6 +41,10 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login, ...@@ -41,6 +41,10 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
try: try:
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
portal.portal_alarms.upgrader_check_post_upgrade.activeSense(
fixit=True)
# Organisation # Organisation
organisation = portal.organisation_module.newContent( organisation = portal.organisation_module.newContent(
portal_type="Organisation", portal_type="Organisation",
...@@ -156,6 +160,17 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login, ...@@ -156,6 +160,17 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
function='customer' function='customer'
).open() ).open()
# Ensure checkConsistency is OK on this preference
preference = portal.portal_preferences.slapos_default_system_preference
preference.edit(
preferred_hateoas_url='.',
preferred_subscription_assignment_category_list=[
'function/customer',
'role/client',
'destination_project/%s' % project.getRelativeUrl()
]
)
if scenario == 'customer_shared': if scenario == 'customer_shared':
# XXX For shared instance, user must also be a customer # XXX For shared instance, user must also be a customer
# How to create Instance Node without any user related document? # How to create Instance Node without any user related document?
......
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