n/n | description | inputs | expected result GraphQl | actual result GraphQl |
---|---|---|---|---|
ASM1 | Assign merge candidate without scopes |
| missing allowance merge_candidate:assign | "code": "FORBIDDEN", "exception": { "missingAllowances": [ "merge_candidate:assign" ] } |
ASM2 | Assign merge candidate without role |
| 403, FORBIDDEN | 200, role is not checked |
ASM3 | Assign merge candidate with client not NHS |
| 403, FORBIDDEN | "extensions": { "code": "FORBIDDEN" }, "message": "Current client is not allowed to access this resource", |
ASM4 | Assign MR already have one in status NEW |
| CONFLICT, Assignee is not allowed to ask for new merge request | {"errors": [{ |
ASM5 | Assign MR to User which already has POSTPONE >=postponed_requests_limit |
| CONFLICT, Assignee reached limit in postponed merge_requests | { we must should check current_postoponed_requests<max_postponed_requests, as for now it's <=that assignee_id is non-null |
ASM6 | Assign MR in case there is no left one NEW and not viewed by User merge candidate in DB |
| 204, No content | { |
ASM7 | Assign new MR to User |
| Merge Request is assigned
| Merge request is assigned
|
Page Comparison
General
Content
Integrations