ЕСОЗ - публічна документація
Get merge requests List/ ID tests
n/n | description | inputs | expected result GraphQl | actual result GraphQl |
---|---|---|---|---|
GMR1 | Get merge requests list/id without scopes |
| missing allowance merge_request:read | "code": "FORBIDDEN", |
GMR2 | Get merge requests list/id without role |
| 403, FORBIDDEN | 200, ok, role is not checked |
GMR3 | Get merge requests list/id with client not NHS |
| 403, FORBIDDEN | "code": "FORBIDDEN", Current client is not allowed to access this resource |
GMR4 | Get merge request by valid ID which doesn't exist |
| NOT_FOUND | { |
GMR4.1 | Get merge request by valid ID which doesn't belong to merge request |
| "message": "In argument \"id\": Expected node type in [\"MergeRequest\"], found \"ManualMergeCandidate\".", | "message": "In argument \"id\": Expected node type in [\"MergeRequest\"], found \"ManualMergeCandidate\".", |
GMR5 | Get merge request by valid ID in status <> NEW/POSTPONE |
| FORBIDDEN, You are not allowed to view this merge request | { "data": { "mergeRequest": null } } |
ASM5 | Get merge request by valid ID in status NEW/POSTPONE |
| 200, data | 200, data |
ASM6 | Get merge requests List |
| 200, response has only user's merge requests in status NEW, POSTPONE | 200, |
ASM7 | Get merge requests List with other NHS reviewer token |
| 200, response has only user's merge requests in status NEW, POSTPONE | 200, response has only user's merge requests in status NEW, POSTPONE |
LikeBe the first to like this
ЕСОЗ - публічна документація