Dhruvraj Mishra
11/09/2024, 4:34 PMDhruvraj Mishra
11/09/2024, 4:37 PM{
"priority": 2,
"scenarioName": "To do list",
"requiredScenarioState": "Started",
"request": {
"method": "POST",
"urlPathPattern": "/wiremock/resource/3",
"bodyPatterns": [
{
"matchesXPath": "//resource/2[contains(text(),'000879654321')]"
}
]
},
"response": {
"status": 202
},
"serveEventListeners": [
{
"name": "recordState",
"parameters": {
"context": "sss",
"list": {
"addFirst": {
"SId": "{{xPath request.body '//SId/text()'}}"
}
}
}
}
]
}
Lee Turner
11/09/2024, 6:25 PMLee Turner
11/09/2024, 6:26 PMDhruvraj Mishra
11/09/2024, 7:55 PMDhruvraj Mishra
11/09/2024, 7:57 PMLee Turner
11/09/2024, 7:58 PMDhruvraj Mishra
11/09/2024, 7:59 PMDhruvraj Mishra
11/10/2024, 12:58 PMDhruvraj Mishra
11/10/2024, 1:01 PM"customMatcher": {
"name": "state-matcher",
"parameters": {
"hasContext": "getRes1"
}
}
but it is NOT working in an environment if I change same to below-
"customMatcher": {
"name": "state-matcher",
"parameters": {
"hasContext": "getRes1",
"listSizeMoreThan": "0"
}
}
Things I checked, still it is yet to work
• used same command at local to check which is being used at env level-> seems fine
• used same version at env level w.r.t. local oneDhruvraj Mishra
11/10/2024, 1:22 PMLee Turner
11/10/2024, 3:52 PMresource22
in the url when it isn't in the mocked url ?Dhruvraj Mishra
11/10/2024, 4:44 PM"listSizeMoreThan": "0"
but not over env, not sure why
why is it referencing resource22
in the url when it isn't in the mocked url ?: It's an another request mocked. It is trying to match nearest URL that as above mentioned condition didn't satisfyLee Turner
11/10/2024, 4:54 PMDirk Bolte
11/10/2024, 5:09 PMstateTransaction,state-matcher,state,recordState,deleteState
. In case you run with verbose on, you should see various log outputs (e.g. list::addFirst
).
The standalone extension as of version 0.8.0 still uses it's own store implementation (caffeine), so there should be no environment dependency. TBOMK caffeine does not clean up the cache by itself on OOM, so limited memory should not have an impact (just because I saw memory mentioned above)Dhruvraj Mishra
11/10/2024, 5:50 PMlist::addFirst
But I need to get access to see things at environment level. I'm on that. Lil surprised to see "hasContext": "getRes1"
work alone but not with "listSizeMoreThan": "0"
. As both are part of state feature only.
I see in our docker file-
FROM wiremock/wiremock:3.9.0-alpine
I am wondering what is alpine doing hereLee Turner
11/11/2024, 9:59 AMDhruvraj Mishra
11/11/2024, 10:56 AM