JedrzejNowacki
02/28/2023, 2:41 PM"mappings": [
{
"request": {
"urlPath": "/my-url",
"method": "POST",
"customMatcher" : {
"name" : "encrypted-request-matcher",
"parameters" : {
"myParameter" : "someValueThatWillMatch"
}
},
This is 2nd one, that tries to match, but should not be even considered for matching.
"mappings": [
{
"request": {
"url": "/another-url",
"method": "POST",
"bodyPatterns": [
{
"equalToJson": {
"data": {
"type": "identifier",
"attributes": {
"id": "1"
}
}
I put some debugs in custom matcher and it is clearly visible, that when wiremock attempts to match 2nd request (why would it even go through custom matcher?) it still holds the params from the 1st one! So "myParameter" : "someValueThatWillMatch" is still there.
I use standalone wiremock instance.