ЕСОЗ - публічна документація
Merge Legal Entity Job by ID/list tests
n/n | description | inputs | expected_result | actual_result |
---|---|---|---|---|
1 | GET Job by Id without scope | invalid token id | 200, "code": "FORBIDDEN", "message": "Your scope does not allow to access this resource" | 200, "code": "FORBIDDEN", "message": "Your scope does not allow to access this resource" |
2 | GET Job with not valid token | invalid token id | 401, "error": { "message": "Invalid access token", "type": "access_denied" } | 401, "error": { "message": "Invalid access token", "type": "access_denied" } |
3 | GET Job by invalid ID | token invalid id | not found | 500, { "type": "internal_error" } |
4 | GET not allowed fields by schema | token fields | "message": "Cannot query field \"fieldName\" on type \"LegalEntityMergeJob\" | "message": "Cannot query field \"fieldName\" on type \"LegalEntityMergeJob\" |
5 | GET list of jobs | token fields | 200, data | 200, data |
6 | GET list of jobs filtered by status | token, fields, LegalEntityMergeJobFilter | 200, data filtered by status | 200, data filtered by status |
7 | GET list of jobs filtered by incorrect status | token, fields, LegalEntityMergeJobFilter | 400, "message": "Argument \"filter\" has invalid value $filter.\nIn field \"status\": Expected type \"LegalEntityMergeJobStatus\", found \"FAILED_WITH_ERRORS\"." | 400, "message": "Argument \"filter\" has invalid value $filter.\nIn field \"status\": Expected type \"LegalEntityMergeJobStatus\", found \"FAILED_WITH_ERRORS\"." |
8 | Get job in status='PEDNING" | token, fields, LegalEntityMergeJobFilter | 200, end_date = null | 200, end_date='1970-01-01' |
9 | Sort list of LegalEntityMergeJob by LegalEntityMergeJobOrderBy | token, | 200, sorted by LegalEntityMergeJobOrderBy | 200, sorted by LegalEntityMergeJobOrderBy |
10 | Sort list of LegalEntityMergeJob by "mergedToLegalEntity":{ "edrpou":"$edrpou1" }, "mergedFromLegalEntity":{ "edrpou":"$edrpou2" }, | token, fields, LegalEntityMergeJobFilter | 200, sorted by LegalEntityMergeJobFilter | 200, sorted by LegalEntityMergeJobFilter |
ЕСОЗ - публічна документація