-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add a method to MicrocksContainer class to get invocations count of a service SOAP #91
Comments
Welcome to the Microcks community! 💖 Thanks and congrats 🎉 for opening your first issue here! Be sure to follow the issue template or please update it accordingly. 📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact. If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌" Hope you have a great time there! 🌟 ~~~~~~~~~ 🌟 📢 If you like Microcks, please ⭐ star ⭐ our repo to support it! 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact. |
This looks super cool! Thanks for the detailed explanation, I think it makes sense to add this kind of feature. I'm surprised you're not allowed to create a PR on this one. Some other people have done it in the past. You can directly target the Let me know, |
Thank you for your feedback @lbroudoux . I tried by many ways with many computers and from different networks, it seems I have no write access to projects in microcks group. (I have tried to push a new branch to this project and to 'microcks' project, the same behaviour occurs.) May you help me to have write access to this project, please ? |
This looks like normal behavior: you don't need to have write access to the repo for one-shot contribution. Have you forked the repository as advised? The recommended process is as follows:
So that's actually us that reads from your fork and propagates those changes into our repo. Let me know if it helps, |
ok that's clear, thank you and please excuse me for the inconvenience, you should have news from me in a few days. |
Awesome! I was thinking: that integrating the Java client may be inconvenient for 2 different reasons:
Let us know if you have any clue or hints on those 2 points. Maybe, it would be easier to bypass the client and directly use low-level classes (getting the statistics might be a simple GET request ...) |
You must be right, I was wondering if I should propose you two PRs : one using the java client and another one not using it. |
Hi @pierrechristinimsa, |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 30 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. Microcks is a Cloud Native Computing Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
Adding a way to verify interactions with generated mocks would be very useful. Are there any updates about this feature? Thanks. |
Hi @pierrechristinimsa, |
Hello @lbroudoux and @f-lopes, |
Hi @pierrechristinimsa |
Now available thanks to @pierrechristinimsa ! |
Thank you @lbroudoux, for your help and the attention you accorded. |
Awesome! Glad to read this! |
Reason/Context
Hello,
We use microcks-testcontainers-java to mock SOAP web services, importing SoapUI projects.
It works well, but we lack of methods on MicrocksContainer class that could return the invocations count of a service SOAP.
We saw this data is available in admin console, and is accessible via Metrics resource in REST API.
So we would like to have this data easily available, we think it could be benefit for many.
And why do we need to check this invocation count ?
To be sure the mock as been invoked by the application we are covering with integration tests.
Indeed, sometimes we have SOAP WS that just return empty body. For instance : WS that just does an update.
Without having this invocations count, we are not able to know whether our application had the correct behaviour or not.
In summary : it would be like what we do when we call the "verify" method of "Mockito".
Description
Add methods to MicrocksContainer class that could return the invocations count of a service SOAP.
Implementation ideas
This is a draft, using project
microcks-java-client
to haveMetricsApi
class :We have already done the code and would like to create branch to push commit but it seems I am not allow to do it.
@lbroudoux (or someone else) : could you please, give me the ability to push a commit on a new branch to submit a PR ?
We are opened to any suggestion, and we give thanks to the community for what you've done so far.
The text was updated successfully, but these errors were encountered: