Documentation
¶
Index ¶
Constants ¶
View Source
const Name = "grpc"
Name for test exec
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
type Executor struct {
URL string `json:"url" yaml:"url"`
Service string `json:"service" yaml:"service"`
Method string `json:"method" yaml:"method"`
JSONDefaultFields bool `json:"default_fields" yaml:"default_fields"`
IncludeTextSeparator bool `json:"include_text_separator" yaml:"include_text_separator"`
Data map[string]interface{} `json:"data" yaml:"data"`
Headers map[string]string `json:"headers" yaml:"headers"`
ConnectTimeout *int64 `json:"connect_timeout" yaml:"connect_timeout"`
TLSClientCert string `json:"tls_client_cert" yaml:"tls_client_cert" mapstructure:"tls_client_cert"`
TLSClientKey string `json:"tls_client_key" yaml:"tls_client_key" mapstructure:"tls_client_key"`
TLSRootCA string `json:"tls_root_ca" yaml:"tls_root_ca" mapstructure:"tls_root_ca"`
IgnoreVerifySSL bool `json:"ignore_verify_ssl" yaml:"ignore_verify_ssl" mapstructure:"ignore_verify_ssl"`
}
Executor represents a Test Exec
func (Executor) GetDefaultAssertions ¶
func (Executor) GetDefaultAssertions() *venom.StepAssertions
GetDefaultAssertions return default assertions for type exec
func (Executor) ZeroValueResult ¶
func (Executor) ZeroValueResult() interface{}
ZeroValueResult return an empty implementation of this executor result
type Result ¶
type Result struct {
Systemout string `json:"systemout,omitempty" yaml:"systemout,omitempty"`
SystemoutJSON interface{} `json:"systemoutjson,omitempty" yaml:"systemoutjson,omitempty"`
Systemerr string `json:"systemerr,omitempty" yaml:"systemerr,omitempty"`
SystemerrJSON interface{} `json:"systemerrjson,omitempty" yaml:"systemerrjson,omitempty"`
Err string `json:"err,omitempty" yaml:"err,omitempty"`
Code string `json:"code,omitempty" yaml:"code,omitempty"`
Details []interface{} `json:"details,omitempty" yaml:"details,omitempty"`
TimeSeconds float64 `json:"timeseconds,omitempty" yaml:"timeseconds,omitempty"`
}
Result represents a step result
Click to show internal directories.
Click to hide internal directories.