forked from ITISFoundation/osparc-simcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9189796
commit 0fafb06
Showing
5 changed files
with
359 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
services/api-server/tests/mocks/get_job_pricing_unit_invalid_job.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[ | ||
{ | ||
"name": "GET /projects/87643648-3a38-44e2-9cfe-d86ab3d50620", | ||
"description": "<Request('GET', 'http://webserver:8080/v0/projects/87643648-3a38-44e2-9cfe-d86ab3d50620')>", | ||
"method": "GET", | ||
"host": "webserver", | ||
"path": { | ||
"path": "/v0/projects/{project_id}", | ||
"path_parameters": [ | ||
{ | ||
"in_": "path", | ||
"name": "project_id", | ||
"required": true, | ||
"schema_": { | ||
"title": "Project Id", | ||
"type_": "str", | ||
"pattern": null, | ||
"format_": "uuid", | ||
"exclusiveMinimum": null, | ||
"minimum": null, | ||
"anyOf": null, | ||
"allOf": null, | ||
"oneOf": null | ||
}, | ||
"response_value": "projects" | ||
} | ||
] | ||
}, | ||
"query": null, | ||
"request_payload": null, | ||
"response_body": { | ||
"data": null, | ||
"error": { | ||
"logs": [ | ||
{ | ||
"message": "Project 87643648-3a38-44e2-9cfe-d86ab3d50620 not found", | ||
"level": "ERROR", | ||
"logger": "user" | ||
} | ||
], | ||
"errors": [ | ||
{ | ||
"code": "HTTPNotFound", | ||
"message": "Project 87643648-3a38-44e2-9cfe-d86ab3d50620 not found", | ||
"resource": null, | ||
"field": null | ||
} | ||
], | ||
"status": 404, | ||
"message": "Project 87643648-3a38-44e2-9cfe-d86ab3d50620 not found" | ||
} | ||
}, | ||
"status_code": 404 | ||
} | ||
] |
105 changes: 105 additions & 0 deletions
105
services/api-server/tests/mocks/get_job_pricing_unit_invalid_solver.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
[ | ||
{ | ||
"name": "GET /projects/87643648-3a38-44e2-9cfe-d86ab3d50629", | ||
"description": "<Request('GET', 'http://webserver:8080/v0/projects/87643648-3a38-44e2-9cfe-d86ab3d50629')>", | ||
"method": "GET", | ||
"host": "webserver", | ||
"path": { | ||
"path": "/v0/projects/{project_id}", | ||
"path_parameters": [ | ||
{ | ||
"in_": "path", | ||
"name": "project_id", | ||
"required": true, | ||
"schema_": { | ||
"title": "Project Id", | ||
"type_": "str", | ||
"pattern": null, | ||
"format_": "uuid", | ||
"exclusiveMinimum": null, | ||
"minimum": null, | ||
"anyOf": null, | ||
"allOf": null, | ||
"oneOf": null | ||
}, | ||
"response_value": "projects" | ||
} | ||
] | ||
}, | ||
"query": null, | ||
"request_payload": null, | ||
"response_body": { | ||
"data": { | ||
"uuid": "87643648-3a38-44e2-9cfe-d86ab3d50629", | ||
"name": "solvers/simcore%2Fservices%2Fcomp%2Fisolve/releases/2.1.24/jobs/87643648-3a38-44e2-9cfe-d86ab3d50629", | ||
"description": "Study associated to solver job:\n{\n \"id\": \"87643648-3a38-44e2-9cfe-d86ab3d50629\",\n \"name\": \"solvers/simcore%2Fservices%2Fcomp%2Fisolve/releases/2.1.24/jobs/87643648-3a38-44e2-9cfe-d86ab3d50629\",\n \"inputs_checksum\": \"015ba4cd5cf00c511a8217deb65c242e3b15dc6ae4b1ecf94982d693887d9e8a\",\n \"created_at\": \"2023-10-10T20:15:22.071797+00:00\"\n}", | ||
"thumbnail": "https://via.placeholder.com/170x120.png", | ||
"creationDate": "2023-10-10T20:15:22.096Z", | ||
"lastChangeDate": "2023-10-10T20:15:22.096Z", | ||
"workbench": { | ||
"4b03863d-107a-5c77-a3ca-c5ba1d7048c0": { | ||
"key": "simcore/services/comp/isolve", | ||
"version": "2.1.24", | ||
"label": "isolve edge", | ||
"progress": 0.0, | ||
"inputs": { | ||
"x": 4.33, | ||
"n": 55, | ||
"title": "Temperature", | ||
"enabled": true, | ||
"input_file": { | ||
"store": 0, | ||
"path": "api/0a3b2c56-dbcd-4871-b93b-d454b7883f9f/input.txt", | ||
"label": "input.txt" | ||
} | ||
}, | ||
"inputsUnits": {}, | ||
"inputNodes": [], | ||
"outputs": {}, | ||
"state": { | ||
"modified": true, | ||
"dependencies": [], | ||
"currentStatus": "NOT_STARTED", | ||
"progress": null | ||
} | ||
} | ||
}, | ||
"prjOwner": "[email protected]", | ||
"accessRights": { | ||
"3": { | ||
"read": true, | ||
"write": true, | ||
"delete": true | ||
} | ||
}, | ||
"tags": [], | ||
"classifiers": [], | ||
"state": { | ||
"locked": { | ||
"value": false, | ||
"status": "CLOSED" | ||
}, | ||
"state": { | ||
"value": "NOT_STARTED" | ||
} | ||
}, | ||
"ui": { | ||
"workbench": { | ||
"4b03863d-107a-5c77-a3ca-c5ba1d7048c0": { | ||
"position": { | ||
"x": 633, | ||
"y": 229 | ||
} | ||
} | ||
}, | ||
"slideshow": {}, | ||
"currentNodeId": "4b03863d-107a-5c77-a3ca-c5ba1d7048c0", | ||
"annotations": {} | ||
}, | ||
"quality": {}, | ||
"dev": {} | ||
} | ||
}, | ||
"status_code": 200 | ||
} | ||
] |
Oops, something went wrong.