|
|
Steps
|
Outcome |
|
|
|
|
Dado que Pedro quiere administrar los niveles de una compañia con la siguientes caracteristicas
|
SUCCESS |
0s |
|
|
|
SUCCESS |
0.14s |
|
|
|
SUCCESS |
0.13s |
|
|
POST https://z2aypbafw5gchmlhyce5ty2vqa.appsync-api.us-east-2.amazonaws.com:443/graphql
| BODY | RESPONSE | | { "query": "query getDocument($documentId: String!){\n getDocument(documentId: $documentId){\n name\n URL\n }\n}", "variables": { "documentId": "777777777" }} | { "data": null, "errors": [ { "path": [ "getDocument" ], "data": null, "errorType": "401", "errorInfo": null, "locations": [ { "line": 2, "column": 4, "sourceName": null } ], "message": "The incoming token has expired" } ]} |
|
SUCCESS |
0s |
|
|
|
|
|
ERROR |
0.02s |
|
|
|
ERROR |
0.02s |
|
|
Pedro executes a VALIDATE RESPONSE on the resource query getDocument
|
ERROR |
0.01s |
|   |
com.intuit.karate.exception.KarateException: validate_response.feature:16 - path: $, actual: {data=null, errors=[{"path":["getDocument"],"data":null,"errorType":"401","errorInfo":null,"locations":[{"line":2,"column":4,"sourceName":null}],"message":"The incoming token has expired"}]}, expected: {data={getDocument={name=#regex acts/processed/.*.pdf, URL=#regex https://.*=host}}}, reason: actual value has 1 more key(s) than expected: {errors=[{"path":["getDocument"],"data":null,"errorType":"401","errorInfo":null,"locations":[{"line":2,"column":4,"sourceName":null}],"message":"The incoming token has expired"}]}
✽.And match response == structure (validate_response.feature:16)
|
|
|
|
|
Entonces la solicitud retorna la ultima acta generada
|
FAILURE |
0s |
|   |
java.lang.AssertionError: validate_response.feature:16 - path: $, actual: {data=null, errors=[{"path":["getDocument"],"data":null,"errorType":"401","errorInfo":null,"locations":[{"line":2,"column":4,"sourceName":null}],"message":"The incoming token has expired"}]}, expected: {data={getDocument={name=#regex acts/processed/.*.pdf, URL=#regex https://.*=host}}}, reason: actual value has 1 more key(s) than expected: {errors=[{"path":["getDocument"],"data":null,"errorType":"401","errorInfo":null,"locations":[{"line":2,"column":4,"sourceName":null}],"message":"The incoming token has expired"}]}
com.bocc.adn.api.features.common.CommonDefs.laSolicitudEsRechazadaPorNumeroDeIdentificacionInvalido(CommonDefs.java:33) ✽.la solicitud retorna la ultima acta generada(classpath:features/adn/api/document/get_document.feature:17)
|
|
ERROR |
0.18s |