Commit 2fa1b4fd authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: drop template_compute_node

parent 59d5c796
......@@ -715,8 +715,8 @@ class TestSoftwareInstallation(TestSlapOSGroupRoleSecurityMixin):
def test_SoftwareInstallation_ComputeNode(self):
compute_node_reference = 'TESTCOMP-%s' % self.generateNewId()
compute_node = self.portal.compute_node_module.template_compute_node\
.Base_createCloneDocument(batch_mode=1)
compute_node = self.portal.compute_node_module\
.newContent(portal_type="Compute Node")
compute_node.edit(reference=compute_node_reference)
installation = self.portal.software_installation_module.newContent(
......@@ -809,8 +809,8 @@ class TestSoftwareInstance(TestSlapOSGroupRoleSecurityMixin):
def test_SoftwareInstance_ComputeNode(self):
compute_node_reference = 'TESTCOMP-%s' % self.generateNewId()
compute_node = self.portal.compute_node_module.template_compute_node\
.Base_createCloneDocument(batch_mode=1)
compute_node = self.portal.compute_node_module\
.newContent(portal_type="Compute Node")
compute_node.edit(reference=compute_node_reference)
partition = compute_node.newContent(portal_type='Compute Partition')
......@@ -874,8 +874,8 @@ class TestSlaveInstance(TestSlapOSGroupRoleSecurityMixin):
def test_SlaveInstance_SoftwareInstanceWhichProvidesThisSlaveInstance(self):
compute_node_reference = 'TESTCOMP-%s' % self.generateNewId()
compute_node = self.portal.compute_node_module.template_compute_node\
.Base_createCloneDocument(batch_mode=1)
compute_node = self.portal.compute_node_module\
.newContent(portal_type="Compute Node")
compute_node.edit(reference=compute_node_reference)
partition = compute_node.newContent(portal_type='Compute Partition')
......
......@@ -35,8 +35,8 @@ class TestSlapOSLocalPermissionSlapOSInteractionWorkflow(
def test_ComputeNode_reindexObject(self):
compute_node = self.portal.compute_node_module.template_compute_node\
.Base_createCloneDocument(batch_mode=1)
compute_node = self.portal.compute_node_module\
.newContent(portal_type="Compute Node")
self.tic()
comment = 'recursiveReindexObject triggered on reindexObject'
def verify_recursiveReindexObject_call(self, *args, **kw):
......
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