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