Releases: SpectoLabs/hoverfly
v1.5.0
Massive thanks to @kapishmalik and @petkostas! Hoverfly's simulation schema has been bumped to v5.2 to support these new awesome matchers 🚀 :
- Array matcher: supports loose matching for array values, and this will be the default matcher for multi-value query param or header in captured data.
- Form matcher: matches request payload with URL encoded form.
- JWT matcher: has a built-in JWT parser, and lets you match JWT with its decoded JSON form directly.
Most excitingly new schema lets you do matcher chaining to create powerful matchers, for example, you can match a JWT token's payload containing a name JSON field with the value "John Doe", and the JWT token is present in a URL encoded form.
"body": [{
"matcher": "form",
"value": {
"client_assertion": [{
"matcher": "jwt",
"value": "{\"header\":{\"alg\":\"HS256\"},\"payload\":{}}",
"doMatch": {
"matcher": "jsonpath",
"value": "$.payload",
"doMatch": {
"matcher": "jsonpath",
"value": "$.name",
"doMatch": {
"matcher": "exact",
"value": "John Doe"
}
}
}
}]
}
}]
For more info, please check out the doc here.
v5.2 simulation also supports declaring global literals and variables for templated response. These are the constants and helper methods which you want to re-use for templating throughout a simulation.
Other changes include Go version upgrade to 1.18 and other dependency bumps (thanks @joobus )
v1.4.0
- Update to the latest goproxy
- Introduce a new templating function based on go-fakeit to generate random data (https://docs.hoverfly.io/en/latest/pages/keyconcepts/templating/templating.html#faker-new) Thanks to @petkostas
- Remove support for
-https-only
andproxy-auth
flags.
v1.3.7
v1.3.6
v1.3.5
v1.3.4
v1.3.3
v1.3.2
v1.3.1
v1.3.0
Simulation schema is upgraded to v5.1
to support the following new features (a big thanks to @ns3777k):
The binary size is up a few MBs after switching to go mod since v1.2.0
, so this release strip off the debugger info to squeeze it down a little bit while we come up with a plan for hoverfly to lose some weight.