ЕСОЗ - публічна документація
Update MPI test
n/n test | Description | inputs | expected result | step by step script | actual result |
---|---|---|---|---|---|
1 | update mpi with valid token | signed person json | person is updated | sing-in update mpi | 200 |
2 | update other mpi | signed person json | 403 | 403 | |
3 | update mpi with expired token | 401 "The access token expired" | 401 | ||
4 | update mpi with different tax_id in user and person | 403 "person is incorrect and could not be updated" | 403 | ||
5 | try to change tax_id, first or and last name | 409 $.tax_id($.first_name...) could not be changed | 200, but first or and last name are not changed | ||
6 | enter phone number that is not verified | 422 - authentication number is not verified | "description": "The phone number is not verified." | ||
7 | sign update with invalid DS, different tax_id | 409 (Person that loged in, person that is changed and person that sign should be the same) | 409 | ||
8 | do not sign update | ||||
9 | set "process_disclosure_data_consent"=false | ||||
10 | change mpi w/o Cabinet | ||||
11 | change w/o necessary scopes ( scope "person:write") | 403 - "Your scope does not allow to access this resource. Missing allowances: person:write" | 403 | ||
12 | update inactive person | 409 | 422 - "message": "Person is not active" | ||
13 | update blocked person | 401 | |||
14 | enter incorrect dictionary data | 422 - value is not allowed in enum | 422 | ||
15 | change authentication number | 422 - OFFLINE method could not be used in cabinet | 422 | ||
16 | enter incorrect address | 422 | 422 | ||
17 | enter only one type of address | 422 | 422 | ||
18 | update mpi with incorrect birth day | 422 | 422 |
ЕСОЗ - публічна документація