-
-
Notifications
You must be signed in to change notification settings - Fork 79
feat: JS dispatchers blog post #441
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: andreatp <andrea.peruffo1982@gmail.com>
4048cf5 to
e07a4d6
Compare
|
This should be ready for review. |
|
@andreaTP very sorry, looks like we forgot this PR... :< |
yada
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job, @andreaTP and my apologies for the delay :<
Please see the changes requested and let's merge, publish and advertise this asap ;)
|
|
||
| * **Dynamic behavior** – responses vary depending on request context | ||
| * **Richer test scenarios** – simulate more realistic API flows | ||
| * **Fewer examples needed** – reuse existing payloads with smart logic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it finally works using the native image (not the case using Groovy), big plus ;)
ex from the release note (https://microcks.io/blog/microcks-1.13.0-release/):
"The integration of a JavaScript engine that lets you implement your own mock matching logic in a super user-friendly way - for both standard, uber, and native-compiled distributions of Microcks!"
| app: | ||
| depends_on: | ||
| - mongo | ||
| image: docker.io/andreatp/microcks-1.13:PREVIEW |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can use the Microcks image now, I guess ;)
|
|
||
| # Dynamic Mocking with JavaScript Dispatchers in Microcks | ||
|
|
||
| One of the most exciting new features introduced in **Microcks 1.13** is the ability to write **JavaScript dispatchers**. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, link the release note: https://microcks.io/blog/microcks-1.13.0-release/ on Microcks 1.13
and doc
https://microcks.io/documentation/explanations/dispatching/#javascript-scripting on JavaScript dispatchers
| author: "Andrea Peruffo" | ||
| type: "regular" | ||
| description: "Announcing JavaScript dispatcher in Microcks 1.13" | ||
| draft: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
draft : false
so we are ready to merge ;)
| title: JavaScript dispatchers | ||
| date: 2025-09-29 | ||
| image: "images/blog/js-dispatchers-banner.svg" | ||
| author: "Andrea Peruffo" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create your bio and PR here: https://github.com/microcks/microcks.io/tree/master/content/author
| --- | ||
| title: JavaScript dispatchers | ||
| date: 2025-09-29 | ||
| image: "images/blog/js-dispatchers-banner.svg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use the same size (around 1968x1312) as other blog posts, see examples:
https://microcks.io/blog/
and
https://github.com/microcks/microcks.io/blob/master/assets/images/blog/google-pubsub-emulator-usage-dojo-feature.png (see all -feature images)
Let me know if you need some help with the banner image.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes @yada , please, if you can share a banner image I'll be happy to integrate it, or just push on top of this branch 🙏
Description
WIP, this blog demonstrates step-by-step how to exercise JavaScript Dispatchers in Microcks.
TODO: