Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Expect ¶
type Expect struct { Code string `yaml:"code,omitempty"` Message interface{} `yaml:"message,omitempty"` Status ExpectStatus `yaml:"status,omitempty"` Header yaml.MapSlice `yaml:"header,omitempty"` Trailer yaml.MapSlice `yaml:"trailer,omitempty"` // for backward compatibility Body interface{} `yaml:"body,omitempty"` }
Expect represents expected response values.
type ExpectStatus ¶
type ExpectStatus struct { Code string `yaml:"code"` Message string `yaml:"message"` Details []map[string]yaml.MapSlice `yaml:"details"` }
ExpectStatus represents expected gRPC status.
type GRPC ¶
type GRPC struct{}
GRPC is a protocol type for the scenarigo step.
func (*GRPC) QueryOptions ¶ added in v0.17.0
func (p *GRPC) QueryOptions() []query.Option
QueryOptions implements the QueryOptionsProvider interface.
func (*GRPC) UnmarshalExpect ¶
func (p *GRPC) UnmarshalExpect(b []byte) (protocol.AssertionBuilder, error)
UnmarshalExpect implements protocol.Protocol interface.
type Request ¶
type Request struct { Client string `yaml:"client,omitempty"` Method string `yaml:"method"` Metadata interface{} `yaml:"metadata,omitempty"` Message interface{} `yaml:"message,omitempty"` // for backward compatibility Body interface{} `yaml:"body,omitempty"` }
Request represents a request.
type RequestExtractor ¶ added in v0.17.0
type RequestExtractor Request
RequestExtractor represents a request dump.
func (RequestExtractor) ExtractByKey ¶ added in v0.17.0
func (r RequestExtractor) ExtractByKey(key string) (interface{}, bool)
ExtractByKey implements query.KeyExtractor interface.
type ResponseExtractor ¶ added in v0.17.0
type ResponseExtractor response
ResponseExtractor represents a response dump.
func (ResponseExtractor) ExtractByKey ¶ added in v0.17.0
func (r ResponseExtractor) ExtractByKey(key string) (interface{}, bool)
ExtractByKey implements query.KeyExtractor interface.
Click to show internal directories.
Click to hide internal directories.