Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Scenarios []*Scenario `json:"scenarios"` Includes json.RawMessage `json:"include"` Options *Options `json:"options"` GlobalRequest *GlobalRequest `json:"global-request"` }
type GlobalRequest ¶
type GlobalRequest struct { BaseURL string `json:"base-url"` Auth *BasicAuth `json:"auth"` Headers map[string]json.RawMessage `json:"headers"` }
type JQValueExtractor ¶
type JQValueExtractor struct { Expr string `json:"expr"` IsList bool `json:"list"` Assert json.RawMessage `json:"assert"` Header string `json:"header"` }
type JSONSchemaValueAssertion ¶
type JSONSchemaValueAssertion struct {
Schema string `json:"schema"`
}
type Options ¶
type RegexValueAssertion ¶
type RegexValueAssertion struct {
Pattern string `json:"pattern"`
}
type RegexValueExtractor ¶
type RegexValueExtractor struct { Pattern string `json:"pattern"` Assert json.RawMessage `json:"assert"` Header string `json:"header"` }
type Request ¶
type Request struct { URI string `json:"uri"` Method string `json:"method"` Auth *BasicAuth `json:"auth"` Headers map[string]json.RawMessage `json:"headers"` Body string `json:"body"` // TODO - this quotes in a way that is bad JSONBody json.RawMessage `json:"json-body"` }
type Response ¶
type Response struct { Status json.RawMessage `json:"status"` Extract map[string]json.RawMessage `json:"extract"` }
type Scenario ¶
type Test ¶
type TypeEnvelope ¶
type TypeEnvelope struct {
Type string `json:"type"`
}
Click to show internal directories.
Click to hide internal directories.