Versions Compared

Key

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


n/n
Description
Inputs
expected result
actual  result
expected result
graphQL
actual  result
graphQL
PC1Prolongate Contract without scope
  • token
  • id
  • json
403403, missing contract:update"code": "FORBIDDEN",
"exception": {
"missingAllowances": ["contract:update"]
"message": "Current client is not allowed to access this resource"
"code": "FORBIDDEN",
"exception": {
"missingAllowances": ["contract:update"]
"message": "Current client is not allowed to access this resource"
PC2Prolongate Contract by MSP
  • invalid token 
403403, contract:updateLegal entity is not allowed to this action by client_idLegal entity is not allowed to this action by client_id
PC3Prolongate Contract with ID doesn't exist
  • token
  • id doesn't exist
404404, not_foundnot found"code": "NOT_FOUND"
"message": "Contract not found",
PC4Prolongate Contract with status = TERMINATED
  • token with invalid status
  • id 
409,
Incorrect contract status to modify it

409,
Incorrect contract status to modify it

"code": "CONFLICT"
Incorrect contract status to modify it
"code": "CONFLICT"
Incorrect contract status to modify it
PC5Prolongate Contract with not merged contractor_legal_entity 
  • token
  • id
422422,
Contract for this legal entity must be resign with standard procedure
"code": "UNPROCESSABLE_ENTITY"
Contract for this legal entity must be resign with standard procedure
"code": "UNPROCESSABLE_ENTITY"
Contract for this legal entity must be resign with standard procedure
PC6Prolongate Contract with invalid end_date
  • token
  • id
  • end_date<now()
422422
End date should be greater then now
 "code": "UNPROCESSABLE_ENTITY"
End date should be greater then contract end date
 "code": "UNPROCESSABLE_ENTITY"
End date should be greater then contract end date
PC7Prolongate contract with closed legal entity
  • token
  • id
  • contractor_legal_entity.status='closed'
409409, Contractor legal entity is not active "code": "CONFLICT"
Contractor legal entity is not active
 "code": "CONFLICT"
Contractor legal entity is not active
PC8Prolongate Contract 
  • NHS token
  • id of valid contract_request
  • json

200, updated end_date


200, updated

200, updated200, updated