n/n | Description | Inputs | expected result | actual result |
---|---|---|---|---|
1 | Update Assignee without scope |
| 403 | 403, Your scope does not allow to access this resource. Missing allowances: contract_request:update |
2 | Update Assignee with Contract Request status<>'NEW/IN_PROCESS' |
| 409, Incorrect status of contract_request to modify it | 409, Incorrect status of contract_request to modify it |
3 | Update Assignee with non existing contract request |
| 404 | 404, not found |
4 | Update Assignee with not valid contract request ID |
| 403 | 403, forbidden |
5 | Assign employee from another LE |
| 422, 'Invalid legal entity id' | 422, Employee doesn't belong to legal_entity |
6 | Assign dismissed employee |
| 409, Invalid employee status | 422, Employee must be active |
7 | Assign employee who doesn't have required role |
| 403, 'Employee doesn't have required role' | 403, Employee doesn't have required role |
8 | Assign valid employee for valid request |
| 200, status = 'IN_PROCESS', event added to event_manager | 200, IN_PROCESS |
9 | Reassign another valid employee |
| 200, status = 'IN_PROCESS', event added to event_manager | 200, IN_PROCESS |
ЕСОЗ - публічна документація
General
Content
Integrations