ЕСОЗ - публічна документація
Update merge_request tests
n/n | description | inputs | expected result GraphQl | actual result GraphQl | comment |
---|---|---|---|---|---|
UMR1 | Update merge request without scopes |
| missing allowance merge_request:review | "extensions": { "code": "FORBIDDEN", "exception": { "missingAllowances": [ "merge_request:write" ] | |
UMR2 | Update merge request without role |
| 403, FORBIDDEN | 401 "error": { | |
UMR3 | Update merge request with client not NHS |
| 403, FORBIDDEN | "code": "FORBIDDEN" "message": "Current client is not allowed to access this resource", | |
UMR4 | Update merge request assigned to other user |
| Current client is not allowed to access this resource | "code": "FORBIDDEN" "message": "Current client is not allowed to access this resource", | Current user is not allowed to access this resource |
UMR5 | Update merge request which doesn't exist |
| NOT_FOUND | "code": "NOT_FOUND" | |
UMR6 | Update merge request in status
|
| CONFLICT error - 'Incorrect transition status' | "code": "CONFLICT" "message": "Incorrect transition status", | |
UMR7 | Update merge request in status NEW and next status NEW |
| CONFLICT error - 'Incorrect transition status' | "code": "CONFLICT" "message": "Incorrect transition status", | |
UMR8 | Update merge request in status POSTPONE and next status NEW |
| CONFLICT error - 'Incorrect transition status' | "code": "CONFLICT" "message": "Incorrect transition status", | |
UMR9 | Update merge request in status POSTPONE and next status POSTPONE |
| CONFLICT error - 'Incorrect transition status' | "code": "CONFLICT" "message": "Incorrect transition status", | |
UMR10 | Update MR in status NEW / POSTPONE |
| Merge Request is updated
| ок | |
UMR11 | Update MR in status NEW / POSTPONE as a final decision MERGE |
| Merge Request is updated
| ок | |
UMR12 | Update MR in status NEW / POSTPONE as a final decision MERGE and with $person_id=person_id for other requests |
| Merge Request is updated
| ||
UMR13 | Update MR in status NEW / POSTPONE as a final decision MERGE and with $person_id=master_person_id other requests |
| Merge Request is updated
| ||
UMR14 | Update MR in status NEW / POSTPONE as a final decision SPLIT |
| Merge Request is updated
|
ЕСОЗ - публічна документація