Skip to content

Releases: picimako/wiremocha

v1.0.34

08 Oct 11:11
Compare
Choose a tag to compare

Added

  • Added new Admin API + HTTP Client specific live templates for file, settings, version and health related endpoints.
  • 61: Extended the 'Open in HTTP Client' line marker icon to support the majority of Admin API Java calls (where feasible) and generate path parameters and request body JSONs dynamically based on the configuration of those Java method calls.
  • Added the Delete matching stub mapping (DELETE /__admin/mappings/remove) endpoint to the Admin API tool window.

Changed

  • Supported IDE version range has changed to 2024.1.6 - 2024.3.*.

Fixed

  • Declarative <-> programmatic JUnit 5 related intentions are no longer available in projects that don't use WireMock.
  • Fixed the names of a few Admin API + HTTP Client specific live templates.
  • Fixed a NoSuchElementException that occurred when getting the last element of an empty collection during webhook configuration checks in the Java DSL.
  • Fixed a NullPointerException that occurred when opening the plugin settings page.
  • 122: Fixed the error message when reporting less than required argument count for WireMock.and() and WireMock.or().
  • 122: WireMock.and() and WireMock.or() are no longer reported with one argument when that argument's type is StringValuePattern[].

v1.0.32

31 Aug 11:47
Compare
Choose a tag to compare

Added

  • 111: Added a new option on the Admin API client GUI that can generate a request in the Http Client format of the currently configured request, and copy it to the clipboard.
  • 116: Added the Reload gRPC descriptor files endpoint from the wiremock-grpc extension to the Admin API tool window.

Fixed

  • Fixed a NullPointerException regarding mapping file node decoration in the Project View.
  • The success message of the Remove requests by criteria Admin API endpoint now uses the correct message key.

v1.0.31

22 Aug 05:23
Compare
Choose a tag to compare

Added

  • 114: Added the count hash for the pickRandom Handlebars helper.

Changed

  • Moved a few hardcoded string literals to a property bundle to enable their potential future translation.
  • Various minor maintenance changes.

v1.0.30

22 Aug 05:23
Compare
Choose a tag to compare

Added

  • 110: Added proxy and authentication configuration for the Admin API tool window.
  • 108: Added support for the Get all file names, Delete file by ID, Return the version of the WireMock server, Return the health of the WireMock server and Get global settings Admin API endpoints.
  • 112: Added support for WireMock Cloud's Provisioning API in the WireMock tool window.

Changed

  • A few more exception types are handled that may occur when targeting endpoints on WireMock Cloud or other remote servers.
  • 105: Many actions, inspections, intention actions and more are no longer considered for execution in projects that don't use WireMock.

Fixed

  • 109: Code completion of Handlebars hashes and request attributes are again available in mapping files outside content roots.

v1.0.29

04 Jul 12:27
f939a1c
Compare
Choose a tag to compare

Added

  • 88: Added an Admin API client to the WireMock tool window, so that users are able to work with externally started standalone WireMock servers.
  • Added JSON language injection into com.github.tomakehurst.wiremock.stubbing.StubMapping.buildFrom(String).
  • 107: Added support for the ignoreOrderOfSameNode attribute of EqualToXmlPattern in the Java preview and the various stub mapping schemas.
  • 107: Added the id, bodyAsBase64, multipart and parts attributes to the request and originalRequest model code completion.
  • 107: Added default method argument validation for preserveUserAgentProxyHeader(), disableConnectionReuse(),
    withMaxTemplateCacheEntries() and maxHttpClientConnections() in WireMockConfiguration.
  • 107: Added the max-proxy-http-client-connections, disable-proxy-client-connection-reuse, max-http-client-connections,
    and disable-connection-reuse CLI options to the Testcontainers code completion.
  • 107: Added an inlay hint for WireMockConfiguration.withMaxTemplateCacheEntries() when passed in null to signal that it sets a no-limit cache.

Fixed

  • Added missing StringValuePattern options to the stub mapping schema when completing MultiValuePattern options.

v1.0.28

04 Jun 16:11
Compare
Choose a tag to compare

Added

  • 104: Added inspection, inlay hint, reference, etc. support for the arrayJoin, arrayAdd, arrayRemove and val Handlebars helpers.
  • 104: Made Handlebars helper name completion version specific, so the e.g. arrayJoin is not code completed when using WireMock earlier than 3.6.0.
  • 104: Added supported-proxy-encodings to the code completion of command line arguments in Testcontainers code.
  • 103: Added a quick documentation popup for the hash parameters of WireMock's Handlebars helpers.

Changed

  • Supported IDE version range has changed to 2023.3 - 2024.2-EAP.
  • Renamed the latest stub mapping schema from WireMock 3.5.0 Stub Mapping to WireMock 3.5.0+ Stub Mapping, so that it is clearer that it is not only for version 3.5.0.
  • Hash name code completion now inserts an = symbol as well, right after the hash name, for smoother coding experience.
  • Improved the re-injection logic of Handlebars fragments to cover more cases when a JSON stub mapping files is changed.
  • Inject/uninject languages in open files upon enabling/disabling the corresponding WireMocha plugin settings.
  • Some wiremock-grpc-extension related logic is no longer enabled when the extension is not available in the project, to do a small performance improvement.

Fixed

  • Eliminated Slow operations are prohibited on EDT errors regarding Handlebars language injections in stub mapping files.
  • Inject Handlebars fragments in JSON stub mapping files on project startup, only when Handlebars injection is enabled in the plugin settings.
  • Start injecting Handlebars fragments in JSON stub mapping files when Handlebars injection gets enabled in the plugin settings, and it wasn't before.

v1.0.27

09 May 12:34
Compare
Choose a tag to compare

Added

  • Added code completion for StringValuePattern properties inside the request.pathParameters and request.cookies properties.
  • Added code completion of MultiValuePattern properties inside request.queryParameters, request.formParameters, request.headers and request.multipartPatterns.headers.
  • 100: Added descriptions to code completion elements when completing Handlebars helper hashes. An icon for mandatory hashes is also added.
  • 94: Added default method argument value reporting for the methods in se.bjurr.wiremockpact.wiremockpactlib.api.WireMockPactConfig.
  • 94: Added Regexp language injection to arguments of some methods in se.bjurr.wiremockpact.wiremockpactlib.api.WireMockPactConfig.
  • 94: Convert WireMockPactConfig metadata from JSON to Java in the stub mapping preview.
  • 94: Added an action into the Alt+Insert generate menu that can generate a WireMockPactExtension-type JUnit5 @RegisterExtension field.

Changed

  • Minor improvements on stub-mapping JSON property descriptions.
  • Changed the stub mapping Java preview editor's name to Raw / Java Preview, so that it fits better with the WireMock plugin's Data tab.

Fixed

  • Fixed an exception that occurred during previewing the results of the Remove redundant method call intention action.
  • Fixed an unhandled JsonSyntaxException during the Java preview of JSON stub mapping files.

v1.0.26

24 Apr 04:37
Compare
Choose a tag to compare

Added

  • 97: Added support for the jwt and jwks Handlebars helpers provided by the wiremock-jwt-extension.
  • 99: The JSON schema provided by WireMocha is now assigned to the mapping files in the WireMock Stubs scratch folder that is used by the JetBrains WireMock plugin to generate mappings from endpoints.
  • 98: Improved the stub mapping JSON schema: delay distributions got additional validation for the required properties. StringValuePatterns are also code completed in the request.host, request.bodyPatterns and request.multipartPattern.bodyPatterns properties.

v1.0.25

05 Apr 06:37
Compare
Choose a tag to compare

Added

  • 95: Added code completion for the new CLI arguments: disable-http2-plain, disable-http2-tls.
  • 95: Added code completion for the default hash of the systemValue Handlebars helper.
  • 95: Added a WireMock 3.5.0 specific stub mapping schema that contains the response.removeProxyRequestHeaders property.
  • 95: The stub mapping Java preview now converts the response.removeProxyRequestHeaders property as well.
  • 91: Added a project-level toggle option in the plugin settings, so that users can opt in to use the stub mapping schema provided by JetBrains' WireMock plugin. By default, the ones provided by WireMocha are applied.
  • 96: Extended the code completion of Data Faker providers with the Food, Sport, Videogame and Entertainment groups.

Changed

  • 93: Improved cache refreshing conditions around stub mapping file retrieval.
  • Improved the JSON schema assignment logic for stub mapping files.
  • 92: Changed the GRPC service line marker icon to a Protocol Buffer specific one.

Fixed

  • JSON schemas that are not applicable to an edited stub mapping file are no longer displayed in the schema selector at the bottom of the IDE.
  • Fixed an exception that could occur when files were being closed during project initialization.

v1.0.24

11 Mar 09:54
Compare
Choose a tag to compare

Added

  • 90 - wiremock-grpc-extension: Added Handlebars language injection into WireMockGrpc.jsonTemplate(), and JSON language injection into WireMockGrpc.json().
  • 90 - wiremock-grpc-extension: Added code completion of WireMockGrpc.Status constants in the response.headers.grpc-status-name property in the JSON DSL.
  • 90 - wiremock-grpc-extension: Added an inspection to report invalid WireMockGrpc.Status values in the response.headers.grpc-status-name property in the JSON DSL.
  • 90 - wiremock-grpc-extension: Added an inspection to report references to potential GRPC service calls specified in request.url* (except request.urlPath) JSON properties.
  • 90 - wiremock-grpc-extension: Added an inspection to report GRPC service references in request.urlPath when not used with POST request method.
  • 90 - wiremock-grpc-extension: Added line markers to request.urlPath JSON properties to open the corresponding service implementation Java class or service declaration in a .proto file.
  • 90 - wiremock-grpc-extension: Added code completion of GRPC service methods in the request.urlPath JSON property.