wiremock

A tool for mocking HTTP services

APACHE-2.0 License

Stars
6.1K
Committers
274

Bot releases are visible (Hide)

wiremock - 3.0.0-beta-15

Published by github-actions[bot] about 1 year ago

🚀 New features and improvements

  • Allow configuring webhook to forbid target endpoints (#2307) @Mahoney

📦 Dependency updates

  • Bump Jetty from 11.0.12 to 11.0.15 (#2302) @Purely-Jonas
  • Bump Guava from 32.1.1-jre to 32.1.2-jre (#2291) @dependabot

👻 Maintenance

  • Partly replace Guava collections by the JDK features (#2297) @pks-1981
  • Update the release drafter config for beta versioning (#2300) @oleg-nenashev
wiremock - 3.0.0-beta-14

Published by github-actions[bot] about 1 year ago

🚀 New features and improvements

  • Add a beforeResponseSent serve event listener hook (#2295) @tomakehurst

🐛 Bug fixes

  • Correctly handle scenarios with transformed stubs (#2140) @gsmith85

📝 Documentation updates

  • Include IntelliJ run configurations in CONTRIBUTING.md (#2290) @picimako

👻 Maintenance

  • Add IntelliJ Run Configurations (#2274) @picimako
  • Replace Guava by JDK (Partly) (#2289) @pks-1981

📦 Dependency updates

  • Bump org.apache.commons:commons-lang3 from 3.12.0 to 3.13.0 (#2287) @dependabot
  • Bump io.netty:netty-all from 4.1.95.Final to 4.1.96.Final (#2286) @dependabot
wiremock - 3.0.0-beta-13

Published by github-actions[bot] about 1 year ago

🚀 New features and improvements

  • Add support for recording via an existing proxy configuration (forward or reverse) and not having to set the target URI (5637a00) @tomakehurst
  • Adds WiremockNetworkTrafficListeners as unified factory for creating arbitrary notifying traffic listeners.(#2283) @gsmith85
  • Add support for custom encoding in ConsoleNotifyingWiremockNetworkTrafficListener (#2139) @gsmith85
  • Improve error message in AbstractFileSource#assertFilePathIsUnderRoot() (#2267) @oleg-nenashev
  • Add patch() method with URL to the WireMock Admin API client (#2261) @Joel-Schaltenbrand
  • Add convenient method for matching absence of form param in a request (#2193) @G-Basak

💥 Breaking changes

  • Switch the com.github.tomakehurst.wiremock.common.Timing return values to Integer and allow null when data isn't ready (#2275) @emilianoalvarez91
  • ServerEvent: replace Guava predicate and function with STL, including public API (refs #2111) (#2255) @tomasbjerre
  • Remove deprecated API routes (47d420) @tomakehurst
  • Add deprecation warning to the legacy recorder (7b8a7d) @tomakehurst

🐛 Bug fixes

  • Prevent flood mapping matcher log messages about JSON string that cannot be null or empty (#2247) @emilianoalvarez91
  • Fix admin request crashing when timing responseSendTime is null (#2275) @emilianoalvarez91
  • Fix ParseJsonHelper not storing parsed result in variable (if any) when json is empty (#2277) @G-Basak
  • Fix mis-detection of browser proxy requests over HTTPs (e21394e) @tomakehurst

👻 Maintenance

  • Add IntelliJ Run Configurations to simplify common tasks (#2274) @picimako
  • Replace Guava Files management with STL (refs #2111) (#2256) @tomasbjerre
  • Remove dependencies on new:ing collections with Guava (refs #2111) (#2254) @tomasbjerre
  • Fixed JRE11 only test cases with broken Mockito verifications due to HTTP client call signature changing (5ec352e) @tomakehurst

📦 Dependency updates

  • Bump versions.junitJupiter from 5.9.3 to 5.10.0 (#2285) @dependabot
  • Bump io.netty:netty-all from 4.1.94.Final to 4.1.95.Final (#2282) @dependabot
  • Bump com.diffplug.spotless from 6.17.0 to 6.20.0 (#2278) @dependabot
  • Update Spotless to 6.17.0 and Google Java Format to 1.17.0 (#2272) @oleg-nenashev
  • Bump org.sonarqube from 4.2.1.3168 to 4.3.0.3225 (#2279) @dependabot
wiremock - 3.0.0-beta-12

Published by github-actions[bot] over 1 year ago

🚀 New features and improvements

  • Add convenient method for matching absence of query param in a request (#2192) @G-Basak
  • Add a WireMock#requestedFor() method allowing to pass Http method as parameter (#2175) @ytvnr

🐛 Bug fixes

  • Add mising schema properties (#2253) @picimako
  • Fixed @WireMockTest not working with @DisabledInNativeImage (#2219) @DarkAtra
  • MatchesJsonSchemaPattern will return no match for null input (#2223) @Mahoney

📝 Documentation updates

  • Add WireMock co-maintainers role and document the merge process (#2207) @oleg-nenashev

👻 Maintenance

  • Replace Guava Files management with STL (refs #2111) (#2256) @tomasbjerre
  • Remove dependencies on new:ing collections with Guava (refs #2111) (#2254) @tomasbjerre
  • add-exports in eclipse configuration (#2245) @tomasbjerre
  • Replace com.google.common.base.Charsets.UTF_8 -> java.nio.charset.StandardCharsets.UTF_8. Tests. (#2246) @pks-1981
  • Replace com.google.common.base.MoreObjects.firstNonNull & com.google.common.base.Preconditions.checkArgument by Java alternatives (#2228) @pks-1981
  • Add changelog generation with Release Drafter (#2213) @oleg-nenashev
  • Refactor/prefer the java standard library instead of guava (#2206) @timtebeek
  • Replace com.google.common.io.BaseEncoding by java.util.Base64 (#2225) @pks-1981
  • Add WireMock Java Co-Maintainers as codeowners (#2243) @oleg-nenashev
  • Bump org.mockito:mockito-core from 5.3.1 to 5.4.0 (#2226) @dependabot
  • Remove duplicate dependencies (#2177) @picimako
  • Remove Optional from the Jetty settings class (#2214) @pks-1981
  • Replace Guava classes (#2215) @pks-1981
  • Prove matches json schema works for path params (#2257) @Mahoney

📦 Dependency updates

  • Bump org.mockito:mockito-junit-jupiter from 5.3.1 to 5.4.0 (#2227) @dependabot
  • Bump net.minidev:json-smart from 2.4.11 to 2.5.0 (#2252) @dependabot
  • Bump com.networknt:json-schema-validator from 1.0.85 to 1.0.86 (#2251) @dependabot
  • Bump com.google.guava:guava from 32.0.1-jre to 32.1.1-jre (#2242) @dependabot
  • Bump com.networknt:json-schema-validator from 1.0.83 to 1.0.85 (#2233) @dependabot
  • Bump io.netty:netty-all from 4.1.93.Final to 4.1.94.Final (#2229) @dependabot
  • Bump org.sonarqube from 4.2.0.3129 to 4.2.1.3168 (#2217) @dependabot
  • Bump com.google.guava:guava from 32.0.0-jre to 32.0.1-jre (#2212) @dependabot
wiremock - 3.0.0-beta-11

Published by github-actions[bot] over 1 year ago

🚀 New features and improvements

  • #1913 - Support for sub-events associated with a ServeEvent - Documentation (#2238) @tomakehurst
  • #1512 - Extensions API v2 - Documentation (#2238) @tomakehurst
  • New extension points: RequestFilterV2, TemplateHelperProviderExtension, TemplateModelDataProviderExtension, ResponseDefinitionTransformerV2, ResponseTransformerV2 , ServeEventListener (#2238) @tomakehurst
  • New ASCII art on standalone startup (166c3b3) @tomakehurst

See this video to learn more about what's inside. Documentation and a written update are coming soon

💥 Breaking changes

🐛 Bug fixes

  • MatchesJsonSchemaPattern will return no match for null input (#2223) @Mahoney

📝 Documentation updates

  • Add WireMock co-maintainers role and document the merge process (#2207) @oleg-nenashev

👻 Maintenance

  • Replace com.google.common.base.Charsets.UTF_8 -> java.nio.charset.StandardCharsets.UTF_8. Tests. (#2246) @pks-1981
  • Replace com.google.common.base.MoreObjects.firstNonNull & com.google.common.base.Preconditions.checkArgument by Java alternatives (#2228) @pks-1981
  • Add changelog generation with Release Drafter (#2213) @oleg-nenashev
  • Refactor/prefer the java standard library instead of guava (#2206) @timtebeek
  • Replace com.google.common.io.BaseEncoding by java.util.Base64 (#2225) @pks-1981
  • Add WireMock Java Co-Maintainers as codeowners (#2243) @oleg-nenashev
  • Bump org.mockito:mockito-core from 5.3.1 to 5.4.0 (#2226) @dependabot
  • Remove duplicate dependencies (#2177) @picimako
  • Remove Optional from the Jetty settings class (#2214) @pks-1981
  • Replace Guava classes (#2215) @pks-1981

📦 Dependency updates

  • Bump com.google.guava:guava from 32.0.1-jre to 32.1.1-jre (#2242) @dependabot
  • Bump com.networknt:json-schema-validator from 1.0.83 to 1.0.85 (#2233) @dependabot
  • Bump io.netty:netty-all from 4.1.93.Final to 4.1.94.Final (#2229) @dependabot
  • Bump org.sonarqube from 4.2.0.3129 to 4.2.1.3168 (#2217) @dependabot
  • Bump com.google.guava:guava from 32.0.0-jre to 32.0.1-jre (#2212) @dependabot
wiremock - 3.0.0-beta-10

Published by tomakehurst over 1 year ago

Fixes

#2223 - prevent exception being thrown when a stub using matchesJsonSchema is present and the request body is empty - thanks @Mahoney

Enhancements

#2214 - further removal of Guava code - thanks @pks-1981

wiremock - 3.0.0-beta-9

Published by tomakehurst over 1 year ago

Enhancements

#2157 - Added form parameter matching - finally, thanks @kapishmalik !
#2121, #2200, #2120 - replace Guava functional code with native Java - thanks @pks-1981
#2130 - Added support for Java time when serialising to/from JSON - thanks @mark-henry
#2198 - Added support for mulit-stub mapping files to the remote loader function - thanks @DjerohN
Switched away from using Optional to store and set the maxEntries config parameter.

Fixes

#2211 - Improve rendering performance for large response templates - thanks @Mahoney
#2116 - Fixed broken hashCode - thanks @ullenius
#2123 - Fixed bug running declarative + programmatic JUnit5 extension - thanks @parawanderer

wiremock - 3.0.0-beta-8

Published by tomakehurst over 1 year ago

Enhancements

  • Added matchesJsonSchema matcher.
  • Added support for customising the filenames produced when stubs are saved or recorded via a Handlebars template at startup - thanks @craftsman228

Fixes

  • Prevent slf4j being shaded into the webhooks JAR.
  • Added missing equals() and hashCodeI() methods to matcher classes - thanks @jnt0r
wiremock - 3.0.0-beta-7

Published by tomakehurst over 1 year ago

Fixes

Excluded slf4j from being shaded into the webhooks JAR

Fixed request log behaviour broken in last release where a null stubMapping element was returned rather than a default when the request was not matched.

wiremock - 3.0.0-beta-6

Published by tomakehurst over 1 year ago

Enhancements

#2110 Add support for matching multi-valued headers and query parameters with includes and hasExactly - thanks @kapishmalik

Fixes

#2003 Respect keystore type when loading keystores - thanks @kaarefc
#2114 Refactor to lambdas - thanks @timtebeek
Fixed NPE exception thrown when rendering a diff report for a path template matched stub
Fixed a bug where disabling browser proxy pass-through also disabled proxy stubs

wiremock - 3.0.0-beta-5

Published by tomakehurst over 1 year ago

Some bug fixes, dependency updates and a couple of new features.

Fixes

#2035 - skips NPE when a multipart could not be parsed - thanks @sickmartian
#2019 - fixed clock skew problem with certificate generation - thanks Alexander Gazarov
Fixed exception thrown when using path template matching when request URL does not match structure
Fixed diff reporting when path templates or variables do not match

Enhancements

#2087 - added support for disabling proxy pass-through - thanks Kapish Malik
#2006 - added NOT matcher that inverts other matchers - thanks Arihant Kaushik
#2103 - added request IP to template model - thanks Benjamin Marwell
#2058 - made proxy timeout configurable - thanks Lukas Pradel
#2054 - allow fixing class loader in ClasspathFileSource - thanks Arian Treffer

wiremock - 3.0.0-beta-4

Published by tomakehurst over 1 year ago

Dependency updates, bug fixes and a performance regression fix.

Fixes

#2072 - fixed multipart upload parsing behaviour so that a full buffer doesn't cause the request to hang.

Now forcibly closes all connections on server shutdown so we don't have to wait for the grace period to expire each time (which had the effect of trebling build time).

Fixed the build output so that that we're not putting a spurious fat JAR with an -all classifier in the thin JAR artifact.

WireMock standalone can be downloaded here: https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/3.0.0-beta-34/wiremock-standalone-3.0.0-beta-4.jar

wiremock - 3.0.0-beta-3

Published by tomakehurst over 1 year ago

This release upgrades a number of dependencies and adds URL path templating support.

Enhancements

  • Support for matching URLs by path template.
  • Support for matching path variables in the same manner as query, headers etc.
  • Support for addressing path variables by name in response templates.

See https://github.com/wiremock/wiremock.org-sources/blob/3.0.0-beta/_docs/request-matching.md#path-templates for docs.

wiremock - 3.0.0-beta-2

Published by tomakehurst almost 2 years ago

This is the start of a series of beta releases of WireMock that will add some major new features and introduce some breaking changes, although we'll try to make these as painless as possible.

Changes in this release:

  • Minimum Java version is now 11
  • Jetty 11 upgrade (also considered beta as performance seems to have regressed a little vs. 9.x)
  • Introduction of a stores abstraction (with default implementations that maintain current behaviour) so that persistent storage backends can be plugged in. API may be subject to change during the beta period.
wiremock - 2.35.0

Published by tomakehurst almost 2 years ago

Enhancements

  • Add a negative contains matcher - thanks Damian Orzepowski
  • Expose a Java API method for removing stubs by ID - thanks Patryk Fraczek
  • Document the import API in the OpenAPI doc - thanks to user i-whammy
  • Added the ability to restrict the addresses WireMock can proxy/record to, as a security measure.

Fixes

  • Strip Maven directories from the standalone JAR as some were appearing that weren't related to dependencies actually present, confusing scanning tools - thanks to user krageon
  • Dropped back to slf4j 1.7.36 and relocate it in the standalone JAR (ensuring 2.x users won't experience conflicts).
wiremock - 2.34.0

Published by tomakehurst about 2 years ago

This will be the final 2.x.x release and also the last to support Java 8.

Fixes

  • Fixed #1689 - incorrect HTTP version header - thanks to user Poojitha
  • Fixed #1882 - bug preventing matching of date/time query params/headers with custom format - thanks Klaas Dellschaft
  • #1930 - Fixed a partial path traversal vulnerability in the file source code - thanks Jonathan Leitschuh
  • Fixed #1783 - proxyUrlPrefixToRemove ignored when using a response definition transformer - thanks to user Ross-H-Projects
  • Fixed #1872 - create a request entity for POST, PUT etc. proxied requests when a content-length header is present, regardless of whether the size is 0.
  • Fixed #1946 - maths helper now supports epoch dates as inputs.

Enhancements

  • Added a public, non-static getScenarios() method allowing access to all scenarios.

All dependencies brought up to date including Jetty to 9.4.48.v20220622.

wiremock - 2.33.2

Published by tomakehurst over 2 years ago

WireMock 2.33.1 was accidentally released using Java 11 rather than 8, resulting in class incompatibilities in places.

This release is functionally identical but built using Java 8.

wiremock - 2.33.1

Published by tomakehurst over 2 years ago

Fixes

  • Put name field back on scenario API object having accidentally removed it.
  • Improved validation of scenario set and reset so that reasonable errors are returned when attempting to use non-existent scenario names or states.
wiremock - 2.33.0

Published by tomakehurst over 2 years ago

This is primarily a maintenance release that brings all dependency versions up to date including a version of Jackson containing the fix for CVE-2020-36518.

Enhancements

  • Added the ability to set and reset a single scenario's state
  • Proxy will now send a request body for any request method.
  • CORS response headers are now passed back from proxy responses when stub CORS is disabled.

Performance

  • Improved performance of Request.getHeaders() - thanks Doug Roper.
  • Improved performance of response body JSON parsing - thanks also Doug Roper.
wiremock - 2.32.0

Published by tomakehurst almost 3 years ago

Enhancements

  • Closes #1614 - proper support for subclassing of the JUnit5 WireMockExtension
  • Add support for put/delete file to/from a subfolder (#1087)
  • Closes #956 - added the ability to fetch serve events for a specific stub ID
  • Added ability to query unmatched serve events
  • Added ability to verify requests using a custom matcher
  • Upgraded to Apache HTTP Client 5.x
  • Added WireMock.jsonResponse factory methods (#1428)
  • #745 Need proxyUrlPrefixToRemove for proxy context url mapping (#1556)
  • Removed dependence on Conscrypt for ALPN and HTTP/2
  • Recognize multipart/related and multipart/mixed (#1415)
  • Allow running Wiremock without HTTP Server (#1572)
  • Allow standalone runner to fetch mappings from classpath (#1592)
  • Added new command line parameters "--jetty-header-request-size" and "--jetty-header-response-size" for set a custom size of headers in Jetty. "--jetty-header-buffer-size" is deprecated.

Fixes

  • Closes #1688 - fall back to HTTPS 1.1 only when no ALPN provider can be loaded
  • Fixed #1643 - regression in date parsing preventing year and year/month only dates
  • #1612 prevent applying scientific notation and rounding to big numbers by ObjectMapper (#1613)
  • Fixed #1608 and #1585 - incorrect zoning of date/times in response templating when truncating

Code quality

  • Enforce license headers with Spotless
  • Enforce consistent code style with Spotless
  • Upgrade to Gradle 7 + some Gradle config cleanup (#1639)
  • Convert AcceptanceTestBase to JUnit Jupiter to limit future violations (#1669)
  • Enable WireMock to be built on Java 11 and 17
  • Drop JMock in favour of Mockito (#1630)
Package Rankings
Top 2.32% on Repo1.maven.org
Badges
Extracted from project README
Build Status Docs a Participate Maven Central