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

package imap

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

Index

Package Files

decode.go executor.go

Constants

const Name = "imap"

Name for test imap

func New Uses

func New() venom.Executor

New returns a new Test Exec

type Executor Uses

type Executor struct {
    IMAPHost        string `json:"imaphost,omitempty" yaml:"imaphost,omitempty"`
    IMAPPort        string `json:"imapport,omitempty" yaml:"imapport,omitempty"`
    IMAPUser        string `json:"imapuser,omitempty" yaml:"imapuser,omitempty"`
    IMAPPassword    string `json:"imappassword,omitempty" yaml:"imappassword,omitempty"`
    MBox            string `json:"mbox,omitempty" yaml:"mbox,omitempty"`
    MBoxOnSuccess   string `json:"mboxonsuccess,omitempty" yaml:"mboxonsuccess,omitempty"`
    DeleteOnSuccess bool   `json:"deleteonsuccess,omitempty" yaml:"deleteonsuccess,omitempty"`
    SearchFrom      string `json:"searchfrom,omitempty" yaml:"searchfrom,omitempty"`
    SearchTo        string `json:"searchto,omitempty" yaml:"searchto,omitempty"`
    SearchSubject   string `json:"searchsubject,omitempty" yaml:"searchsubject,omitempty"`
    SearchBody      string `json:"searchbody,omitempty" yaml:"searchbody,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(ctx 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 Mail Uses

type Mail struct {
    From    string
    To      string
    Subject string
    UID     uint32
    Body    string
}

Mail contains an analyzed mail

type Result Uses

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

Result represents a step result

Package imap imports 18 packages (graph) and is imported by 6 packages. Updated 2019-01-10. Refresh now. Tools for package owners.