Lightweight service virtualization/ API simulation / API mocking tool for developers and testers
Bug fix for URL-encoded form request data capturing.
Massive thanks to @kapishmalik and @petkostas! Hoverfly's simulation schema has been bumped to v5.2 to support these new awesome matchers 🚀 :
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 )
-https-only
and proxy-auth
flags.Add support for Apple silicon and ARM64 architecture support for Hoverfly Docker image.
Renew default Hoverfly CA cert
Pre-load cache bugfix: https://github.com/SpectoLabs/hoverfly/issues/1009
Bug fixes including xpath library upgrade. Add templating support for transitionsState
, thanks to @ns3777k
go 1.16 upgrade and some dependency bumps. Minor bug fixes, mainly for the JSON matcher, also handle gzipped request body for simulate and capture a bit better.
Supports remote response body file: doc (thanks to @ns3777k)
Also build Hoverfly for Linux/ARM64 as requested by the community.
bug fixes