n/n | Description | Inputs | expected result | actual result |
---|---|---|---|---|
PC1 | Prolongate Contract without scope |
| 403 | 403, missing contract:update |
PC2 | Prolongate Contract by MSP |
| 403 | 403, contract:update |
PC3 | Prolongate Contract with ID doesn't exist |
| 404 | 404, not_found |
PC4 | Prolongate Contract with status = TERMINATED |
| 409, Incorrect contract status to modify it | 409, |
PC5 | Prolongate Contract with not merged contractor_legal_entity |
| 422 | 422, Contract for this legal entity must be resign with standard procedure |
PC6 | Prolongate Contract with invalid end_date |
| 422 | 422, End date should be greater then now |
PC7 | Prolongate contract with closed legal entity |
| 409200 | 409, Contractor legal entity is not active |
PC8 | Prolongate Contract |
| 200, updated end_date | 200, updated |
...