WireMock 2.29.0 released

157 views
Skip to first unread message

Tom Akehurst

unread,
Jun 30, 2021, 12:43:51 PM6/30/21
to wiremock-user
Lots of new and improved template helpers in this release, logical AND and OR matching and date/time matching (which took bloody ages to get right, so I hope you all like it!).

Changes:
  • Added random int and decimal helpers
  • Added a range helper to generate an array of numbers between bounds
  • Added an array literal helper
  • Added a JSON parsing helper
  • Added support for specifying a default value when the jsonPath helper doesn't return anything - thanks Nathan Jones
  • Added support for specifying a default value when regexExtract doesn't return anything
  • Added a contains helper, returning true/false depending on whether a string or array contains a string.
  • Added a matches helper, returning true/false depending on whether a string matches a regex.
  • Added a math helper for basic arithmetic operations.
  • Added support for hexadecimal strings in the randomValue helper - thanks Fabian Muscariello.
  • Added matchers for date/times - before, after and equalToDateTime.
  • Added logical AND and OR matchers.
  • Added a helper for truncating date/times.
  • Added unix and epoch formatted timestamps to the parseDateHelper.

Reply all
Reply to author
Forward
0 new messages