Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "ssh"
Name for test ssh
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
type Executor struct { Host string `json:"host,omitempty" yaml:"host,omitempty"` Command string `json:"command,omitempty" yaml:"command,omitempty"` User string `json:"user,omitempty" yaml:"user,omitempty"` Password string `json:"password,omitempty" yaml:"password,omitempty"` PrivateKey string `json:"privatekey,omitempty" yaml:"privatekey,omitempty"` }
Executor represents a Test Exec
func (Executor) GetDefaultAssertions ¶
func (Executor) GetDefaultAssertions() *venom.StepAssertions
GetDefaultAssertions return default assertions for type exec
func (Executor) Run ¶
func (Executor) Run(testCaseContext venom.TestCaseContext, l venom.Logger, step venom.TestStep) (venom.ExecutorResult, error)
Run execute TestStep of type exec
func (Executor) ZeroValueResult ¶ added in v0.17.0
func (Executor) ZeroValueResult() venom.ExecutorResult
ZeroValueResult return an empty implemtation of this executor result
type Result ¶
type Result struct { Executor Executor `json:"executor,omitempty" yaml:"executor,omitempty"` Systemout string `json:"systemout,omitempty" yaml:"systemout,omitempty"` Systemerr string `json:"systemerr,omitempty" yaml:"systemerr,omitempty"` Err string `json:"err,omitempty" yaml:"err,omitempty"` Code string `json:"code,omitempty" yaml:"code,omitempty"` TimeSeconds float64 `json:"timeseconds,omitempty" yaml:"timeseconds,omitempty"` TimeHuman string `json:"timehuman,omitempty" yaml:"timehuman,omitempty"` }
Result represents a step result
Click to show internal directories.
Click to hide internal directories.