...
...
...
...
...
...
...
...
...
...
...
...
...
...
ви
- WS = GetDrugs()
- Authorization - Doctor of MSP
- MSP access_type = direct, Valid
Response 200
Get list of drugs
- Login as Doctor
- Call GetDrugs()
n/n | Description | Inputs | Expected Result | Step by Step Script | Actual Result |
---|
Doctor call WS over broker
- WS = GetDrugs()
- Authorization - Doctor of MSP
- MSP access_type = broker, Valid
- API-key = MIS secret, Valid
- MIS broker_scopes = drugs:read, Valid
Response 200
Get list of drugs
- Login as Doctor
- Call GetDrugs()
Actual GraphQL Result | ||||||
---|---|---|---|---|---|---|
RPAMT1 | NHS Admin call reset person authentication method |
| Response 200 Saved in DB `mpi.persons.authentication_methods` value = "[ { “type”: “NA” }. ]" |
|
| 200 |
RPAMT2 | Doctor call WS direct |
| Response 403 |
|
| 401 |
RPAMT3 | NHS Admin call reset person authentication method with bad person_id |
| Response 404 Not found |
|
| 404, Person not found |
RPAMT4 | NHS Admin call reset person authentication method with bad status of person |
| Response 409 Not found |
|
| CONFLICT Invalid status MPI for this action |
RPAMT5 | Reset reseted auth method |
| 200 |
| 200 |