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 |
| Response - 200 Send SMS on Create person request | Create, Approve, Sign person request | ||
PR2 | Create adult Person with 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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
| Validation error - 422 | Person1 - Create, Approve, Sign person request. Reset auth method Person 1 - Update person request | |||
...