-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update module github.com/jarcoal/httpmock to v1.3.1 - abandoned #5084
base: master
Are you sure you want to change the base?
Conversation
265a011
to
70e3595
Compare
705cc5c
to
5c5bde6
Compare
e6c0d22
to
f0f0995
Compare
10e6371
to
324faf1
Compare
324faf1
to
def0094
Compare
5e178c0
to
d043f9d
Compare
25e8bc3
to
6e1ce42
Compare
222d8d2
to
eb653e9
Compare
26ca3e1
to
8f07c37
Compare
|
/it-go |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
Autoclosing SkippedThis PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error. |
This PR contains the following updates:
v1.0.8
->v1.3.1
Release Notes
jarcoal/httpmock (github.com/jarcoal/httpmock)
v1.3.1
Compare Source
Fix:
v1.3.0
Compare Source
New features:
Miscellaneous:
v1.2.0
Compare Source
New features:
NewNotFoundResponder
helps to detect a possible path mistake (final/
or double/
cases);(*MockTransport).Responders
method allowing to list registered responders.Fixes:
url.RawPath
is used instead ofurl.Path
when checking path alone for consistency with full URL check, which is always unescaped.Let 2 registered responders:
GET http://z.tld/foo%2fbar
GET /foo%2fbar
Before this release:
GET http://z.tld/foo%2fbar
is caught by 1GET http://unknown.tld/foo%2fbar
is not caught as the tested path is/foo/bar
instead of/foo%2fbar
From this release:
GET http://z.tld/foo%2fbar
is caught by 1GET http://unknown.tld/foo%2fbar
is caught by 2save of old clients transports is now protected from concurrent writes (@roboslone).
Miscellaneous:
any
type instead ofinterface{}
, as appeared in go 1.18 (in a compatible manner with go<1.18).Enjoy!
v1.1.0
Compare Source
New features:
Responder
for a lower-cased method amongCONNECT
,DELETE
,GET
,HEAD
,OPTIONS
,POST
,PUT
andTRACE
, produces a panic as it is probably a mistake. This behavior can be disabled by setting newMockTransport.DontCheckMethod
field totrue
prior to theRegister*Responder*()
call;nil
Responder
now unregisters it and zeroes its statistics;Responder
methods:Delay(time.Duration)
to delay a response,Then(Responder)
to chain responders.Fix:
Response.Body
are now consistent. Now, the httpmock one can only be read once: if some code wrongly depends onNewStringResponse()
&NewBytesResponse()
response body be read ad infinitum, it should be changed to either recallNewStringResponse()
&NewBytesResponse()
before reading again the response body, or useNewStringResponder()
&NewBytesResponder()
.Doc:
Responder
zeroes its statistics.Enjoy!
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.
This PR was generated by Mend Renovate. View the repository job log.