From 880069e2085ac62051d239d914818dfb2b6745f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pereira?= Date: Tue, 25 Jun 2024 17:09:46 -0500 Subject: [PATCH] Incorrect merge of cherry-pick MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Pereira --- integration/v7/isolated/curl_command_test.go | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/integration/v7/isolated/curl_command_test.go b/integration/v7/isolated/curl_command_test.go index b6d3889aaea..cef5f0d4a5d 100644 --- a/integration/v7/isolated/curl_command_test.go +++ b/integration/v7/isolated/curl_command_test.go @@ -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() {