Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


n/n
description
inputs
expected result GraphQlactual result GraphQl
GMR1Get merge requests list/id without scopes
  • token

missing allowance 

merge_request:read

"code": "FORBIDDEN",
"exception": {
"missingAllowances": [
"merge_request:read"
]},
"message": "Current client is not allowed to access this resource",

GMR2Get merge requests list/id without role 
  • doctor token
403, FORBIDDEN200, ok, role is not checked
GMR3Get merge requests list/id with client not NHS
  • token
  • invalid client id 
403, FORBIDDEN"code": "FORBIDDEN",
Current client is not allowed to access this resource
GMR4Get merge request by valid ID which doesn't exist
  • token
  • id
NOT_FOUND

{
"data": {
"mergeRequest": null
}
}

GMR4.1Get merge request by valid ID which doesn't belong to merge request
  • token
  • id
"message": "In argument \"id\": Expected node type in [\"MergeRequest\"], found \"ManualMergeCandidate\".","message": "In argument \"id\": Expected node type in [\"MergeRequest\"], found \"ManualMergeCandidate\".",
GMR5Get merge request by valid ID in status <> NEW/POSTPONE 
  • token
  • id
FORBIDDEN, You are not allowed to view this merge request{
"data": {
"mergeRequest": null
}
}
ASM5Get merge request by valid ID in status  NEW/POSTPONE
  • token
200, data200, data
ASM6Get merge requests List 
  • 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

ASM7Get merge requests List with other NHS reviewer  token 
  • 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