Documentation ¶
Index ¶
- Variables
- func BinaryErrorCheck(err error, binaryPath string)
- func BuildBinaryPath() string
- func DoRequest(r *sling.Sling) *http.Response
- func GenerateFileName() string
- func Healthcheck(adminPort int)
- func Run(binary string, commands ...string) string
- func TableToSliceMapStringString(table string) map[string]map[string]string
- type Hoverfly
- func (this Hoverfly) DeleteBoltDb()
- func (this Hoverfly) ExportSimulation() v2.SimulationViewV4
- func (this Hoverfly) FlushCache() v2.CacheView
- func (this Hoverfly) GetAPIToken(username, password string) string
- func (this Hoverfly) GetAdminPort() string
- func (this Hoverfly) GetCache() v2.CacheView
- func (this Hoverfly) GetMode() *v2.ModeView
- func (this Hoverfly) GetPid() int
- func (this Hoverfly) GetProxyPort() string
- func (this Hoverfly) GetSimulation() io.Reader
- func (this Hoverfly) ImportSimulation(simulation string)
- func (this Hoverfly) Proxy(r *sling.Sling) *http.Response
- func (this Hoverfly) ProxyRequest(req *http.Request) *http.Response
- func (this Hoverfly) ProxyWithAuth(r *sling.Sling, user, password string) *http.Response
- func (this Hoverfly) SetDestination(destination string)
- func (this Hoverfly) SetMiddleware(binary, script string)
- func (this Hoverfly) SetMode(mode string)
- func (this Hoverfly) SetModeWithArgs(mode string, arguments v2.ModeArgumentsView)
- func (this *Hoverfly) Start(commands ...string)
- func (this Hoverfly) Stop()
- func (this Hoverfly) StopAPIAuthenticated(username, password string)
- func (this Hoverfly) WriteLogsIfError()
Constants ¶
This section is empty.
Variables ¶
View Source
var ClosestMissProofSimulation = `` /* 828-byte string literal not displayed */
View Source
var ExactMatchPayload = `` /* 2706-byte string literal not displayed */
View Source
var GlobMatchSimulation = `` /* 619-byte string literal not displayed */
View Source
var HoverflyPassword = "password"
View Source
var HoverflyUsername = "benjih"
View Source
var Issue607 = `` /* 1590-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 = `` /* 1756-byte string literal not displayed */
View Source
var JsonPayloadPreloadCache = `` /* 1557-byte string literal not displayed */
View Source
var JsonPayloadV1 = `` /* 1329-byte string literal not displayed */
View Source
var JsonPayloadWithDelays = `` /* 2222-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 SingleRequestMatcherToResponse = `` /* 323-byte string literal not displayed */
View Source
var StatePayload = `` /* 1942-byte string literal not displayed */
View Source
var StrongestMatchProofSimulation = `` /* 1113-byte string literal not displayed */
View Source
var TemplatingDisabled = `` /* 638-byte string literal not displayed */
View Source
var TemplatingDisabledByDefault = `` /* 592-byte string literal not displayed */
View Source
var TemplatingEnabled = `` /* 632-byte string literal not displayed */
View Source
var TemplatingEnabledWithStateInBody = `` /* 776-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 BuildBinaryPath ¶
func BuildBinaryPath() string
func GenerateFileName ¶ added in v0.11.1
func GenerateFileName() string
func Healthcheck ¶
func Healthcheck(adminPort int)
Types ¶
type Hoverfly ¶
type Hoverfly struct {
// contains filtered or unexported fields
}
func NewHoverfly ¶
func NewHoverfly() *Hoverfly
func NewHoverflyWithAdminPort ¶ added in v0.11.5
func (Hoverfly) DeleteBoltDb ¶
func (this Hoverfly) DeleteBoltDb()
func (Hoverfly) ExportSimulation ¶ added in v0.11.0
func (this Hoverfly) ExportSimulation() v2.SimulationViewV4
func (Hoverfly) FlushCache ¶ added in v0.11.0
func (Hoverfly) GetAPIToken ¶ added in v0.11.2
func (Hoverfly) GetAdminPort ¶
func (Hoverfly) GetProxyPort ¶
func (Hoverfly) GetSimulation ¶
func (Hoverfly) ImportSimulation ¶ added in v0.11.0
func (Hoverfly) ProxyRequest ¶ added in v0.14.1
func (Hoverfly) ProxyWithAuth ¶ added in v0.10.2
func (Hoverfly) SetDestination ¶ added in v0.12.3
func (Hoverfly) SetMiddleware ¶
func (Hoverfly) SetModeWithArgs ¶ added in v0.11.0
func (this Hoverfly) SetModeWithArgs(mode string, arguments v2.ModeArgumentsView)
func (Hoverfly) StopAPIAuthenticated ¶ added in v0.11.5
func (Hoverfly) WriteLogsIfError ¶ added in v0.13.0
func (this Hoverfly) WriteLogsIfError()
Used for debugging when trying to find out why a functional test is failing
Click to show internal directories.
Click to hide internal directories.