n/n | Description | Inputs | Expected Result | Step by Step Script | Actual Result |
---|
CRT1 | Create Innm | - Authorization - NHS Admin
- name - New, Valid
- name_original - New, Valid
- sctid- new, Valid
| Response 201 Innm saved to DB with status is_active=true | - Login as NHS Admin
- Create Innms
| |
CRT2 | Create Innm not by NHS Admin | - Authorisation - Doctor
- name - New, Valid
- name_original - New, Valid
- sctid - new, Valid
| Response 403 Message: Your scope does not allow to access this resource. Missing allowances: Innm:write" | - Login as MIS Admin
- Create new Innms not by NHS Admin
| |
CRT3 | Create Innm with name exists in DB | - Authorization - NHS Admin
- name - Old, Valid
- name_original - New, Valid
- sctid - new, Valid
| Response 201 Innm saved to DB with status is_active=true | - Login as NHS Admin
- Create Innms with same name and different SCTID
| |
CRT4 | Create new Innm with no valid name | - Authorization - NHS Admin
- name - ""
- name_original - New, Valid
- sctid - new, Valid
| Response 422 message: can't be blank | - Login as NHS Admin
- Create Innms with empty name
| |
CRT5 | Create new Innm without name | - Authorization - NHS Admin
- name - NO
- name_original - New, Valid
- sctid - new, Valid
| Responce 422 message: required property name was not present | - Login as NHS Admin
- Create Innms without name
| |
CRT6 | Create Innm without scopes | - Authorization - NO
- name - New, Valid
- name_original - New, Valid
- sctid - new, Valid
| Responce 401 message: Authorization header is not set or doesn't contain Bearer token | - Login as NHS Admin
- Create Innms without scopes
| |
CRT7 | Create Innm with no valid name | - Authorization - NHS Admin
- name - New, Not Valid (ex. Amiodarone)
- name_original - New, Valid
- sctid - new, Valid
| Response 422 Message: string does not match pattern \"^[А-Яа-яЁёЇїІіЄєҐґ\\\\- ]*$\" | - Login as NHS Admin
- Create Innms with not valid name
| |
CRT8 | Create Innm with no valid name original | - Authorization - NHS Admin
- name - New, Valid
- name_original - New, Not Valid
- sctid - new, Valid
| Response 422 Message: string does not match pattern \"^[a-zA-Z\\\\- ]*$\" | - Login as NHS Admin
- Create Innms with not valid name original
| |
CRT9 | Create Innm with no valid sctid | - Authorization - NHS Admin
- name - New, Valid
- name_original - New, Valid
- sctid- new, Not Valid
| Response 422 Message: string does not match pattern \"^[0-9]{8}$\" | - Login as NHS Admin
- Create Innms with not valid SCTID
| |
CRT10 | Deactivate Innms | - Authorization - NHS Admin
- is_active - false
| Response 201 Innm updated in DB with status is_active=false | - Login as NHS Admin
- Update Innm
| |