ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

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

PR4

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

PR5

Create child with auth method.type = OTP/OFFLINE

  • New person

  • Person.age < no_self_auth_age

  • auth_method.type = OTP/OFFLINE

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 = OTP

  • 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

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

  • No labels