-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: upgrade to WireMock 3 #35
Conversation
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.
Many thanks for this PR. Overall, it looks very good. It would be cool, if you could add a test that verifies the basic templating feature once it is enabled.
@all-contributors add @wjglerum for code |
I've put up a pull request to add @wjglerum! 🎉 |
@chberger I was thinking about that too. But I'm not to sure on where we should add those tests in this project. I see some test code, but there isn't a lot. Any ideas? |
Yeah, the test setup isn't that great. Let me check the code to see where to put it. 👍 |
@chberger I added some tests, let me know what you think about this approach |
@wjglerum First of all, thank you very much for your contribution. To be honest, I'm currently refactoring the whole repo, because a lot of stuff isn't working (e.g. as you already figured out with integration tests). So I would need a little bit more time before I will merge your changes. Basically, the idea is to provide a Anyway, a short feedback to your PR: |
Furthermore, I'd prefer functional PRs. The current PR includes at least three topics (integration tests, WireMock 3-upgrade, global templating). I know it's also because of the current repo condition, but as I said: Please give me little bit more time, then u are more than welcome for any contribution. :-) But currently I see the risk that you do stuff which I have already done or which might be obsolete. |
Thanks for your explanation @chberger! And good to hear you are taking care of this project 👍 Fully agree on the functional PRs, like you mentioned it's more the current state that made me do multiple changes in one. I'll give you some time to do the refactoring and rebase on top of your work later 👍 |
hi @chberger how is the refactoring going? Need any help? Or can I check something out already? |
hi @wjglerum: Actually I can only work on this in my spare time, thus the refactoring is still ongoing. There is one last problem with the integration-tests and they way how we inject a reference to the mock server. Maybe you're interested in a code review. So I could push my code changes in the next couple of days? |
And for sure, the documentation with |
makes total sense, no rush! For sure, if you open a (draft) PR I can have a look and maybe help fix the integration tests |
@wjglerum All right, I guess we're good to go with this PR. But no rush .. |
Cool, I'll probably have another look at this tonight. And I'll create another one to target the |
Simplified this PR to just upgrading to WireMock 3, will do a seperate one to enable the response templating too. |
Upgrades Wiremock to the new v3 with updated maven coordinates. See https://github.com/wiremock/wiremock/releases
And enables the global response templating with a config key.