Versions Compared

Key

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


n/n
Description
Inputs
expected result
actual  result
PC1Prolongate Contract without scope
  • token
  • id
  • json
403403, missing contract:update
PC2Prolongate Contract by MSP
  • invalid token 
403403, contract:update
PC3Prolongate Contract with ID doesn't exist
  • token
  • id doesn't exist
404404, not_found
PC4Prolongate Contract with status = TERMINATED
  • token with invalid status
  • id 
409,
Incorrect contract status to modify it

409,
Incorrect status of parent contractcontract 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
PC6Prolongate Contract with invalid end_date
  • token
  • id
  • end_date<now()
422422, 
End date should be greater then now
PC7Prolongate contract with closed legal entity
  • token
  • id
  • contractor_legal_entity.status='closed'
409422200
PC8Prolongate Contract 
  • NHS token
  • id of valid contract_request
  • json

200, updated end_date


200, updated

...