Slackbot
09/29/2023, 6:14 PMDebraj Manna
09/29/2023, 6:42 PMLee Turner
09/29/2023, 7:48 PMMaxim Bastrygin
10/04/2023, 8:59 AMDebraj Manna
10/04/2023, 8:59 AMMaxim Bastrygin
10/04/2023, 9:00 AMDebraj Manna
10/04/2023, 9:01 AM"payload": pnr_details_response
was not correctLee Turner
10/04/2023, 9:04 AMMaxim Bastrygin
10/04/2023, 9:17 AMLee Turner
10/04/2023, 9:21 AMLee Turner
10/04/2023, 9:23 AMMaxim Bastrygin
10/04/2023, 9:27 AMMaxim Bastrygin
10/04/2023, 9:27 AM{
"fromAccountId": 123,
"providerId": 123,
"operationId": 123,
"paymentInformation": 123,
"step": 1,
"attributes": [
{
"attributeName": "customerCode",
"value": "abc"
},
{
"attributeName": "pinCode",
"value": "01.01.1900"
}
]
}
Maxim Bastrygin
10/04/2023, 9:27 AMLee Turner
10/04/2023, 9:55 AMbodyPatterns
and it matches the request OK for me. I am using the latest wiremock version which is different to yours thoughMaxim Bastrygin
10/04/2023, 9:55 AMMaxim Bastrygin
10/04/2023, 9:56 AMLee Turner
10/04/2023, 9:58 AM3.2.0
Lee Turner
10/04/2023, 10:00 AMLee Turner
10/04/2023, 10:01 AMMaxim Bastrygin
10/04/2023, 10:01 AMLee Turner
10/04/2023, 10:03 AMbodyPatterns
pasted in:
{
"name": "test",
"request": {
"url": "/test",
"method": "GET",
"bodyPatterns": [
{
"matchesJsonPath": "$.attributes[?(@.attributeName == 'customerCode' && @.value == 'abc')]"
}
]
},
"response": {
"status": 200,
"transformers": [
"response-template"
],
"jsonBody": {
"id": "{{randomInt}}",
"name": "test",
"creationDate": "{{now}}"
}
}
}
Lee Turner
10/04/2023, 10:04 AMcurl -X GET --location "<http://localhost:7777/test>" \
-H "Content-Type: application/json" \
-d "{
\"fromAccountId\": 123,
\"providerId\": 123,
\"operationId\": 123,
\"paymentInformation\": 123,
\"step\": 1,
\"attributes\": [
{
\"attributeName\": \"customerCode\",
\"value\": \"abc\"
},
{
\"attributeName\": \"pinCode\",
\"value\": \"01.01.1900\"
}
]
}"