What's new
Warning! 2.0.0 is only JDK11 compatible. JDK8 support is recovered in 2.0.1
This version introduces much better compatibility with Wiremock so that copying stub samples from the official Wiremock documentation will more probably work without any code changes.
What is more, now there are also supported stateful stubs which could be helpful to mock full user login scenarios.
Wiremock
- Native template engine support - Handlebars #31
- Support for Wiremock admin API http://wiremock.org/docs/api/ #33, #37
Moco
- Fix #34
Upgrade notes
Wiremock
- Handlebars is now the default template engine. If have already mocks defined with Pebble you would need to change the WireMock Stubs Configuration and select PEBBLE as Global Template Transformer
Contributions
What's new
Secure by default
Stub scripts may use resourceResolver
variable to access the AEM repository. Since now, only paths under /conf/stubs
are accessible using this variable and only in read-only mode.
Upgrade notes
As of default stubs storage root changed from /var/stubs
to /conf/stubs
, it is recommended to update existing stubs to be stored at the updated path. Simply rename /var/stubs/wiremock/${appName}
to /conf/stubs/wiremock/${appName}
and remember to update also Vault workspace filter.
The alternative option, but less recommended it to keep storing stubs under /var/stubs
root, but OSGi config for AEM Stubs Manager OSGi service needs to be provided manually.
Contributions
None.