venom: github.com/ovh/venom/executors/smtp Index | Files

package smtp

import "github.com/ovh/venom/executors/smtp"

Index

Package Files

executor.go

Constants

const Name = "smtp"

Name for test smtp

func New Uses

func New() venom.Executor

New returns a new Test Exec

type Executor Uses

type Executor struct {
    WithTLS  bool   `json:"withtls,omitempty" yaml:"withtls,omitempty"`
    Host     string `json:"host,omitempty" yaml:"host,omitempty"`
    Port     int    `json:"port,omitempty" yaml:"port,omitempty"`
    User     string `json:"user,omitempty" yaml:"user,omitempty"`
    Password string `json:"password,omitempty" yaml:"password,omitempty"`
    To       string `json:"to,omitempty" yaml:"to,omitempty"`
    From     string `json:"from,omitempty" yaml:"from,omitempty"`
    Subject  string `json:"subject,omitempty" yaml:"subject,omitempty"`
    Body     string `json:"body,omitempty" yaml:"body,omitempty"`
}

Executor represents a Test Exec

func (Executor) GetDefaultAssertions Uses

func (Executor) GetDefaultAssertions() *venom.StepAssertions

GetDefaultAssertions return default assertions for type exec

func (Executor) Run Uses

func (Executor) Run(testCaseContext venom.TestCaseContext, l venom.Logger, step venom.TestStep, workdir string) (venom.ExecutorResult, error)

Run execute TestStep of type exec

func (Executor) ZeroValueResult Uses

func (Executor) ZeroValueResult() venom.ExecutorResult

ZeroValueResult return an empty implemtation of this executor result

type Result Uses

type Result struct {
    Executor    Executor `json:"executor,omitempty" yaml:"executor,omitempty"`
    Err         string   `json:"error" yaml:"error"`
    TimeSeconds float64  `json:"timeSeconds,omitempty" yaml:"timeSeconds,omitempty"`
    TimeHuman   string   `json:"timeHuman,omitempty" yaml:"timeHuman,omitempty"`
}

Result represents a step result

Package smtp imports 9 packages (graph) and is imported by 6 packages. Updated 2018-10-27. Refresh now. Tools for package owners.