Skip to content

Commit

Permalink
fix : ignore request simulation for mocks captured from non http requ…
Browse files Browse the repository at this point in the history
…ests (#191)

Signed-off-by: deepto <ddepp98@outlook.com>
  • Loading branch information
deepto98 authored Jul 3, 2023
1 parent 640732a commit eec4e98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integrations/khttpclient/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ func MockRespFromYaml(kctx *internal.Context, logger *zap.Logger, req *http.Requ
// determine the degree of match for all mocked http request in mock
// array with current http call
for i, j := range mocks {
// If the Mock isn't of HTTP type, don't match it
if j.Kind != string(models.HTTP) {
continue
}
reqUrl, er := url.Parse(j.Spec.Req.URL)
if er != nil {
continue
Expand Down

0 comments on commit eec4e98

Please sign in to comment.