...
n/n | Description | Inputs | Expected Result | Step by Step Script | Actual Result |
---|---|---|---|---|---|
CRT1 | Create SubstanceInnm |
| Response 201 Substance saved Innm saved to DB with status is_active=true |
| |
CRT2 | Create substance not Innm not by NHS Admin |
| Response 403 Message: Your scope does not allow to access this resource. Missing allowances: substanceInnm:write" |
| |
CRT3 | Create substance with Innm with name exists in DB |
| Response 422Message: has already been taken201 Innm saved to DB with status is_active=true |
| |
CRT4 | Create new substance without Innm with no valid name |
| Response 422 message: can't be blank |
| |
CRT5 | Create new substance without Innm without name |
| Responce 422 message: required property name was not present |
| |
CRT6 | Create substance without Innm without scopes |
| Responce 401 message: Authorization header is not set or doesn't contain Bearer token |
| |
CRT7 | Create substance with Innm with no valid name |
| Response 422 Message: string does not match pattern \"^[А-Яа-яЁёЇїІіЄєҐґ\\\\- ]*$\" |
| |
CRT8 | Create substance with Innm with no valid name original |
| Response 422 Message: string does not match pattern \"^[a-zA-Z\\\\- ]*$\" |
| |
CRT9 | Create substance Innm with no valid sctid |
| Response 422 Message: string does not match pattern \"^[0-9]{8}$\" |
| |
CRT10 | Deactivate Innms |
| Response 201 Innm updated in DB with status is_active=false |
|