Skip to content

Commit

Permalink
handle encoded url
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumsheep committed May 5, 2023
1 parent 3695b50 commit 1decb7a
Show file tree
Hide file tree
Showing 2 changed files with 284 additions and 197 deletions.
1 change: 1 addition & 0 deletions internal/core/testing_recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func cassetteResponseFilter(i *cassette.Interaction) error {
i.Response.Body = regexp.MustCompile(`"secret_key":"[0-9a-f-]{36}"`).ReplaceAllString(i.Response.Body, `"secret_key":"11111111-1111-1111-1111-111111111111"`)

// Buildpacks
i.Request.URL = regexp.MustCompile(`pack\.local%2Fbuilder%2F[0-9a-f]{20}`).ReplaceAllString(i.Request.URL, "pack.local%2Fbuilder%2F11111111111111111111")
i.Request.URL = regexp.MustCompile(`pack\.local/builder/[0-9a-f]{20}`).ReplaceAllString(i.Request.URL, "pack.local/builder/11111111111111111111")

i.Request.Body = regexp.MustCompile(`pack\.local/builder/[0-9a-f]{20}`).ReplaceAllString(i.Response.Body, "pack.local/builder/11111111111111111111")
Expand Down
Loading

0 comments on commit 1decb7a

Please sign in to comment.