n/n | Description | Inputs | expected result | actual result | expected result GraphQL | actual result GraphQL | |
---|---|---|---|---|---|---|---|
UCR1 | Update Contract Request without scope |
| 403 | 403 | "extensions": { "code": "FORBIDDEN", "exception": { "missingAllowances": [ "contract_request:update"]} }, "message": "Current client is not allowed to access this resource", | "extensions": { "code": "FORBIDDEN", "exception": { "missingAllowances": [ "contract_request:update"]} }, "message": "Current client is not allowed to access this resource", | |
UCR2 | Update Contract Request by other role than `NHS ADMIN SIGNER` |
| 200 | 200 | |||
UCR3 | Update Contract Request in status<>'IN_PROCESS' |
| 422 | 422, Incorrect status of contract_request to modify it | "extensions": {"code": "CONFLICT"}, "message": "Incorrect status of contract_request to modify it", "path": [ "UpdateContractRequest" | "extensions": {"code": "CONFLICT"}, "message": "Incorrect status of contract_request to modify it", "path": [ "UpdateContractRequest" demo+ | |
UCR4 | Update Contract Reuqest with ID doesn't exist |
| 404 | 404 | 500, {"type{ NOT_FOUND" demo+ | ||
UCR5 | Update contract request with invalid price |
| 422 | 422, nhs_contract_price, must be greater than 0 |
| 500, {"type": "internal_error"} | "errors": [ { "description": "expected the value to be >= 0", "params": { "greater_than_or_equal_to": 0 }, "rule": "number" } ], "extensions": { "code": "UNPROCESSABLE_ENTITY" }, "message": "Validation error", "path": [ "updateContractRequest" ] } demo+ |
UCR6 | Update contract request with start_date | start_date<today | 422 | 422, Start date must be greater than create date | Start date must be greater than create date500 {"type": "internal_error"} | { demo+ | |
UCR7 | Update contract request using not valid nhs_payment_method |
| 422 | 422 | "message": "Argument \"input\" has invalid value $input.\nIn field \"nhsPaymentMethod\": Expected type \"NhsPaymentMethod\", found \"PAYMENT\"." | "message": "Argument \"input\" has invalid value $input.\nIn field \"nhsPaymentMethod\": Expected type \"NhsPaymentMethod\", found \"PAYMENT\"." | |
UCR8 | Update contract request without issue city |
| 200 | 200 | issueCity must be Cyrillic letters200 | ||
UCR9 | Update contract request with extra fields (msp data) |
| 422 | 422, schema does not allow additional properties | |||
UCR9 | Update updated contract request |
| 200 | 200 | data | data | |
UCR10 | Update nhs signer id |
|
in case employee
I receive 500, {"type": "internal_error"} | "errors": [ demo+ |
Page Comparison
General
Content
Integrations