n/n Test Cases | Test Cases Description | Test Cases Inputs | Expected Results | Step by Step Scripts | Actual Result |
---|
ER1 | Register new Doctor employee by Doctor | - party - New
- employee_type - Doctor
- specialities - PEDIATRICIAN
| Response 401 - access_denied - Invalid access token
| - Get doc authorize token
- Authorize scopes 4 doc
- Exchange grant token 4 doc
- Create employee request
|
|
ER2 | Register new Doctor employee by Owner | - party - New
- employee_type - Doctor
- specialities - PEDIATRICIAN
- email - your email
| Response 200 - sent link to email "Запрошення до співпраці з eHealth"
- Employee saved in DB with status APPROVED
| - Get owner authorize token
- Authorize scopes owner
- Exchange grant token owner
- Create employee request
- Pass register steps via link in email
|
|
ER3 | Register old employee by Owner | - party - Old
- employee_type - New
- specialities - no
- email - your email
| Response 200 ? | - Get owner authorize token
- Authorize scopes owner
- Exchange grant token owner
- Create employee request
- Pass register steps via link in email
|
|
ER4 | Create employee request W/O authorization | - party - New
- employee_type - Doctor
- specialities - PEDIATRICIAN
- Authorization Header - No
| Response 401 | - Create employee request - W/O authorization
|
|
ER5 | Create employee request for different legal entity | - legal_entity_id - New
- division_id - Old
| Response 200 - Employee created for authorized legal entity
| - Get owner authorize token
- Authorize scopes owner
- Exchange grant token owner
- Create employee request by another legal_entity
|
|
ER6 | Create Employee request without the block "Doctor" | - party - New
- employee_type - Doctor
- Doctor - No
| Response 422 | - Get owner authorize token
- Authorize scopes owner
- Exchange grant token owner
- Create employee request
|
|
ER7 | Create employee request with incorrect tax number | - party - New
- employee_type - Doctor
- tax_id - 00000000
| Response 422 | - Get owner authorize token
- Authorize scopes owner
- Exchange grant token owner
- Create employee request
|
|
ER8 | Create employee request with incorrect employee_type | - employee_id - Doctor's id
- employee_type - OWNER
- Doctor - No
| Response 409 - employee_type doens't match
| - Get owner authorize token
- Authorize scopes owner
- Exchange grant token owner
- Create employee request
|
|
ER9 | Update DOCTOR via employee request | - employee_id - Doctor's id
- employee_type - Doctor
- tax_id - Doctor's tax_id
- email - Doctor's email
| Response 200 | - Get owner authorize token
- Authorize scopes owner
- Exchange grant token owner
- Get Employees doctor
- Create employee request
|
|
ER10 | Update dismissed DOCTOR via employee request | - employee_id - wrong
- employee_type - Doctor
- tax_id - Doctor's tax_id
- email - Doctor's email
| Response 409 | - Get owner authorize token
- Authorize scopes owner
- Exchange grant token owner
- Get Employees doctor
- Create employee request
|
|
ER11 | Create Hr with doctor information | - party - New
- employee_type - HR
- Doctor - Yes
| Response 422 - field doctor is not allowed
| - Get owner authorize token
- Authorize scopes owner
- Exchange grant token owner
- Create employee request
|
|
ER12 | Create employee with future birth_date | - party - New
- employee_type - HR
- Doctor - No
- birth_date - future date
| Response 422 | - Get owner authorize token
- Authorize scopes owner
- Exchange grant token owner
- Create employee request
|
|
ER13 | Register new Admin employee by Owner | - party - New
- employee_type - ADMIN
- Doctor - No
| Response 200 - sent link to email "Запрошення до співпраці з eHealth"
- Employee saved in DB with status APPROVED
| - Get owner authorize token
- Authorize scopes owner
- Exchange grant token owner
- Create employee request
|
|