Skip to content

Commit

Permalink
chore(deps): update ⬆️ golang module github.com/jarcoal/httpmock to v…
Browse files Browse the repository at this point in the history
…1.3.0 (#69)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/jarcoal/httpmock](https://togithub.com/jarcoal/httpmock) |
require | minor | `v1.2.0` -> `v1.3.0` |

---

### Release Notes

<details>
<summary>jarcoal/httpmock</summary>

###
[`v1.3.0`](https://togithub.com/jarcoal/httpmock/releases/tag/v1.3.0)

[Compare
Source](https://togithub.com/jarcoal/httpmock/compare/v1.2.0...v1.3.0)

New features:

- new [matcher
feature](https://pkg.go.dev/github.com/jarcoal/httpmock#Matcher),
allowing to create a
[Responder](https://pkg.go.dev/github.com/jarcoal/httpmock#Responder)
based on [net/http.Request](https://pkg.go.dev/net/http#Request) content
(header or body for example), so not only on method and URL as before.
See the following new registering functions & methods:
-
[RegisterMatcherResponder](https://pkg.go.dev/github.com/jarcoal/httpmock#RegisterMatcherResponder)
&
[MockTransport.RegisterMatcherResponder](https://pkg.go.dev/github.com/jarcoal/httpmock#MockTransport.RegisterMatcherResponder),
-
[RegisterRegexpMatcherResponder](https://pkg.go.dev/github.com/jarcoal/httpmock#RegisterRegexpMatcherResponder)
&
[MockTransport.RegisterRegexpMatcherResponder](https://pkg.go.dev/github.com/jarcoal/httpmock#MockTransport.RegisterRegexpMatcherResponder),
-
[RegisterMatcherResponderWithQuery](https://pkg.go.dev/github.com/jarcoal/httpmock#RegisterMatcherResponderWithQuery)
&
[MockTransport.RegisterMatcherResponderWithQuery](https://pkg.go.dev/github.com/jarcoal/httpmock#MockTransport.RegisterMatcherResponderWithQuery);
- add following
[Responder](https://pkg.go.dev/github.com/jarcoal/httpmock#Responder)
methods, allowing to easily add some headers to the returned
[net/http.Response](https://pkg.go.dev/net/http#Response) without the
need to craft a
[Responder](https://pkg.go.dev/github.com/jarcoal/httpmock#Responder) by
hand:
-
[SetContentLength](https://pkg.go.dev/github.com/jarcoal/httpmock#Responder.SetContentLength),
-
[HeaderAdd](https://pkg.go.dev/github.com/jarcoal/httpmock#Responder.HeaderAdd),
-
[HeaderSet](https://pkg.go.dev/github.com/jarcoal/httpmock#Responder.HeaderSet).

Miscellaneous:

-   documentation now uses new go1.19 doc features;
-   go minimal version required is now 1.13;
-   CI tests using go1.20 & golangci-lint v1.51.0.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 3am on Monday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMDAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjEwMC4wIn0=-->

Co-authored-by: mend-for-github-com[bot] <50673670+mend-for-github-com[bot]@users.noreply.github.com>
  • Loading branch information
mend-for-github-com[bot] authored Feb 6, 2023
1 parent 1752fe4 commit 787afab
Show file tree
Hide file tree
Showing 10 changed files with 2,063 additions and 830 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require (
github.com/golang-jwt/jwt/v4 v4.4.3
github.com/hinshun/vt10x v0.0.0-20220301184237-5011da428d02
github.com/hokaccha/go-prettyjson v0.0.0-20211117102719-0474bc63780f
github.com/jarcoal/httpmock v1.2.0
github.com/jarcoal/httpmock v1.3.0
github.com/magefile/mage v1.14.0
github.com/maxbrunsfeld/counterfeiter/v6 v6.5.0
github.com/mitchellh/cli v1.1.5
Expand Down
6 changes: 3 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ github.com/itchyny/gojq v0.12.7 h1:hYPTpeWfrJ1OT+2j6cvBScbhl0TkdwGM4bc66onUSOQ=
github.com/itchyny/gojq v0.12.7/go.mod h1:ZdvNHVlzPgUf8pgjnuDTmGfHA/21KoutQUJ3An/xNuw=
github.com/itchyny/timefmt-go v0.1.3 h1:7M3LGVDsqcd0VZH2U+x393obrzZisp7C0uEe921iRkU=
github.com/itchyny/timefmt-go v0.1.3/go.mod h1:0osSSCQSASBJMsIZnhAaF1C2fCBTJZXrnj37mG8/c+A=
github.com/jarcoal/httpmock v1.2.0 h1:gSvTxxFR/MEMfsGrvRbdfpRUMBStovlSRLw0Ep1bwwc=
github.com/jarcoal/httpmock v1.2.0/go.mod h1:oCoTsnAz4+UoOUIf5lJOWV2QQIW5UoeUI6aM2YnWAZk=
github.com/jarcoal/httpmock v1.3.0 h1:2RJ8GP0IIaWwcC9Fp2BmVi8Kog3v2Hn7VXM3fTd+nuc=
github.com/jarcoal/httpmock v1.3.0/go.mod h1:3yb8rc4BI7TCBhFY8ng0gjuLKJNquuDNiPaZjnENuYg=
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=
Expand Down Expand Up @@ -336,7 +336,7 @@ github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m
github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU=
github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/maxatome/go-testdeep v1.11.0 h1:Tgh5efyCYyJFGUYiT0qxBSIDeXw0F5zSoatlou685kk=
github.com/maxatome/go-testdeep v1.12.0 h1:Ql7Go8Tg0C1D/uMMX59LAoYK7LffeJQ6X2T04nTH68g=
github.com/maxbrunsfeld/counterfeiter/v6 v6.5.0 h1:rBhB9Rls+yb8kA4x5a/cWxOufWfXt24E+kq4YlbGj3g=
github.com/maxbrunsfeld/counterfeiter/v6 v6.5.0/go.mod h1:fJ0UAZc1fx3xZhU4eSHQDJ1ApFmTVhp5VTpV9tm2ogg=
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
Expand Down
61 changes: 11 additions & 50 deletions vendor/github.com/jarcoal/httpmock/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

138 changes: 70 additions & 68 deletions vendor/github.com/jarcoal/httpmock/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 24 additions & 18 deletions vendor/github.com/jarcoal/httpmock/file.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion vendor/github.com/jarcoal/httpmock/internal/error.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 787afab

Please sign in to comment.