n/n | Description | Test case Inputs | Expected result | Step by Step Script | Actual Result |
---|---|---|---|---|---|
SU1 | register new person and new user |
| 200, create
|
|
|
SU2 | register new user for existing mpi.person |
| 200, update
create
|
|
|
SU3 | register new person for mithril.user |
| 200, create
update
|
|
|
SU4 | link existing person and existing mithril.user |
| 200, update
create
|
|
|
SU5 | existing matching person with status='INACTIVE' |
| create new mpi.person_id |
| update current person |
SU6 | update user with status is_blocked=true |
| 401, User blocked create person |
| 401, User blocked, create person updated user, linked tax_id |
SU7 | input incorrect OTP |
| 403 Error (`Invalid verification code`) |
| for existing user - 200, created for new user - 422, $otp |
SU8 | input password doesn't meet Password policy requirements |
| Password Policy |
| 422, Password does not meet complexity requirements |
SU9 | input email doesn't match jwt token |
| 409 Error (`Email in signed content is incorrect`) |
| 409, Email in signed content is incorrect |
SU10 | input name doesn't match name from DS |
| 422 Error (`Input name doesn't match name from DS`) |
| 409, Input last_name doesn't match name from DS Input first_name doesn't match name from DS |
SU11 | tax_id in payload<> DS.tax_id |
| 409 ('Invalid tax_id') |
| 409, Registration person and person that sign should be the same |
SU12 | input area & settlement_id settlement_name & doesn't match uaadresses |
| 422 |
|
422, |
$addresses.area | |||||
SU13 | invalid dictionary fields |
| 422 $field |
| |
SU14 | phone in authentication_methods doesn't match the phone with | invalid authentication_methods.phone | 422, 'incorrect authentication phone number' |
| 422, invalid code, $otp |