v1.0.1
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: