Versions Compared

Key

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


n/n
Description
Inputs
expected result
actual  result
SCR_NHS1Sign Contract Request without scope
  • token
  • id
  • signed_content
403403, "Your scope does not allow to access this resource. Missing allowances: contract_request:sign"
SCR_NHS2Sign Contract request by MSP
  • token msp
  • id
  • signed_content
403

403,Your scope does not allow to access this resource. Missing allowances: contract_request:sign

SCR_NHS3Sign Contract Reuqest in status<>'APPROVED'
  • token 
  • id request in status<>APPROVED
  • signed_content
422422, Incorrect status of contract_request to modify it
SCR_NHS4Sign Contract Reuqest with ID doesn't exist
  • token
  • id doesn't exist
404404
SCR_NHS5Sign contract request with drfo<>nhs_signer_id.party.tax_id
  • token
  • id 
  • invalid drfo
422

422, Does not match the signer drfo
$.nhs_signer_id

SCR_NHS6Sign contract request with renamed division
  • token
  • id 
  • renamed division
422422, Signed content does not match the previously created content
SCR_NHS7Sign Signed contract request
  • token
  • id
  • status='NHS_SIGNED'
422422,
The contract was already signed by NHS
SCR_NHS8Sign contract request with invalid start_date
  • token
  • id
  • issue city absent 
422422,
Start date must be greater than create date
SCR_NHS9Sign contract request with token by NHS and not signer
  • token
  • id
  • signed content
200

200

SCR_NHS10Sign contract request with contract_number and terminated contract by this contract_number
  • token
  • id
  • json with signed content
409409, Parent contract can’t be updated

SCR_NHS11Sign CR by NHS with DS and stamp
  • token
  • id
  • json with signed content
  • surname
  • edrpou
200422200
SCR_NHSSign CR by NHS with DS only
    • token
    • id
    • json with signed content
    • surname
    • edrpou
422
SCR_NHSSign CR by NHS with stump only
  • token
  • id
  • json with signed content
  • surname
  • edrpou
422
SCR_NHSSign CR by NHS with different  surname in DS and DB
  • token
  • id
  • json with signed content
  • surname
  • edrpou
422
SCR_NHSSign CR by NHS Signer, login with Admin
  • token
  • id
  • json with signed content
  • surname
  • edrpou
200
SCR_NHSSign CR by NHS Admin, login with NHS Signer
  • token
  • id
  • json with signed content
  • surname
  • edrpou
422
SCR_NHSSign CR by NHS with correct DS and incorrect stump
  • token
  • id
  • json with signed content
  • surname
  • edrpou
422
SCR_NHSSign CR by NHS with incorrect DS and correct stump
  • token
  • id
  • json with signed content
  • surname
  • edrpou
422