MockServer v5.12.0 Release Notes
Release Date: 2022-02-12 // about 2 years ago-
โ Added
- ๐คก index.yaml to www.mock-server.com so it can be used as a helm chart repository
- ๐ command line flags can now be set as environment variables simplifying some container deployment scenarios
- ๐ glob support for initialisation files to allow multiple files to be specified
- โก๏ธ request and response modifiers to dynamically update path, query parameters, headers, and cookies
- custom factory for key and certificates to provide more flexibility
- ๐ support for Open API expectations in json initialisation file
- ๐ improved @MockServerTest to support inheritance
- ๐ more flexibility over semicolon parsing for query parameters
- ๐คก shaded jar for mockserver-netty and mockserver-client-java to reduce impact of dependency version mismatches with projects including these dependencies
๐ Changed
- ensured that TCP connections are closed immediately when shutting down to improved time before operating system frees the port
- โฌ๏ธ reduce noise from Netty INFO logs that were not correct or misleading
- retrieveRecordedRequests now returns HttpRequest[]
- made it easier to set priority and id both in Java and Node clients in multiple places
- ๐ changed default charset for JSON and XML to UTF-8 from ISO 8859-1
- error handling for Open API so only single operation is skipped on failure not the entire file
- โฌ๏ธ reduced over resolution of OpenAPI that triggered bugs in Swagger Parser V3 library
- โช replaces JDK FileWatcher with custom solution for watch file changes to work around multiple JDK bugs
- ๐ improved helm chart by supporting more configuration options
- โ remove explicit calls to System.gc()
๐ Fixed
- resolved multiple issues with clearing by expectation id
- resolved multiple issues with verifying by expectation id
- ๐ป resolved multiple NullPointerExceptions in backend for UI
- ensure exact query parameter string is proxied allowing for empty values, leading
!
or or other special scenarios - ๐ improved expectation updates from FileWatcher so only expecation from matching source are updated resolving multiple bugs
- ensured socket protocol of HTTPS is honoured resulting in forwarded requests using TLS
- ๐ fixed logging of exceptions such as port already bound at startup
- ๐ fixed retrieval of active exceptions where expectations were no longer active but not yet removed from expectations list
- no longer treat ndjson as json
- ๐ป accessing UI via a reverse proxy or load balancer