Skip to content

Commit 55ee118

Browse files
make messages less detailed
1 parent 56d624b commit 55ee118

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

render/variables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func responseHeaderVariableDescription(v api.HTTPRequestResponseHeaderVariable)
9797
if v.Regex == "" {
9898
return "Response Header " + v.Header
9999
}
100-
return fmt.Sprintf("Response Header %s matching %s", v.Header, v.Regex)
100+
return "Response Header " + v.Header + " pattern"
101101
}
102102

103103
func availableVariablesForHTTPResult(result api.HTTPRequestResult) (entries []variableEntry, expectsVariables bool) {

render/variables_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ func TestHTTPVariableSections(t *testing.T) {
4646
wantContains := []string{
4747
"Variables Saved:",
4848
"resetToken: reset-123 (Response Body pattern)",
49-
"sessionID: session-123 (Response Header Set-Cookie matching session_id=([^;]+))",
49+
"sessionID: session-123 (Response Header Set-Cookie pattern)",
5050
"shortCode: abc123 (JSON Body .short_code)",
5151
"Variables Missing:",
5252
"missingCode: [not found] (JSON Body .missing_code)",
5353
"missingResetToken: [not found] (Response Body pattern)",
54-
"missingSessionID: [not found] (Response Header Set-Cookie matching missing=([^;]+))",
54+
"missingSessionID: [not found] (Response Header Set-Cookie pattern)",
5555
"Variables Available:",
5656
"authToken: token-123 (Request Header \"Authorization\")",
5757
"shortCode: abc123 (Request URL)",

0 commit comments

Comments
 (0)