Versions Compared

Key

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


n/n
Description
Inputs
expected result
actual  result
DCR1Terminate Contract Request without scope
  • token
  • id
  • json
403403
DCR2Terminate Contract Request  in status='SIGNED'/'DECLINED'
  • token 
  • id request in status=SIGNED/DECLINED
422422
DCR3Terminate Terminated Contract Request ( in status='TERMIANTED')
  • token 
  • id request in status=TERMIANTED
422200422,
Incorrect status of contract_request to modify it
DCR4Terminate Contract Reuqest with ID doesn't exist
  • token
  • id doesn't exist
404404
DCR5Terminate contract request of another MSP
  • token with other client_id
  • id 
403

403, User is not allowed to perform this action

DCR6Terminate contract request in status NEW
  • token
  • id of new contract_request
  • json

200, status = 'TERMINATED',

event added to event_manager

200, status = 'TERMINATED',

event added to event_manager


Terminate contract request in status APPROVED 
  • token
  • id of approved contract_request
  • json
 

200, status = 'TERMINATED',

event added to event_manager

 

200, status = 'TERMINATED',

event added to event_manager


Terminate contract request in status PENDING_NHS_SIGN 
  • token
  • id  contract_request in status PENDING_NHS_SIGN 
  • json
 

200, status = 'TERMINATED',

event added to event_manager

200, status = 'TERMINATED',

event added to event_manager


Terminate contract request in status NHS_SIGNED 
  • token
  • id of contract_request in status NHS_SIGNED
  • json
 

200, status = 'TERMINATED',

event added to event_manager

 

200, status = 'TERMINATED',

event added to event_manager