n/n Test Case | Test Case Description | Test Case Inputs | Expected Result | Step by Step Script | Actual result | Expected Result GraphQL | Actual Result GraphQL |
---|---|---|---|---|---|---|---|
LE1 | Register and verify |
legal entity | Response 200
|
|
LE2 | Register and verify |
legal entity with the same edrpou |
|
|
| Response 200
|
|
|
|
LE3 | Register |
legal entity wrong EDRPOU |
| Response 422
|
|
LE4 | Register |
legal entity wrong e-mail |
| Response 422
|
|
LE5 | Register |
legal entity wrong address |
| Response 422
|
|
LE6 | Register |
legal entity w/o scopes |
| Response 401
|
|
LE7 | Register |
legal entity empty short name |
| Response 422
|
|
LE8 | Register LE not allowed kveds |
| Response 422
|
| |||
LE9 | Register LE w/o legal form |
| Response 422
|
|
| |||||||
LE10 | Register closed legal entity |
| Response 409
|
| |||
LE11 | Deactivate LE |
| Response 200
|
| status='CLOSED' | status='CLOSED' | |
LE12 | Deactivate deactivated LE | legal entity id token | Legal entity is not ACTIVE and cannot be updated | Legal entity is not ACTIVE and cannot be updated | |||
LE13 | Deactivate LE without scope | legal entity id token | [ { "extensions": { "code": "FORBIDDEN", "exception": { "missingAllowances": [ "legal_entity:deactivate" ] } }, "message": "Current client is not allowed to access this resource", "path": [ "deactivateLegalEntity" ] } ] | [ { "extensions": { "code": "FORBIDDEN", "exception": { "missingAllowances": [ "legal_entity:deactivate" ] } }, "message": "Current client is not allowed to access this resource", "path": [ "deactivateLegalEntity" ] } ] | |||
LE14 | Update LE |
| Response 200 legat entity updated in DB with new parameters |
| |||
LE15 | Verify LE | "nhsVerified": true | "nhsVerified": true | ||||
LE16 | Verify LE without scope | "errors": [ { "extensions": { "code": "FORBIDDEN", "exception": { "missingAllowances": [ "legal_entity:nhs_verify" ] } }, "message": "Current client is not allowed to access this resource", "path": [ "nhsVerifyLegalEntity" ] } ] | "errors": [ { "extensions": { "code": "FORBIDDEN", "exception": { "missingAllowances": [ "legal_entity:nhs_verify" ] } }, "message": "Current client is not allowed to access this resource", "path": [ "nhsVerifyLegalEntity" ] } ] | ||||
LE17 | Verify verified LE | "errors": [ { "extensions": { "code": "CONFLICT"}, "message": "LegalEntity is VERIFIED and cannot be VERIFIED.", "path": [ "nhsVerifyLegalEntity"] } ] | "errors": [ { "extensions": { "code": "CONFLICT"}, "message": "LegalEntity is VERIFIED and cannot be VERIFIED.", "path": [ "nhsVerifyLegalEntity"] } ] | ||||
LE18 | Verify LE which doesn't exist | "errors": [ { "extensions": { "code": "NOT_FOUND" }, "message": "LegalEntity not found", "path": [ "nhsVerifyLegalEntity" ] } ] | "errors": [ { "extensions": { "code": "NOT_FOUND" }, "message": "LegalEntity not found", "path": [ "nhsVerifyLegalEntity" ] } ] | ||||
LE19 | Verify CLOSED LE | errors Legal entity is not ACTIVE and cannot be updated | "extensions": { "code": "CONFLICT"}, "message": "Legal entity is not ACTIVE and cannot be updated" |