Skip to content
Snippets Groups Projects
Commit 1e0b23c52573 authored by Frank Bessou's avatar Frank Bessou :spider_web:
Browse files

fix: update tests and openapi_template.yaml

parent 5bf18d46cc3a
No related branches found
No related tags found
1 merge request!71Topic/default/objects rsets
......@@ -80,9 +80,12 @@
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ResultSet'
type: object
properties:
result_sets:
type: array
items:
$ref: '#/components/schemas/ResultSet'
'400':
description: The given RQL was badly formatted
content:
......@@ -271,15 +274,22 @@
- title
- error
ResultSet:
type: array
items:
type: array
items:
oneOf:
- type: 'string'
nullable: true
- type: 'number'
- type: 'boolean'
type: object
properties:
column_names:
type: array
items:
type: string
rows:
type: array
items:
type: array
items:
oneOf:
- type: 'string'
nullable: true
- type: 'number'
- type: 'boolean'
CurrentUser:
type: object
nullable: true
......
......@@ -39,7 +39,7 @@
content_type="multipart/form-data",
headers=self.custom_headers,
)
return response.json[0][0][0]
return response.json["result_sets"][0]["rows"][0][0]
def test_download_binary(self):
eid = self.upload_file()
......@@ -102,7 +102,7 @@
content_type="application/json",
headers=self.custom_headers,
)
eid = response.json[0][0][0]
eid = response.json["result_sets"][0]["rows"][0][0]
response = self.webapp.get(
self.get_api_path("binary"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment