MockServer v5.9.0 Release Notes
Release Date: 2020-02-01 // about 4 years ago-
โ Added
- โ added stopAsync method to ClientAndServer to allow stop without waiting
- ๐ log events for UPDATED_EXPECTATION and REMOVED_EXPECTATION
- โก๏ธ ability to update existing expectation by id
- hot re-loading of expectation initialiser file
- โ addition configuration for web socket client event loop size
- โ addition configuration for action handler thread pool size
- ๐ฆ exposed request raw bytes to object callbacks (allows forwarded requests body parsing that is inconsistent with Content-Type header)
- โ added support to delay socket closure using connection options
- โ added support to control trusted certificate authorities (trust store) for proxied & forwarded requests
- โ added support for two-way TLS (mTLS), also called client authentication
- ๐ now sends TLS X509 certificate from proxy (i.e. support forward client authentication / mTLS)
- โ added ability to dynamically create local unique Certificate Authority (CA) X.509 and Private Key to improve securiy of clients trusting the CA
๐ Changed
- ๐ performance improvements for header and cookie handling
- ๐ improved JSON validation errors by adding link to OpenAPI Specification
- โ removed duplicate packages between modules to prepare for java modules
- ๐ง caught Jackson configuration exception to improve resilience with other Jackson versions in classpath
- ๐ moved Junit4 to separate module to reduce size of jar-with-dependencies, simplify code and increase build speed
- enabled case insensitive matching for regex matches
- ๐ improved documentation (i.e. on website)
- switched from Bouncy Castle to JDK for certificate and private key generation
๐ Fixed
- ๐ fixed error where ClientAndServer does fully wait for client to stop
- ๐ fixed ability to specific a log level of OFF
- ๐ fixed bug with keystore type configuration not being used in all places
- โ added file locking and jvm locking for expectation persistence file to avoid file corruption
- ๐ fixed verification incorrectly matching verifier non-empty bodies against empty request bodies
- stopped response callbacks for proxied requests blocking threads
- ๐ fixed bug that caused JSON bodies in specified expectations as raw JSON to ignore empty arrays and empty strings
๐ Security
- โก๏ธ updated tomcat (used in integration tests) to version without vulnerabilities