Documentation ¶
Index ¶
- Constants
- func AppRootUri(appName string) string
- func AppUri(appName, path string) string
- func CurlApp(appName, path string) string
- func CurlAppRoot(appName string) string
- func CurlAppWithTimeout(appName, path string, timeout time.Duration) string
- func CurlingAppRoot(appName string) func() string
- func EnableCFTrace(config Config, componentName string)
- func NewJUnitReporter(config Config, componentName string) *reporters.JUnitReporter
- type Config
- type ConfiguredContext
- func (context *ConfiguredContext) AdminUserContext() cf.UserContext
- func (context ConfiguredContext) LongTimeout() time.Duration
- func (context *ConfiguredContext) RegularUserContext() cf.UserContext
- func (context *ConfiguredContext) SetRunawayQuota()
- func (context *ConfiguredContext) Setup()
- func (context ConfiguredContext) ShortTimeout() time.Duration
- func (context *ConfiguredContext) Teardown()
- type Environment
- type SuiteContext
Constants ¶
View Source
const CURL_TIMEOUT = 30 * time.Second
View Source
const RUNAWAY_QUOTA_MEM_LIMIT = "99999G"
Variables ¶
This section is empty.
Functions ¶
func CurlAppRoot ¶
Curls an app's root endpoint and exit successfully before the default timeout
func CurlAppWithTimeout ¶
Curls an app's endpoint and exit successfully before the specified timeout
func CurlingAppRoot ¶
Returns a function that curls an app's root endpoint and exit successfully before the default timeout
func EnableCFTrace ¶
func NewJUnitReporter ¶
func NewJUnitReporter(config Config, componentName string) *reporters.JUnitReporter
Types ¶
type Config ¶
type Config struct { ApiEndpoint string `json:"api"` SystemDomain string `json:"system_domain"` OauthPassword string `json:"oauth_password"` AppsDomain string `json:"apps_domain"` AdminUser string `json:"admin_user"` AdminPassword string `json:"admin_password"` UseExistingUser bool `json:"use_existing_user"` ShouldKeepUser bool `json:"keep_user_at_suite_end"` ExistingUser string `json:"existing_user"` ExistingUserPassword string `json:"existing_user_password"` PersistentAppHost string `json:"persistent_app_host"` PersistentAppSpace string `json:"persistent_app_space"` PersistentAppOrg string `json:"persistent_app_org"` PersistentAppQuotaName string `json:"persistent_app_quota_name"` SkipSSLValidation bool `json:"skip_ssl_validation"` UseDiego bool `json:"use_diego"` ArtifactsDirectory string `json:"artifacts_directory"` DefaultTimeout time.Duration `json:"default_timeout"` CfPushTimeout time.Duration `json:"cf_push_timeout"` LongCurlTimeout time.Duration `json:"long_curl_timeout"` BrokerStartTimeout time.Duration `json:"broker_start_timeout"` TimeoutScale float64 `json:"timeout_scale"` SyslogDrainPort int `json:"syslog_drain_port"` SyslogIpAddress string `json:"syslog_ip_address"` SecureAddress string `json:"secure_address"` DockerExecutable string `json:"docker_executable"` DockerParameters []string `json:"docker_parameters"` DockerRegistryAddress string `json:"docker_registry_address"` DockerPrivateImage string `json:"docker_private_image"` DockerUser string `json:"docker_user"` DockerPassword string `json:"docker_password"` DockerEmail string `json:"docker_email"` }
func LoadConfig ¶
func LoadConfig() Config
type ConfiguredContext ¶
type ConfiguredContext struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext(config Config) *ConfiguredContext
func NewPersistentAppContext ¶
func NewPersistentAppContext(config Config) *ConfiguredContext
func (*ConfiguredContext) AdminUserContext ¶
func (context *ConfiguredContext) AdminUserContext() cf.UserContext
func (ConfiguredContext) LongTimeout ¶
func (context ConfiguredContext) LongTimeout() time.Duration
func (*ConfiguredContext) RegularUserContext ¶
func (context *ConfiguredContext) RegularUserContext() cf.UserContext
func (*ConfiguredContext) SetRunawayQuota ¶
func (context *ConfiguredContext) SetRunawayQuota()
func (*ConfiguredContext) Setup ¶
func (context *ConfiguredContext) Setup()
func (ConfiguredContext) ShortTimeout ¶
func (context ConfiguredContext) ShortTimeout() time.Duration
func (*ConfiguredContext) Teardown ¶
func (context *ConfiguredContext) Teardown()
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
func NewEnvironment ¶
func NewEnvironment(context SuiteContext) *Environment
func (*Environment) Setup ¶
func (e *Environment) Setup()
func (*Environment) Teardown ¶
func (e *Environment) Teardown()
type SuiteContext ¶
type SuiteContext interface { Setup() Teardown() SetRunawayQuota() AdminUserContext() cf.UserContext RegularUserContext() cf.UserContext ShortTimeout() time.Duration LongTimeout() time.Duration }
Click to show internal directories.
Click to hide internal directories.