Versions Compared

Key

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


n/n
Description
Inputs
expected result
actual  result
DCR1Decline Contract Request without scope
  • token
  • id
  • json
403403
DCR2Decline Contract Request by other role than `NHS ADMIN SIGNER`
  • token NHS_OWNER
  • id
  • json
403403
DCR3Decline Contract Reuqest in status<>'NEW'
  • token 
  • id request in status<>NEW
422422, Incorrect status of contract_request to modify it
DCR4Decline Contract Reuqest with ID doesn't exist
  • token
  • id doesn't exist
404404, 
DCR5Decline contract request with not fulfilled updated fields
  • token
  • id 
  • not updated request
200

200

DCR6Decline contract Request 

200, status = 'DECLINED',

event added to event_manager

200
DCR7Decline contract Request with not valid DRFO
  • token and drfo belongs to different employees
  • id
  • json
422
DCR8Decline contract Request with invalid contractor_legal_entity.drfo
  • token
  • id
  • json with invalid signed content
422