-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcase.go
More file actions
33 lines (29 loc) · 1007 Bytes
/
Copy pathcase.go
File metadata and controls
33 lines (29 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package immune
type SetupTestCase struct {
Name string `json:"name"`
StoreResponseVariables S `json:"store_response_variables"`
RequestBody M `json:"request_body"`
ResponseBody bool `json:"response_body"`
Endpoint string `json:"endpoint"`
HTTPMethod Method `json:"http_method"`
StatusCode int `json:"status_code"`
//Report *SetupTestCaseReport `json:"-"`
}
type SetupTestCaseReport struct {
WantsResponseBody bool
HasResponseBody bool
}
type TestCase struct {
Name string `json:"name"`
Setup []string `json:"setup"`
StatusCode int `json:"status_code"`
HTTPMethod Method `json:"http_method"`
Endpoint string `json:"endpoint"`
ResponseBody bool `json:"response_body"`
Callback Callback `json:"callback"`
RequestBody M `json:"request_body"`
}
type Callback struct {
Enabled bool `json:"enabled"`
Times uint `json:"times"`
}