Commit d0e651aa authored by Titouan Soulard's avatar Titouan Soulard

slapos_jio_api_style: update tests after rebase

parent 62e144e3
......@@ -86,14 +86,8 @@ class TestSlapOSJIOAPIMixin(SlapOSTestCaseMixin):
self.commit()
# Prepare compute_node
self.compute_node = self.portal.compute_node_module.template_compute_node\
.Base_createCloneDocument(batch_mode=1)
self.compute_node.edit(
title="Compute Node %s" % self.new_id,
reference="TESTCOMP-%s" % self.new_id,
follow_up_value=self.project
)
self.compute_node.validate()
compute_node, _ = self.addComputeNodeAndPartition(self.project)
self.compute_node = compute_node
# Make compute node access
self._addCertificateLogin(self.compute_node)
......@@ -131,6 +125,7 @@ class TestSlapOSJIOAPIMixin(SlapOSTestCaseMixin):
def allDocsToApi(self, data_dict):
self.portal.REQUEST.set("live_test", True)
self.portal.REQUEST.set("BODY", json.dumps(data_dict))
self.portal.REQUEST.set("REQUEST_METHOD", "POST")
return json_loads_byteified(self.web_site.api.allDocs())
def callUpdateRevision(self):
......
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