Releases: picimako/wiremocha
Releases · picimako/wiremocha
v1.0.36
Added
- 126: Added a new quick fix, so that
ok().withBody().withHeader()
call chains with specific application/json, application/xml and
text/xml content type value can now be simplified directly asokJson(body)
,okXml(body)
andokTextXml(body)
, respectively, instead of first replacing it withokForContentType()
.
Changed
- Updated the WireMock dependency to use v3.9.2.
- Added the
AbstractDateTimePattern#applyTruncationLast
property to the Java stub mapping preview. - Response definition simplification inspections are now disabled inside the
com.github.tomakehurst.wiremock.client.WireMock
class because it caused false positives on the implementations of convenience methods this inspection is intended to simplify code to. - 125: CLI argument code completion items in
WireMockContainer#withCliArg()
are now displayed at the top of the list even when there are other, not necessarily relevant items (e.g. configuration properties) added by the IDE itself.
Fixed
- Fixed an exception that occurred during handling Handlebars language injection into invalid JSON code elements.
- Fixed an
InvalidVirtualFileAccessException
that occurred when the plugin attempted to inject Handlebars language into files that no longer existed, e.g. when splitting multi-mapping files. - Fixed the
WebhookDefinition
JSON generation when converting a StubMapping in the Java DSL to an HTTP Client request. - Added the missing import statement for
se.bjurr.wiremockpact.wiremockpactlib.api.WireMockPactConfig
in the WireMockPactExtension
code template. - JSON request bodies of HTTP Client requests generated in the Admin API tool window now have proper indentation.
v1.0.35
Changed
- 118: Project view node decoration of custom stub mapping root directories now supports subprojects of workspaces created by the Multi-Project Workspace plugin.
- 118: Workspaces are now supported during the lookup of
__files
directories when extracting response body strings to file from the Java DSL, or inlining them from response body files. - 123: Variable and field resolution are now also supported (to a certain extent) when generating HTTP Client requests from Java DSL calls to Admin API endpoints.
Fixed
- 121: Values in
request.url
andrequest.urlPath
JSON properties, as well asurlEqualTo()
andurlPathEqualTo()
calls are no longer reported as potential regex patterns when they contain dot (.) symbols. Webhooks.webhook()
call chains without URLs specified are no longer reported when used outsidewithServeEventListener()
andwithPostServeAction()
calls, because the URL may be configured elsewhere in them.
v1.0.34
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()
andWireMock.or()
. - 122:
WireMock.and()
andWireMock.or()
are no longer reported with one argument when that argument's type isStringValuePattern[]
.
v1.0.32
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
v1.0.30
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
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 ofEqualToXmlPattern
in the Java preview and the various stub mapping schemas. - 107: Added the
id
,bodyAsBase64
,multipart
andparts
attributes to therequest
andoriginalRequest
model code completion. - 107: Added default method argument validation for
preserveUserAgentProxyHeader()
,disableConnectionReuse()
,
withMaxTemplateCacheEntries()
andmaxHttpClientConnections()
inWireMockConfiguration
. - 107: Added the
max-proxy-http-client-connections,
disable-proxy-client-connection-reuse,max-http-client-connections
,
anddisable-connection-reuse
CLI options to the Testcontainers code completion. - 107: Added an inlay hint for
WireMockConfiguration.withMaxTemplateCacheEntries()
when passed innull
to signal that it sets a no-limit cache.
Fixed
- Added missing
StringValuePattern
options to the stub mapping schema when completingMultiValuePattern
options.
v1.0.28
Added
- 104: Added inspection, inlay hint, reference, etc. support for the
arrayJoin
,arrayAdd
,arrayRemove
andval
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
Added
- Added code completion for
StringValuePattern
properties inside therequest.pathParameters
andrequest.cookies
properties. - Added code completion of
MultiValuePattern
properties insiderequest.queryParameters
,request.formParameters
,request.headers
andrequest.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
Added
- 97: Added support for the
jwt
andjwks
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
andrequest.multipartPattern.bodyPatterns
properties.