Releases: programmfabrik/apitest
Releases · programmfabrik/apitest
Fixed server_url template func not returning pointer to url.URL
- This patch fixes the server_url template func not returning pointer to url.URL.
- As a result now we can use its methods like
{{ server_url.String }}
for prefixing paths in tests. - Also now its consistent with the documentation.
Fixed return value if template render fails + added new template funcs
v1.2.2 Fix failure counts for tests with subtest where the top level fails t…
Added semver_compare docu, default to v0.0.0 for empty versions
v1.2.1 apitest: semver_compare, add docu and default to "v0.0.0"
Added "semver_compare" template callback
new template function semver_compare (#55) Co-authored-by: Philipp Hempel <philipp.hempel@programmfabrik.de>
oath2: increased timeouts
oauth2: changed connect time outs from 5 to 60 seconds This should be configurable, for now increase the time out manually.
Improved OAUTH2 functions
Squashed commit of the following: commit 1e3b3578bdbead4a022db169763d6eac094da1ad Author: Martin Rode <martin.rode@programmfabrik.de> Date: Thu Jul 1 14:23:16 2021 +0200 body_type: fixed "urlencoded" urlencoded was not working if the provided body did not unmarshal to map[string][string] but to map[string]interface{}, which must have always happened. So, I suspect this never worked and is untested in the unit tests. commit 8458072eeac04975f1bb0b0561ad69d67f196eef Author: Martin Rode <martin.rode@programmfabrik.de> Date: Thu Jul 1 14:22:07 2021 +0200 oauth2: added "oauth2_basic_auth" + improved template functions Renamed oauth2.Key to oauth2.Client commit 8dc71149441fe272a38f233c317e0cd0b0c71527 Author: Unai Garcia <unai.garcia@programmfabrik.de> Date: Thu Jul 1 12:02:54 2021 +0200 returning only string on template functions commit 929b37f4eed7c698e4ae7619df6457177de5a49a Author: Unai Garcia <unai.garcia@programmfabrik.de> Date: Thu Jul 1 11:06:16 2021 +0200 added template functions, tests and doc commit ca1a69bf5b6a2915dd8b8ced50832db999a1ba6d Merge: ee59ffb f4c6a99 Author: Unai Garcia <unai.garcia@programmfabrik.de> Date: Thu Jul 1 09:52:22 2021 +0200 Merge branch 'master' into enhancement/oauth2-flows commit ee59ffb5ea226b7051bc1c27a8174d40132880cc Author: Martin Rode <martin.rode@programmfabrik.de> Date: Thu Jul 1 09:47:20 2021 +0200 oauth2: changed error management commit c21f01e628e480eca97788793e31f2e637b81bfe Author: Martin Rode <martin.rode@programmfabrik.de> Date: Wed Jun 30 17:14:22 2021 +0200 oauth2: renamed oauth2_token, fixed README typos commit f361cab81f591dc25f31f96680a71cbae597ef40 Author: Unai Garcia <unai.garcia@programmfabrik.de> Date: Fri Jun 25 16:10:40 2021 +0200 added some doc about oauth functionality commit 385747ec18b4398f3694cb55b25c12a835d3939e Author: Unai Garcia <unai.garcia@programmfabrik.de> Date: Fri Jun 25 15:44:36 2021 +0200 - Added support for oauth different flows - Added template functions for each - Added unit and api tests
OAuth template function + unit/api tests
It adds support for retrieving oauth2 auth response as return of a template function.
Added both unit and api tests.
v1.0.2
v1.0.2
Added .github/workflows/release.yml .github/workflows/unit-tests.yml
- Added ci steps to release a binary
- Added checkout code steps before running the tests
- Improved automatic release
- Updated .github/workflows/release.yml
- Changed draft: true to draft: false
.circleci/config.yml:
- Removed circleci as ci executor
Updated Makefile:
- Improved GOOS and GOARCH handling
- Added ci target to Makefile
Updated README.md
- Changed status badges to match github-actions
Version 1.0.0
In this release we fix:
- --curl-bash does not output artificial newlines any more
- Fixed using basic authentication in server URL
Misc fixes
- Fixed default SameSite as per go 1.16
- Added mutex for concurrent datastore writes
- Probably some other minor fixes