Commit 23434b11 authored by Romain Courteaud's avatar Romain Courteaud

erp5_json_rpc_api: XXX TODO demo call crashing

parent 02cfc0a5
......@@ -163,3 +163,23 @@ class TestJsonRpcAPIConnectorView(JsonRpcAPITestCase):
user='ERP5TypeTestCase')
self.assertEqual(ret.getStatus(), 404)
class TestJsonRpcAPIDemoDemoDemoXXXTOMoveTODO(JsonRpcAPITestCase):
def test_21_request(self):
response = self.publish(
self.connector.getPath() + '/post',
user='ERP5TypeTestCase',
request_method='POST',
stdin=io.BytesIO(
json.dumps(
{
"portal_type": "Software Instance",
"software_release_uri": "req_release",
"software_type": "req_type",
"title": "req_reference",
"compute_node_id": "XXX",#self.compute_node_id,
"compute_partition_id": "YYY",#partition_id,
}).encode()),
env={'CONTENT_TYPE': 'application/json'})
self.assertEqual(response.getBody(), b'"ok"')
self.assertEqual(response.getStatus(), 200)
\ 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