Versions in this module Expand all Collapse all v2 v2.5.0 Jun 28, 2021 Changes in this version + const ExitCode + const LineCount + const Stderr + const Stdout + func WithIdentityFile(identityFile string) func(e *SSHExecutor) + func WithPassword(pass string) func(e *SSHExecutor) + type CommandResult struct + Error error + ExitCode int + FailureProperties []string + Status ResultStatus + Stderr string + Stdout string + type CommandUnderTest struct + Cmd string + Dir string + Env map[string]string + InheritEnv bool + Interval string + Retries int + Timeout string + func (c *CommandUnderTest) GetRetries() int + type DockerExecutor struct + ExecUser string + Image string + Privileged bool + RegistryPass string + RegistryUser string + func (e DockerExecutor) Execute(test TestCase) TestResult + type EventHandler struct + TestFinished func(TestResult) + TestSkipped func(TestResult) + type Executor interface + Execute func(test TestCase) TestResult + func NewLocalExecutor() Executor + func NewSSHExecutor(host string, user string, opts ...func(e *SSHExecutor)) Executor + type Expected struct + ExitCode int + LineCount int + Stderr ExpectedOut + Stdout ExpectedOut + type ExpectedOut struct + Contains []string + Exactly string + File string + JSON map[string]string + LineCount int + Lines map[int]string + NotContains []string + XML map[string]string + type Filters []string + type GlobalTestConfig struct + Dir string + Env map[string]string + InheritEnv bool + Interval string + Nodes []string + Retries int + Timeout string + type LocalExecutor struct + func (e LocalExecutor) Execute(test TestCase) TestResult + type Node struct + Addr string + DockerExecUser string + IdentityFile string + Image string + Name string + Pass string + Privileged bool + Type string + User string + func (n *Node) ExpandEnv() + type Result struct + Duration time.Duration + Failed int + Skipped int + TestResults []TestResult + type ResultStatus int + type Runner struct + Nodes []Node + func (r *Runner) Run(tests []TestCase) <-chan TestResult + type Runtime struct + EventHandler *EventHandler + Runner *Runner + func NewRuntime(eh *EventHandler, nodes ...Node) Runtime + func (r *Runtime) Start(tests []TestCase) Result + type SSHExecutor struct + Host string + IdentityFile string + Password string + User string + func (e SSHExecutor) Execute(test TestCase) TestResult + type TestCase struct + Command CommandUnderTest + Expected Expected + FileName string + Nodes []string + Result CommandResult + Skip bool + Title string + type TestResult struct + FailedProperty string + Node string + Skipped bool + TestCase TestCase + Tries int + ValidationResult ValidationResult + func Validate(test TestCase) TestResult + type ValidationResult struct + Diff string + Success bool