-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WireMock.Net TestContainer - Docker Logs contain Template references a helper that cannot be resolved. Helper Linq, only on Github Action #1244
Comments
Apologies, I should have reviewed recent releases. I see that dynamic linq was disabled. Request suggestion to achieve the same as the above.
which is to get the count of a json array contained in a property named "requests" in the request.bodyAsJson. |
I submitted a PR at |
@epDugas |
BTW I was thinking, can't you use the In handlebars.js, this does seem tot work: |
Also works in Handlebars.Net |
Thanks @StefH . I tried various things and didn't have any luck. Just tried the following template string again just to verify, and didn't have any luck (the result was null). Just some additional info, I am using this in a static mapping file:
Request:
|
I've just released NuGet 1.7.1 which includes your handlebars update. And later today, I'll also release new Docker version. |
Docker images 1.7.1 are available. |
Confirmed, closing. |
Using WireMock TestContainers.
I have an integration test that is only failing when executed during a Github Action. I do not experience this issue locally. The docker log message that is related to the test failure is:
Template references a helper that cannot be resolved. Helper \u0027Linq\u0027
The handlebar template string I am using is:
"{{Linq request.bodyAsJson 'it.requests.Count()'}}"
The github test runner OS is:
Ubuntu
24.04.1
This test was working as of yesterday during the Github Workflow, and seems to have broke suddenly.
Any help/guidance would be greatly appreciated.
The text was updated successfully, but these errors were encountered: