n/n | Description | Test Case Inputs | Expected Result | Step by step Script | Actual Result |
---|---|---|---|---|---|
CIT1 | Create INNM Dosage |
| Response 200 INNM Dosages created. Saved to DB |
| |
CIT2 | Create INNM Dosage with 0 ingredients |
| Response 422 message: expected the value to be > 0 |
| |
CIT3 | Create innm Dosage with not active Innm |
| Response 422 message: "Innm in ingredients must be active!" |
| |
CIT4 | Create innm Dosage with 2 is_active_subst ingredients |
| Response 422 message: "One of ingredients must be is active Innm!" |
| |
CIT5 | Create innm Dosage 1 ingredient and is_promary=false |
| Response 422 message: "One of ingredients must be is active Innm!" |
| |
CIT6 | Create innm Dosage with 2 ingredients is_active=true & is_active=false |
|
| Response 201 INNM Dosage created. Saved to DB |
| |||
CIT7 | Create innm Dosage with 2 ingredients with the same id |
| Response 422 |
| |
CIT8 | Create innm Dosage not by NHS Admin |
| Response 403 Message: Your scope does not allow to access this resource. Missing allowances: innm_dosage:write |
| |
CIT9 | Deactivate INNM Dosage |
| Response 201 |
| |
CIT10 | Deactivate not active INNM Dosage |
| Response 404 |
| |
CIT11 | Deactivate INNM Dosage with active medication |
| Response 404 |
|