Skip to content

Commit

Permalink
Incorrect merge of cherry-pick
Browse files Browse the repository at this point in the history
Signed-off-by: João Pereira <joaod@vmware.com>
  • Loading branch information
joaopapereira committed Jun 25, 2024
1 parent ebbb356 commit 880069e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions integration/v7/isolated/curl_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,19 +391,7 @@ var _ = Describe("curl command", func() {
ExpectResponseHeaders(session)
body, err := os.ReadFile(outFile.Name())
Expect(err).ToNot(HaveOccurred())

contents := string(body)
jsonStartsAt := strings.Index(contents, "{")

Expect(contents).To(ContainSubstring("HTTP/1.1 200 OK"))
Expect(contents).To(MatchRegexp(`Content-Length: .+`))
Expect(contents).To(MatchRegexp(`Content-Type: .+`))
Expect(contents).To(MatchRegexp(`Date: .+`))
Expect(contents).To(MatchRegexp(`X-Content-Type-Options: .+`))
Expect(contents).To(MatchRegexp(`X-Vcap-Request-Id: .+`))

actualJSON := contents[jsonStartsAt:]
Expect(actualJSON).To(MatchJSON(expectedJSON))
Expect(string(body)).To(MatchJSON(expectedJSON))
})

When("--output is passed and CF_TRACE is set to a file", func() {
Expand Down

0 comments on commit 880069e

Please sign in to comment.