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 {
12
12
13
13
// Only one of these fields should be set
14
14
type 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
19
20
}
20
21
21
22
type OperatorType string
Original file line number Diff line number Diff line change @@ -250,6 +250,9 @@ func prettyPrintHTTPTest(test api.HTTPTest) string {
250
250
if test .BodyContains != nil {
251
251
return fmt .Sprintf ("Expecting JSON body to contain: %s" , * test .BodyContains )
252
252
}
253
+ if test .BodyContainsNone != nil {
254
+ return fmt .Sprintf ("Expecting JSON body to not contain: %s" , * test .BodyContainsNone )
255
+ }
253
256
if test .HeadersContain != nil {
254
257
return fmt .Sprintf ("Expecting header to contain: '%s: %v'" , test .HeadersContain .Key , test .HeadersContain .Value )
255
258
}
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