Releases: steinfletcher/apitest
Releases · steinfletcher/apitest
v1.5.7
Remove hugo docs
v1.5.6: Unable to match mock when body is raw array
This is caused by 2 issues: 1. The JSON compare method uses a map[string]interface{}, but it really should use interface{} to support arrays 2. The brackets '[]' in the spec trigger the regexp matcher, so it never works. The solution is to remove support for regexp on body matching (it's undocumented) and provided a separate `BodyRegexp` method if users want to match using regexp. This could potentially break some existing tests, but the inclusion of this new method should ease the migration, and I think not supporting matching arrays is a bigger issue that can't be worked around.
v1.5.5
Support customising consumer and sut names in sequence diagrams (#109)
v1.5.4
Update examples in README
v1.5.3: Support formatter on request body
This is already supported on response body, mock request and responses, so it makes sense to support this when setting the request body
v1.5.2: Feature/testing t interface (#108)
* abstract out *testing.T through an interface * add in ginkgo test example Co-authored-by: kuo.fong <[email protected]>
v1.5.1
Fix incorrect order of 'expected' and 'actual' when diffing failing m…
v1.5.0: Support delaying mock responses by a fixed number of milliseconds (#103)
This feature might be useful for predicting the response time of a handler. When using the Debug(...) helper the total time of the handler is printed to the console. It might be desirable to only use this during experiments and to not run this config in CI. This is why the global option must be enabled to turn this on.
v1.4.16: Preserve request context modified by interceptor (#101)
This makes it easy to inject context values during tests
v1.4.15
Support formatting on mock request and response body