Commit c1137e92 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: set default project on test web site

parent 4aade8f6
......@@ -51,10 +51,13 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
def test_virtual_master_without_accounting_scenario(self):
# create a default project
project = self.addProject()
self.web_site = self.portal.web_site_module.slapos_master_panel
self.web_site.edit(
configuration_default_project_relative_url=project.getRelativeUrl()
)
# some preparation
self.logout()
self.web_site = self.portal.web_site_module.hostingjs
# lets join as slapos administrator, which will own few compute_nodes
owner_reference = 'owner-%s' % self.generateNewId()
......@@ -140,7 +143,12 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
# Ensure no unexpected object has been created
# 2 assignment, 1 instance tree, 1 compute node, 1 software installation
# 1 software instance
# 2 credential request
related_object_list = project.Base_getRelatedObjectList()
assert len(related_object_list) == 6, [x.getRelativeUrl() for x in related_object_list]
assert len(related_object_list) == 8, [x.getRelativeUrl() for x in related_object_list]
self.stepcheckERP5Consistency()
# after accept, an email is send containing the reset link
last_message = self.portal.MailHost._last_message
assert last_message is None, last_message
\ No newline at end of file
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