Skip to content
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

GH-4431: Replace WireMock with MockServer #4439

Merged

Conversation

erikgb
Copy link
Contributor

@erikgb erikgb commented Feb 18, 2023

GitHub issue resolved: #4431

Briefly describe the changes proposed in this PR:

This PR migrates all use of WireMock in the codebase to MockServer. MockServer is built on Netty, and provides no-dependency shaded jars, which will ease upgrading Jetty (#4252), upgrade Java/Jakarta EE and migrate from Java EE to Jakarta EE (#3559).

The MockServer code is a bit more verbose, but fairly equivalent to WireMock. MockServer lacks the ability to load mocked response bodies from file, so in order to not change "everything" in this PR, I added small utility methods to adapt this missing feature. This can be changed/improved in a follow-up PR.


PR Author Checklist (see the contributor guidelines for more details):

  • my pull request is self-contained
  • I've added tests for the changes I made
  • I've applied code formatting (you can use mvn process-resources to format from the command line)
  • I've squashed my commits where necessary
  • every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change

@erikgb erikgb changed the base branch from main to develop February 18, 2023 23:52
@erikgb erikgb marked this pull request as ready for review February 19, 2023 11:45
@erikgb
Copy link
Contributor Author

erikgb commented Feb 19, 2023

The CI failure seems unrelated and probably a flake. Is there a way for regular users to trigger a re-run of failing workflows?

@erikgb erikgb mentioned this pull request Feb 19, 2023
5 tasks
Copy link
Contributor

@abrokenjester abrokenjester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work - LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace WireMock with MockServer
2 participants