/
Approve declaration
Published Jan 23, 2019
ЕСОЗ - публічна документація
Approve declaration
n/n | description | inputs | expected result GraphQl | actual result GraphQl |
---|---|---|---|---|
TD1 | Approve declaration without scopes |
| missing allowance declaration:approve | declaration:approve |
TD2 | Approve declaration by doctor |
| 403 | 401 |
TD3 | Approve declaration by ID doesn't exist |
| not_found | "code": "BAD_REQUEST", "exception": "%{\"error\" => %{\"type\" => \"not_found\"}, \"meta\" => %{\"code\" => 404, \"request_id\" => \"86aceff7-7039-41d5-b6b4-161fdb77f360#15236\", \"type\" => \"object\", \"url\" => \"http://graphql-svc.il/declarations/0e4f17e9-182f-4594-9a83-3a5e6f54a086\"}}" |
TD4 | Approve active declaration |
| CONFLICT invalid status | Incorrect status transition. |
TD5 | Approve inactive declaration |
| CONFLICT invalid status | Incorrect status transition. |
TD6 | Approve pending verification declaration |
| 200, status = `REJECTED`, reason = `manual_person` | 200, ok |
, multiple selections available,
Related content
Terminate declaration by person id
Terminate declaration by person id
More like this
Terminate declarations by employee or person
Terminate declarations by employee or person
Read with this
Reject declaration (tests)
Reject declaration (tests)
More like this
Business Process (updated)
Business Process (updated)
Read with this
Update merge_request tests
Update merge_request tests
More like this
Assign Contract Request test
Assign Contract Request test
More like this
ЕСОЗ - публічна документація