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