Versions Compared

Key

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

n/n Test Case

Test Case Description

Test Case Inputs

Expected Result

Step by Step Script

PR1

Create adult Person with auth method.type = OTP

  • New person

  • Person.age > no_self_auth_age

  • auth_method.type = OTP

Response - 200

Send SMS on Create person request

Create, Approve, Sign person request

PR2

Create adult Person with auth method.type = OFFLINE

  • New person

  • Person.age > no_self_auth_age

  • auth_method.type = OFFLINE

Response - 200

Download docs

Create, Approve, Sign person request

PR3

Create adult Person with auth method.type = THIRD_PERSON where third_person has auth method.type = OTP/ OFFLINE

  • New person 1

  • Person.age > no_self_auth_age

  • auth_method.type = THIRD_PERON (person 2)

  • Person2.auth_method.type= OTP/OFFLINE

Validation error - 422

`Adult person must be authorized OTP or OFFLINE`

Person2 - Create, Approve, Sign person request

Person 1 - Create person request

PR5PR4

Create adult Person with auth method.type = THIRD_PERSON where third_person doesn’t have active auth method

  • New person 1

  • Person.age > no_self_auth_age

  • auth_method.type = THIRD_PERON (person 2)

  • Person2 doesn’t have active auth_method

Validation error - 422

`Adult person must be authorized OTP or OFFLINE`

Person2 - Create, Approve, Sign person request. Reset auth method

Person 1 - Create person request

PR6PR5

Create child with auth method.type = OTP

PR7

Create child with auth /OFFLINE

  • New person

  • Person.age < no_self_auth_age

  • auth_method.type = OTP/OFFLINE

PR8

Validation error - 422

`Underage person must be authorized with one and only one third person`

Create person request

PR6

Create child with auth method.type = THIRD_PERSON where third_person has auth method.type = OTPPR9

  • New person 1

  • Person.age < no_self_auth_age

  • auth_method.type = THIRD_PERON (person 2)

  • Person2.auth_method.type= OTP

Response - 200

Person2 - Create, Approve, Sign person request.

Person1 - Create, Approve, Sign person request.

PR7

Create child with auth method.type = THIRD_PERSON where third_person has auth method.type = OFFLINE

  • New person 1

  • Person.age < no_self_auth_age

  • auth_method.type = THIRD_PERON (person 2)

  • Person2.auth_method.type= OFFLINE

PR10

Validation error - 422

`THIRD PERSON can't have OFFLINE self auth method type`

Person2 - Create, Approve, Sign person request.

Person1 - Create, Approve, Sign person request.

PR8

Create child with auth method.type = THIRD_PERSON where third_person doesn’t have active auth method

  • New person 1

  • Person.age < no_self_auth_age

  • auth_method.type = THIRD_PERON (person 2)

  • Person2 doesn’t have active auth_method

Validation error - 422

`THIRD PERSON doesn't have active valid authentication methods`

Person2 - Create, Approve, Sign person request. Reset auth method.

Person1 - Create, Approve, Sign person request.

Update adult person with type = OTP

Update adult person with type = OFFLINE

Update adult person, who doesn’t have active auth method

Person.age > no_self_auth_age

  • Person doesn’t have active auth_method

Validation error - 422

Person1 - Create, Approve, Sign person request. Reset auth method

Person 1 - Update person request

...