n/n | Description | Inputs | expected result | actual result | expected result GraphQL | actual result GraphQL |
---|---|---|---|---|---|---|
SCR_NHS1 | Sign Contract Request without scope |
| 403 | 403, "Your scope does not allow to access this resource. Missing allowances: contract_request:sign" | ||
SCR_NHS2 | Sign Contract request by MSP |
| 403 | 403,Your scope does not allow to access this resource. Missing allowances: contract_request:sign |
SCR_NHS3 | Sign Contract Reuqest in status<>'APPROVED' |
| 422 | 422, Incorrect status of contract_request to modify it | "errors": [ { "extensions": { "code": "CONFLICT" }, "message": "Incorrect status of contract_request to modify it", "path": [ "signContractRequest" ] } demo+ | |
SCR_NHS4 | Sign Contract Reuqest with ID doesn't exist |
| 404 | 404 | ||
SCR_NHS5 | Sign contract request with drfo<>nhs_signer_id.party.tax_id |
| 422 | 422, Does not match the signer drfo | { "errors": [ "DRFO does not match signer drfo", "has invalid format" ], "extensions": { "code": "UNPROCESSABLE_ENTITY" }, "message": "Validation error", "path": [ "signContractRequest" ] } demo+ | |
SCR_NHS6 | Sign contract request with renamed division |
| 422 |
there is no compare to saved data
422, Signed content does not match the previously created content | { "extensions": { "code": "UNPROCESSABLE_ENTITY" }, "message": "Signed content does not match the previously created content", "path": [ "signContractRequest" ] demo+ | |||||
SCR_NHS7 | Sign Signed contract request |
| 422 | 422, The contract was already signed by NHS | { "extensions": { "code": "UNPROCESSABLE_ENTITY" }, "message": "The contract was already signed by NHS", "path": [ "signContractRequest" ] } | |
SCR_NHS8 | Sign contract request with invalid start_date |
| 422 | 422, Start date must be greater than create date | ||
SCR_NHS9 | Sign contract request with token by NHS and not signer |
| 200 | 200 | 200 | 200 |
SCR_NHS10 | Sign contract request with contract_number and terminated contract by this contract_number |
| 409 | 409, Parent contract can’t be updated | ||
SCR_NHS11 | Sign CR by NHS with DS and stamp |
| 200 | 200 | ||
SCR_NHS | Sign CR by NHS with DS only |
| 422 | 422 - "document must contain 1 signature and 1 stamp but contains 1 signature and 0 stamps" | ||
SCR_NHS | Sign CR by NHS with stump only |
| 422 | 422 - "document must contain 1 signature and 1 stamp but contains 0 signatures and 1 stamp" | ||
SCR_NHS | Sing CR by NHS by DS twice |
| 422 | 422 - "document must contain 1 signature and 1 stamp but contains 2 signatures and 0 stamps" | ||
SCR_NHS | Sing CR by NHS by stump twice |
| 422 | 422 - "document must contain 1 signature and 1 stamp but contains 0 signatures and 2 stamps" | ||
SCR_NHS | Sing CR by NHS both by DS and stump twice |
| 422 | 422 - "document must contain 1 signature and 1 stamp but contains 2 signatures and 2 stamps" | ||
SCR_NHS | Sign CR by NHS by DS and stump with different surname in DS and DB |
| 422 | 422 - "DRFO does not match signer drfo" | ||
SCR_NHS | Sign CR by NHS Signer, login with NHS Admin |
| 200 | 200 | ||
SCR_NHS | Sign CR by NHS with correct DS and incorrect stump |
| 422 | can't reproduce now as have only one and correct stump | ||
SCR_NHS | Sign CR by NHS with incorrect DS and correct stump |
| 422 | 422 - "DRFO does not match signer drfo" |