n/n | description | inputs | expected result | step by step script | actual result |
---|---|---|---|---|---|
CDR1 | Create Declaration Request |
|
200, created declaration request |
|
| |||
CDR2 | Create Declaration Request w/o scopes |
| 403, forbidden |
| 403, forbidden, Your scope does not allow to access this resource. Missing allowances: declaration_request:write |
CDR3 | Create Declaration Request person<>token.person |
|
403 |
| 403, forbidden | |||
CDR4 | Create Declaration Request inactive division |
| 422 |
| 422 "description": "Division is not active" |
CDR5 | Create Declaration Request dismissed doctor |
| 422 |
| 422, Invalid employee status |
CDR6 | Create Declaration Request different tax_id in user and person |
| 422 |
| 422, Person's tax ID in not valid user+ - person - -422 user- -person+ - 200 |
CDR7 | Create Declaration Request doctor doesn't belong to division |
|
200 |
| 200 | |||
CDR8 | Create Declaration Request doctor doesn't meet patients' age |
| 422 |
| 422 Doctor speciality does not meet the patient's age requirement |
CDR9 | Create Declaration Request for patient with existing declaration and authentificaion_method |
|
200, N/A |
| 200, N/A | |
CDR10 | Create Declaration Request with employee_type<>DOCTOR |
| 422 |
- employee_id → declaration_qty=2000
| 422, Employee ID must reference a doctor |