context_setup

package
v0.0.0-...-9019959 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2014 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdminUserContext cf.UserContext
View Source
var RegularUserContext cf.UserContext
View Source
var TimeoutScale float64

Functions

func ScaledTimeout

func ScaledTimeout(timeout time.Duration) time.Duration

func SetupEnvironment

func SetupEnvironment(context SuiteContext)

Types

type ConfiguredContext

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

func NewContext

func NewContext(config IntegrationConfig, prefix string) *ConfiguredContext

func (*ConfiguredContext) AdminUserContext

func (context *ConfiguredContext) AdminUserContext() cf.UserContext

func (*ConfiguredContext) RegularUserContext

func (context *ConfiguredContext) RegularUserContext() cf.UserContext

func (*ConfiguredContext) Setup

func (context *ConfiguredContext) Setup()

func (*ConfiguredContext) Teardown

func (context *ConfiguredContext) Teardown()

type IntegrationConfig

type IntegrationConfig struct {
	AppsDomain        string  `json:"apps_domain"`
	ApiEndpoint       string  `json:"api"`
	AdminUser         string  `json:"admin_user"`
	AdminPassword     string  `json:"admin_password"`
	SkipSSLValidation bool    `json:"skip_ssl_validation"`
	TimeoutScale      float64 `json:"timeout_scale"`
}

type SuiteContext

type SuiteContext interface {
	Setup()
	Teardown()

	AdminUserContext() cf.UserContext
	RegularUserContext() cf.UserContext
}

Jump to

Keyboard shortcuts

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