hoverfly v1.0.1 Release Notes

Release Date: 2019-06-20 // almost 5 years ago
  • 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.