n/n | description | inputs | expected_result | actual_result | expected_result graphQL | actual_result graphQL |
---|---|---|---|---|---|---|
ACR1 | Approve Contract Request not by NHS Signer |
| 403 | |||
ACR2 | Approve not updated Contract Request |
| 422 | 422 | ||
ACR3 | Approve Contract Request which doesn't exist |
| 404 | 404, not found | ||
ACR3.1 | Approve Contract Request in status<>'IN_PROCESS' | "errors": [ {"extensions": { "code": "CONFLICT"}, "message": "Incorrect status of contract_request to modify it", "path": [ "approveContractRequest"]}] | "errors": [ {"extensions": { "code": "CONFLICT"}, "message": "Incorrect status of contract_request to modify it", "path": [ "approveContractRequest"]}] demo+ | |||
ACR4 | Approve Contract Request with contractor legal entity status<>'ACTIVE' |
| 422 | 422 | "errors": [ | |
ACR5 | Approve Contract Request with contractor_owner_id is_active=false |
| 422 | 422 | "errors": [ { "description": "Contractor owner must be active within current legal entity in contract request", "params": [], "rule": "invalid" } ], "extensions": { "code": "UNPROCESSABLE_ENTITY" }, "message": "Validation error", "path": [ "approveContractRequest"]} demo+ | |
ACR6 | Approve Contract Request with invalid start_date |
| 422 | 422, Start date must be greater than create date | "errors": [ { "description": "Start date must be greater than current date", "params": [], "rule": "invalid" } ], "extensions": { "code": "UNPROCESSABLE_ENTITY" }, "message": "Validation error", "path": [ "approveContractRequest"]} demo+ | |
ACR7 | Approve valid Contract Request |
| 200, event added to event manager | data | data | |
ACR7.1 | Approve Contract Request id in signed content <> id in input | { "extensions": { "code": "BAD_REQUEST" }, "message": "Contract request id doesn't match with id in signed content", "path": [ "approveContractRequest"]} demo+ | ||||
ACR8 | Approve CR with edrpou=10 symbols |
| 200 | 200 | ||
ACR9 | Approve CR with different surname in DS and employee |
| 422 | 422 Signer surname does not match with current user last_name | "errors": [ { "description": "Signer surname does not match with current user last_name", "params": [], "rule": "invalid" } ], "extensions": { "code": "UNPROCESSABLE_ENTITY" }, "message": "Validation error", "path": [ "approveContractRequest" ] } | |
ACR10 | Approve CR with edrpou=8 symbols |
| 200 | 200 | ||
ACR11 | Approve CR with different edrpou in legal_entity and DS |
| 422 | 422 | ||
ACR12 | Approve CR with different drfo in employee and DS |
| 422 | 422 | ||
ACR13 | Approve by employee DS with DS drfo = LE edrpou = 10 symbols |
| 200 | 200 | ||
ACR14 | Approve CR by NHS employee but not NHS signer in CR with DS edrpou = LE edrpou and DS surname = party surname |
| 200 | 200 |
Page Comparison
General
Content
Integrations