integration_tests

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2016 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StoreApi

func StoreApi(api []*ApiDef, apiPath string) error

Types

type ApiDef

type ApiDef struct {
	Method            string
	Url               string
	UrlExample        string
	UrlParameters     []*ParameterDef
	ContentParameters []*ParameterDef
	ContentExample    interface{}
	ResExample        interface{}
	ResParameters     []*ParameterDef
}

func LoadApi

func LoadApi(apiPath string) ([]*ApiDef, error)

type CheckRes

type CheckRes int
const (
	CheckResReturn   CheckRes = iota
	CheckResContinue CheckRes = iota
	CheckResApply    CheckRes = iota
)

type ExecutePackageWrapper

type ExecutePackageWrapper struct {
	Resource, Command string
}

type Logger

type Logger interface {
	Logf(format string, a ...interface{})
	LogNode(message string, n *html.Node)
	Warnf(format string, a ...interface{})
}

func NewLogger

func NewLogger() Logger

type ParameterDef

type ParameterDef struct {
	Name        string
	Type        string
	Description string
	IsRequired  bool
	Children    []*ParameterDef
}

type Parser

type Parser interface {
	ParseApi() ([]*ApiDef, error)
}

func NewParser

func NewParser(logger Logger) Parser

type Runner

type Runner interface {
	RunTests(t *testing.T) error
}

Runner represents a integration test suite

func NewRunner

func NewRunner(api []*ApiDef, trace bool) Runner

NewRunner will create a new instance of a Runner for a supplied api definition.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL