File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
103103func availableVariablesForHTTPResult (result api.HTTPRequestResult ) (entries []variableEntry , expectsVariables bool ) {
Original file line number Diff line number Diff 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)" ,
You can’t perform that action at this time.
0 commit comments