n/n | Description | Inputs | expected result | actual result | expected result GraphQL | actual result GraphQL |
---|---|---|---|---|---|---|
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 | { demo+ | ||||
3 | Update Assignee with non existing contract request |
| 404 | 404, not found | ||
4 | Update Assignee with not valid contract request ID |
|
403 | 403, forbidden | "errors": [ { "extensions": { "code": "NOT_FOUND" }, "message": "Employee not found", "path": [ "assignContractRequest"]}] demo+ | ||||
5 | Assign employee from another LE |
| 422, 'Invalid legal entity id' | 422, Employee doesn't belong to legal_entity | "errors": [ demo+ | |
6 | Assign dismissed employee |
| 409, Invalid employee status | 409, Employee must be active | "errors": [ demo+ | |
7 | Assign employee who doesn't have required role |
|
403, 'Employee doesn't have required role' | 403, Employee doesn't have required role | "errors": [ { "extensions": { "code": "FORBIDDEN" }, "message": "FORBIDDEN", "path": [ "assignContractRequest" ] | ||||
8 | Assign valid employee for valid request |
| 200, status = 'IN_PROCESS', event added to event_manager | 200, IN_PROCESS | 200 | |
9 | Reassign another valid employee |
| 200, status = 'IN_PROCESS', event added to event_manager | 200, IN_PROCESS | 200 | |
10 | Send empty json |
| 422, required property employee_id was not present | 422, required property employee_id was not present | { "message": "Argument \"input\" has invalid value $input.\nIn field \"id\": Expected type \"ID!\", found null.\nIn field \"employeeId\": Expected type \"ID!\", found null."] } |