From 6a7f2983aec4e6519b1ee82e1f80e38e52011274 Mon Sep 17 00:00:00 2001 From: Theo Beers Date: Mon, 15 Jun 2026 11:09:29 -0400 Subject: [PATCH] adjust a few feedback messages --- checks/http.go | 4 ++-- checks/local.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/checks/http.go b/checks/http.go index e9a0340..57bbfe5 100644 --- a/checks/http.go +++ b/checks/http.go @@ -133,11 +133,11 @@ func prettyPrintHTTPTest(test api.HTTPRequestTest, variables map[string]string) } if test.BodyContains != nil { interpolated := InterpolateVariables(*test.BodyContains, variables) - return fmt.Sprintf("Expecting body to contain: %s", interpolated) + return fmt.Sprintf("Expecting response body to contain: %s", interpolated) } if test.BodyContainsNone != nil { interpolated := InterpolateVariables(*test.BodyContainsNone, variables) - return fmt.Sprintf("Expecting JSON body to not contain: %s", interpolated) + return fmt.Sprintf("Expecting response body to not contain: %s", interpolated) } if test.HeadersContain != nil { interpolatedKey := InterpolateVariables(test.HeadersContain.Key, variables) diff --git a/checks/local.go b/checks/local.go index b45b947..e99103d 100644 --- a/checks/local.go +++ b/checks/local.go @@ -120,12 +120,12 @@ func evaluateHTTPRequestTests(stepIndex int, req api.CLIStepHTTPRequest, result case test.BodyContains != nil: needle := InterpolateVariables(*test.BodyContains, result.Variables) if !strings.Contains(result.BodyString, needle) { - err = fmt.Errorf("expected body to contain %q", needle) + err = fmt.Errorf("expected response body to contain %q", needle) } case test.BodyContainsNone != nil: needle := InterpolateVariables(*test.BodyContainsNone, result.Variables) if strings.Contains(result.BodyString, needle) { - err = fmt.Errorf("expected body to not contain %q", needle) + err = fmt.Errorf("expected response body to not contain %q", needle) } case test.HeadersContain != nil: err = evaluateHeaderContains(result.ResponseHeaders, *test.HeadersContain, result.Variables, "header")