File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,11 @@ type ResponseVariable struct {
1212
1313// Only one of these fields should be set
1414type HTTPTest struct {
15- StatusCode * int
16- BodyContains * string
17- HeadersContain * HTTPTestHeader
18- JSONValue * HTTPTestJSONValue
15+ StatusCode * int
16+ BodyContains * string
17+ BodyContainsNone * string
18+ HeadersContain * HTTPTestHeader
19+ JSONValue * HTTPTestJSONValue
1920}
2021
2122type OperatorType string
Original file line number Diff line number Diff line change @@ -250,6 +250,9 @@ func prettyPrintHTTPTest(test api.HTTPTest) string {
250250 if test .BodyContains != nil {
251251 return fmt .Sprintf ("Expecting JSON body to contain: %s" , * test .BodyContains )
252252 }
253+ if test .BodyContainsNone != nil {
254+ return fmt .Sprintf ("Expecting JSON body to not contain: %s" , * test .BodyContainsNone )
255+ }
253256 if test .HeadersContain != nil {
254257 return fmt .Sprintf ("Expecting header to contain: '%s: %v'" , test .HeadersContain .Key , test .HeadersContain .Value )
255258 }
Original file line number Diff line number Diff line change 1- v1.10.2
1+ v1.11.0
You can’t perform that action at this time.
0 commit comments