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