ЕСОЗ - публічна документація
Get Printout content by contract ID tests
n/n | description | inputs | step by step script | expected result | actual result | actual result FE |
---|---|---|---|---|---|---|
1 | Get Printout content by Contract ID | contract ID in status:
|
| 200 printout_content | 200 printout_content | |
2 | Get Printout content by CR ID by LE | Get Printout content by Contract ID | -//- | 200 printout_content | 200 printout_content | |
3 | Get Printout content by Contract ID by LE for another LE | Get Printout content by CR ID LE in token <> LE in CR | -//- | 403 "User is not allowed to perform this action" | 403, User is not allowed to perform this action | |
4 | Get Printout content by Contract ID by not active user | Get Printout content by CR ID
| -//- | 403 - (user is not active) | ||
5 | Get Printout content by Contract ID w/o scopes | -//- | 403 | 403, Your scope does not allow to access this resource. Missing allowances: contract:read | ||
6 | Get Printout content by Contract ID w/o token | Get Printout content by CR ID | -//- | 401, Authorization header is not set or doesn't contain Bearer token | ||
7 | Get Printout content by Contract ID in Terminated status | contract ID in status
| -//- | 409 Error ('Incorrect status of contract_request to generate printout form') | 501 | |
8 | Get Printout content by incorrect Contract ID | Get Printout content by incorrect Contract ID | -//- | 404 ("Contract request with id=$id doesn't exist") | 404, not_found | |
9 | Get Printout content by Contract ID by blocked user | -//- | 401 | 401, Invalid access token |
ЕСОЗ - публічна документація