functional_tests

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExactMatchPayload = `` /* 2706-byte string literal not displayed */
View Source
var GlobMatchSimulation = `` /* 619-byte string literal not displayed */
View Source
var JsonMatchSimulation = `` /* 623-byte string literal not displayed */
View Source
var JsonPathMatchSimulation = `` /* 617-byte string literal not displayed */
View Source
var JsonPayload = `` /* 1791-byte string literal not displayed */
View Source
var JsonPayloadV1 = `` /* 1329-byte string literal not displayed */
View Source
var JsonPayloadWithDelays = `` /* 2085-byte string literal not displayed */
View Source
var JsonSimulationGetAndPost = `` /* 1973-byte string literal not displayed */
View Source
var Middleware = `` /* 745-byte string literal not displayed */
View Source
var MultipleMatchSimulation = `` /* 1123-byte string literal not displayed */
View Source
var RegexMatchSimulation = `` /* 622-byte string literal not displayed */
View Source
var XmlSimulation = `` /* 632-byte string literal not displayed */
View Source
var XpathSimulation = `` /* 639-byte string literal not displayed */

Functions

func BinaryErrorCheck

func BinaryErrorCheck(err error, binaryPath string)

func BuildBinaryPath

func BuildBinaryPath() string

func DoRequest

func DoRequest(r *sling.Sling) *http.Response

func GenerateFileName added in v0.11.1

func GenerateFileName() string

func Healthcheck

func Healthcheck(adminPort int)

func KillHoverflyTargets added in v0.11.1

func KillHoverflyTargets(table string)

func Run

func Run(binary string, commands ...string) string

func TableToSliceMapStringString added in v0.11.1

func TableToSliceMapStringString(table string) map[string]map[string]string

Types

type Hoverfly

type Hoverfly struct {
	// contains filtered or unexported fields
}

func NewHoverfly

func NewHoverfly() *Hoverfly

func (Hoverfly) DeleteBoltDb

func (this Hoverfly) DeleteBoltDb()

func (Hoverfly) ExportSimulation added in v0.11.0

func (this Hoverfly) ExportSimulation() v2.SimulationViewV2

func (Hoverfly) FlushCache added in v0.11.0

func (this Hoverfly) FlushCache() v2.CacheView

func (Hoverfly) GetAPIToken added in v0.11.2

func (this Hoverfly) GetAPIToken(username, password string) string

func (Hoverfly) GetAdminPort

func (this Hoverfly) GetAdminPort() string

func (Hoverfly) GetCache added in v0.11.0

func (this Hoverfly) GetCache() v2.CacheView

func (Hoverfly) GetMode

func (this Hoverfly) GetMode() string

func (Hoverfly) GetPid added in v0.11.1

func (this Hoverfly) GetPid() int

func (Hoverfly) GetProxyPort

func (this Hoverfly) GetProxyPort() string

func (Hoverfly) GetSimulation

func (this Hoverfly) GetSimulation() io.Reader

func (Hoverfly) ImportSimulation added in v0.11.0

func (this Hoverfly) ImportSimulation(simulation string)

func (Hoverfly) Proxy

func (this Hoverfly) Proxy(r *sling.Sling) *http.Response

func (Hoverfly) ProxyWithAuth added in v0.10.2

func (this Hoverfly) ProxyWithAuth(r *sling.Sling, user, password string) *http.Response

func (Hoverfly) SetMiddleware

func (this Hoverfly) SetMiddleware(binary, script string)

func (Hoverfly) SetMode

func (this Hoverfly) SetMode(mode string)

func (Hoverfly) SetModeWithArgs added in v0.11.0

func (this Hoverfly) SetModeWithArgs(mode string, arguments v2.ModeArgumentsView)

func (*Hoverfly) Start

func (this *Hoverfly) Start(commands ...string)

func (Hoverfly) Stop

func (this Hoverfly) Stop()

Jump to

Keyboard shortcuts

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