n/n | Description | Inputs | expected result | actual result | expected result GraphQL | actual result GraphQL |
---|---|---|---|---|---|---|
DCR1 | Terminate Contract without scope |
| 403 | 403, Your scope does not allow to access this resource. Missing allowances: contract:terminate | 403 | "extensions": { "code": "FORBIDDEN", "exception": { "missingAllowances": [ "contract:terminate"]}}, "message": "Current client is not allowed to access this resource", |
DCR2 | Terminate Terminated Contract ( in status='TERMINATED') |
| 409 | 409, Not active contract can't be updated | 409 | "code": "CONFLICT" Not active contract can't be updated |
DCR3 | Terminate Contract with ID doesn't exist |
| 404 | 404, not_found | 404 | "code": "NOT_FOUND" Contract not found |
DCR4 | Terminate contract |
of another MSP (in case scope is allowed) |
| 403 | 403, Legal entity is not allowed to this action by client_id | 403 | 401 "message": "Invalid access token", "type": "access_denied" | |
DCR5 | Terminate contract by NHS |
| 200, status = 'TERMINATED', event added to event_manager | 200, status = 'TERMINATED', | 200, status = 'TERMINATED', event added to event_manager | 200, status = 'TERMINATED', |