Versions Compared

Key

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


n/n
Description
Inputs
expected result
actual  result
expected result GraphQLactual result GraphQL
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

200200
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
200200

SCR_NHSSign CR by NHS with DS only
    • token
    • id
    • json with signed content
    • surname
    • edrpou
422422 - "document must contain 1 signature and 1 stamp but contains 1 signature and 0 stamps"

SCR_NHSSign CR by NHS with stump only
  • token
  • id
  • json with signed content
  • surname
  • edrpou
422422 - "document must contain 1 signature and 1 stamp but contains 0 signatures and 1 stamp"

SCR_NHSSing CR by NHS by DS twice
  • token
  • id
  • json with signed content
  • surname
  • edrpou
422422 - "document must contain 1 signature and 1 stamp but contains 2 signatures and 0 stamps"

SCR_NHSSing CR by NHS by stump twice
  • token
  • id
  • json with signed content
  • surname
  • edrpou
422422 - "document must contain 1 signature and 1 stamp but contains 0 signatures and 2 stamps"

SCR_NHSSing CR by NHS both by DS and stump twice
  • token
  • id
  • json with signed content
  • surname
  • edrpou
422422 - "document must contain 1 signature and 1 stamp but contains 2 signatures and 2 stamps"

SCR_NHSSign CR by NHS by DS and stump with different  surname in DS and DB
  • token
  • id
  • json with signed content
  • surname
  • edrpou
422422 - "DRFO does not match signer drfo"

SCR_NHSSign CR by NHS Signer, login with NHS Admin
  • token
  • id
  • json with signed content
  • surname
  • edrpou
200200

SCR_NHSSign CR by NHS with correct DS and incorrect stump
  • token
  • id
  • json with signed content
  • surname
  • edrpou
422can't reproduce now as have only one and correct stump

SCR_NHSSign CR by NHS with incorrect DS and correct stump
  • token
  • id
  • json with signed content
  • surname
  • edrpou
422422 - "DRFO does not match signer drfo"