Documentation ¶
Index ¶
- Constants
- func AppRootUri(appName string) string
- func AppUri(appName, path string) string
- func ConfigPath() string
- func CurlApp(appName, path string, args ...string) string
- func CurlAppRoot(appName string) string
- func CurlAppWithTimeout(appName, path string, timeout time.Duration, args ...string) string
- func CurlingAppRoot(appName string) func() string
- func EnableCFTrace(config Config, componentName string)
- func Load(path string, config interface{}) error
- func NewJUnitReporter(config Config, componentName string) *reporters.JUnitReporter
- type Config
- type ConfiguredContext
- func (context *ConfiguredContext) AdminUserContext() cf.UserContext
- func (context ConfiguredContext) GetConfiguredPassword() string
- 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 ConfigPath ¶
func ConfigPath() string
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"` AppsDomain string `json:"apps_domain"` UseHttp bool `json:"use_http"` 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"` ConfigurableTestPassword string `json:"test_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"` Backend string `json:"backend"` IncludeDiegoDocker bool `json:"include_diego_docker"` IncludeTasks bool `json:"include_tasks"` ArtifactsDirectory string `json:"artifacts_directory"` DefaultTimeout time.Duration `json:"default_timeout"` SleepTimeout time.Duration `json:"sleep_timeout"` DetectTimeout time.Duration `json:"detect_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"` StaticFileBuildpackName string `json:"staticfile_buildpack_name"` JavaBuildpackName string `json:"java_buildpack_name"` RubyBuildpackName string `json:"ruby_buildpack_name"` NodejsBuildpackName string `json:"nodejs_buildpack_name"` GoBuildpackName string `json:"go_buildpack_name"` PythonBuildpackName string `json:"python_buildpack_name"` PhpBuildpackName string `json:"php_buildpack_name"` BinaryBuildpackName string `json:"binary_buildpack_name"` NamePrefix string `json:"name_prefix"` }
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) GetConfiguredPassword ¶
func (context ConfiguredContext) GetConfiguredPassword() string
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.