Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

ви


n/nDescriptionInputsExpected ResultStep by Step ScriptActual Result

Actual GraphQL Result

RPAMT1

NHS Admin call reset person authentication method

  • Authorization - NHS Admin  
  • scope Valid
    (person:reset_authentication_method)
  • Person.id - Valid
  • Person
_id
  • .status = ACTIVE - Valid
  • Person.authentication_methods [0].type = OTP- Valid

Response 200

Get list of drugs

Saved in DB `mpi.persons.authentication_methods` value = " { “type”: “NA”  }. ]"

  1. Login as NHS admin 
  2. Call
ResetPersonAuthenticationMethod
  1. ResetPerson AuthenticationMethod()
  •  
200
RPAMT2Doctor call WS direct
  • Authorization - Doctor   
  • scope
Invalid
  • missing (person:reset_authentication_method)
  • Person
_id
  • .id - Valid
  • Person.status = ACTIVE - Valid

Response 403


  1. Login as Doctor
Call ResetPersonAuthenticationMethod
  1. Call ResetPerson AuthenticationMethod()
  •  
401
RPAMT1
RPAMT3

NHS Admin call reset person authentication method with bad person_id

  • Authorization - NHS Admin  
  • scope Valid
    (person:reset_authentication_method)
  • Person
_
  • .id -
Valid
  • Invalid

Response

200Get list of drugs

404

Not found

  1. Login as NHS admin 
  2. Call
ResetPersonAuthenticationMethod
  1. ResetPerson AuthenticationMethod()
  •  
RPAMT1
404,
Person not found
RPAMT4

NHS Admin call reset person authentication method with bad status of person

  • Authorization - NHS Admin  
  • scope Valid
    (person:reset_authentication_method)
  • Person
_
  • .id - Valid
  • Person.status = INACTIVE - Invalid

Response

200Get list of drugs

409

Not found

  1. Login as NHS admin 
  2. Call
ResetPersonAuthenticationMethod
  1. ResetPerson AuthenticationMethod()
  •  . 
CONFLICT
Invalid status MPI for this action
RPAMT5Reset reseted auth method
  • Authorization - NHS Admin  
  • scope Valid
    (person:reset_authentication_method)
  • Person.id - Valid
  • Person.status = Active
  • Auth method = NA
200
  1. Login as NHS admin 
  2. Call ResetPerson AuthenticationMethod()

200