ЕСОЗ - публічна документація

Decline Contract Request tests

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
422422, Does not match the signer drfo
DCR8Decline contract Request with invalid contractor_legal_entity.drfo
  • token
  • id
  • json with invalid signed content
422400, Signed content doesn't match with contract request

DCR9Decline CR by NHS with Admin surname = DS surname 
  • token
  • id
  • tax_id
  • surname
200200
DCR10Decline CR by NHS with Admin surname <> DS surname 
  • token
  • id
  • tax_id
  • surname
422

422

Signer surname does not match with current user last_name

DCR11Decline CR by NHS with different edrpou in legal_entity and DS
  • token
  • id
  • tax_id
  • surname
422

422

EDRPOU is not match with signer drfo

DCR12Decline CR by NHS employee but not NHS signer in CR with DS edrpou = LE edrpou and DS surname = party surname
  • token
  • id
  • tax_id
  • surname
200200

ЕСОЗ - публічна документація