n/n | Description | Test Case Inputs | Expected Result | Step by step Script | Actual Result |
---|---|---|---|---|---|
Create INNM |
| Response 200 INNMS created. Saved to DB |
| ||
Create INNM with 0 ingredients |
| Response 422 message: expected the value to be > 0 |
| ||
Create innm with not active substance |
| Response 422 message: "Substance in ingredients must be active!" |
| ||
Create innm with 2 is_active_subst ingredients |
| Response 422 message: "One of ingredients must be is active substance!" |
| ||
Create innm 1 ingredient and is_active_substance=false |
| Response 422 message: "One of ingredients must be is active substance!" |
| ||
Create innm with 2 ingredients is_active=true & is_active=false |
| Response 201 INNM created. Saved to DB |
| ||
Create innm with 2 ingredients with the same id |
| Response 422 |
| ||
Create innm not by NHS Admin |
| Response 403 Message: Your scope does not allow to access this resource. Missing allowances: innm:write |
| ||
Deactivate INNM |
| Response 201 |
| ||
Deactivate not active INNM |
| Response 404 |
|
ЕСОЗ - публічна документація
General
Content
Integrations