n/n | Description | Inputs | expected result | actual result |
---|---|---|---|---|
1 | Update Assignee without scope |
| 403 | |
2 | Update Assignee with Contract Request status<>'NEW/IN_PROCESS' |
| 422 | |
3 | Update Assignee with non existing contract request |
| 404 | |
4 | Update Assignee with not valid contract request ID |
| 404 | |
5 | Assign employee from another LE |
| 422, 'Invalid legal entity id' | |
6 | Assign dismissed employee |
| 409, Invalid employee status | |
7 | Assign employee who doesn't have required role |
| 422, 'Employee doesn't have required role' | |
8 | Assign valid employee for valid request |
| 200, status = 'IN_PROCESS', event added to event_manager | |
9 | Reassign another valid employee |
| 200, status = 'IN_PROCESS', event added to event_manager | |
...