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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

n/n
Description
Inputs
expected result
actual  result
1Update Assignee without scope
  • token
  • id
  • json
403403, Your scope does not allow to access this resource. Missing allowances: contract_request:update
2Update Assignee with Contract Request status<>'NEW/IN_PROCESS'
  • token 
  • id request in status<>'NEW/IN_PROCESS'
409, Incorrect status of contract_request to modify it409, Incorrect status of contract_request to modify it
3Update Assignee with non existing contract request 
  • token 
  • non existing id
404
404, not found
4Update Assignee with not valid  contract request ID
  • token
  • not valid contract request ID
403 403, forbidden
5Assign employee from another LE
  • token
  • id
  • incorrect employee_id
422, 'Invalid legal entity id'

422, Employee doesn't belong to legal_entity

6Assign dismissed employee
  • token
  • id
  • incorrect employee status

409, Invalid employee status

409, Employee must be active

7Assign employee who doesn't have required role 
  • token
  • id
  • incorrect employee role
403, 'Employee doesn't have required role'403, Employee doesn't have required role
8Assign valid employee for valid request 
  • token
  • id
  • assignee_id

200, status = 'IN_PROCESS',

event added to event_manager

200, IN_PROCESS

9Reassign another valid employee
  • token
  • id
  • assignee_id
 

200, status = 'IN_PROCESS',

event added to event_manager

 

200, IN_PROCESS

10Send empty json
  • token
  • id
422, required property employee_id was not present422, required property employee_id was not present
  • No labels