Skip to content

Releases: steinfletcher/apitest

v1.5.7

15 May 14:00
Compare
Choose a tag to compare
Remove hugo docs

v1.5.6: Unable to match mock when body is raw array

06 May 21:26
Compare
Choose a tag to compare
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

28 Apr 19:57
12951c4
Compare
Choose a tag to compare
Support customising consumer and sut names in sequence diagrams (#109)

v1.5.4

01 Apr 08:33
Compare
Choose a tag to compare
Update examples in README

v1.5.3: Support formatter on request body

22 Mar 14:33
Compare
Choose a tag to compare
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)

01 Mar 15:09
d79f37b
Compare
Choose a tag to compare
* abstract out *testing.T through an interface

* add in ginkgo test example

Co-authored-by: kuo.fong <[email protected]>

v1.5.1

24 Feb 13:47
Compare
Choose a tag to compare
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)

04 Feb 14:57
0131b90
Compare
Choose a tag to compare
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)

06 Nov 21:33
6495fc5
Compare
Choose a tag to compare
This makes it easy to inject context values during tests

v1.4.15

27 Oct 20:44
Compare
Choose a tag to compare
Support formatting on mock request and response body