venom: Index | Files

package ovhapi

import ""


Package Files



const Name = "ovhapi"

Name of executor

func New Uses

func New() venom.Executor

New returns a new Executor

type Executor Uses

type Executor struct {
    Method   string  `json:"method" yaml:"method"`
    NoAuth   bool    `json:"no_auth" yaml:"noAuth"`
    Path     string  `json:"path" yaml:"path"`
    Body     string  `json:"body" yaml:"body"`
    BodyFile string  `json:"bodyfile" yaml:"bodyfile"`
    Headers  Headers `json:"headers" yaml:"headers"`

Executor struct. Json and yaml descriptor are used for json output

func (Executor) GetDefaultAssertions Uses

func (Executor) GetDefaultAssertions() venom.StepAssertions

GetDefaultAssertions return default assertions for this executor Optional

func (Executor) Run Uses

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

Run execute TestStep

func (Executor) ZeroValueResult Uses

func (Executor) ZeroValueResult() venom.ExecutorResult

ZeroValueResult return an empty implemtation of this executor result

type Headers Uses

type Headers map[string]string

Headers represents header HTTP for Request

type Result Uses

type Result struct {
    Executor    Executor    `json:"executor,omitempty" yaml:"executor,omitempty"`
    TimeSeconds float64     `json:"timeseconds,omitempty" yaml:"timeseconds,omitempty"`
    TimeHuman   string      `json:"timehuman,omitempty" yaml:"timehuman,omitempty"`
    StatusCode  int         `json:"statuscode,omitempty" yaml:"statuscode,omitempty"`
    Body        string      `json:"body,omitempty" yaml:"body,omitempty"`
    BodyJSON    interface{} `json:"bodyjson,omitempty" yaml:"bodyjson,omitempty"`
    Err         string      `json:"err,omitempty" yaml:"err,omitempty"`
    Headers     Headers     `json:"headers" yaml:"headers"`

Result represents a step result. Json and yaml descriptor are used for json output

Package ovhapi imports 14 packages (graph) and is imported by 3 packages. Updated 2018-11-29. Refresh now. Tools for package owners.