Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
catalinaperalta committed Apr 27, 2021
1 parent a793e92 commit 6de3ac7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/internal/testframework/recording.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func getOptionalEnv(name string, defaultValue string) *string {
func (r *Recording) matchRequest(req *http.Request, rec cassette.Request) bool {
isMatch := compareMethods(req, rec, r.c) &&
compareURLs(req, rec, r.c) &&
// compareHeaders(req, rec, r.c) &&
compareHeaders(req, rec, r.c) &&
compareBodies(req, rec, r.c)

return isMatch
Expand Down
5 changes: 4 additions & 1 deletion sdk/internal/testframework/recording_sanitizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ func (s *recordingSanitizerTests) TestAddUrlSanitizerSanitizes() {
target.AddUrlSanitizer(func(url *string) {
*url = strings.Replace(*url, secret, SanitizedValue, -1)
})
target.AddBodysanitizer(func(body *string) {
target.AddBodysanitizerReq(func(body *string) {
*body = strings.Replace(*body, secret, SanitizedValue, -1)
})
target.AddBodysanitizerResp(func(body *string) {
*body = strings.Replace(*body, secret, SanitizedValue, -1)
})

Expand Down

0 comments on commit 6de3ac7

Please sign in to comment.