Skip to content

v1.0.1

Compare
Choose a tag to compare
@tommysitu tommysitu released this 20 Jun 10:04
· 397 commits to master since this release

A new helper method for response templating

We have added a new helper method for string find and replace:

{{ replace string oldValue newValue }}

For example, you can solve the problem in issue #841 with this templating function which replaces all occurrences of "_token" in the query params with an empty string.

{{ replace Request.QueryParam.access_token.[0] "_token" "" }}

Support multiple simulation imports through hoverctl

You can now import multiple simulations when you start hoverfly using hoverctl :

hoverctl start --import foo.json --import bar.json

This is equivalent to the following hoverfly command:

hoverfly -import foo.json -import bar.json

You can also add additional simulations after hoverfly is started:

hoverctl simulation add foo.json bar.json

Bug fixes

This release also fixes the following bugs:

  • #839: Importing multiple simulations with stateful sequences should initialize all sequences
  • #852: Import an existing simulation and re-capturing the same requests will no longer create duplications.