Documentation ¶
Index ¶
- func CurrentTestDir() string
- func Get(url string) *http.Response
- func GetAppURL(appName string) string
- func GetRequestedState(appName string) string
- func MustHaveEnv(keyname string) string
- func Post(url string, contentType string, body io.Reader) *http.Response
- func RandomStringNumber() string
- func RunCommand(cmd string, args ...string) *gexec.Session
- func RunCommandAndRetry(cmd string, retries int, args ...string) *gexec.Session
- func RunCommandSuccessfully(cmd string, args ...string) *gexec.Session
- func RunCommandSuccessfullySilently(cmd string, args ...string) *gexec.Session
- func RunCommandSuccessfullyWithFailureMessage(commandDescription, cmd string, args ...string) *gexec.Session
- func RunCommandWithFailureMessage(commandDescription string, cmd string, args ...string) *gexec.Session
- func RunDisasterRecoveryAcceptanceTests(config Config, testCases []TestCase)
- func StatusCode(rawURL string) func() (int, error)
- type AppStatusResponse
- type BoshConfig
- type CloudFoundryConfig
- type Config
- type InstanceStatusResponse
- type IntegrationConfigTestCaseFilter
- type RegexTestCaseFilter
- type TestCase
- type TestCaseFilter
- type TestContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentTestDir ¶
func CurrentTestDir() string
func GetRequestedState ¶
func MustHaveEnv ¶
func RandomStringNumber ¶
func RandomStringNumber() string
func RunCommandAndRetry ¶
func RunCommandSuccessfully ¶
func StatusCode ¶
Types ¶
type AppStatusResponse ¶
type AppStatusResponse map[string]InstanceStatusResponse
type BoshConfig ¶
type CloudFoundryConfig ¶
type CloudFoundryConfig struct { Name string `json:"cf_deployment_name"` APIURL string `json:"cf_api_url"` AdminUsername string `json:"cf_admin_username"` AdminPassword string `json:"cf_admin_password"` CredHubClient string `json:"credhub_client_name"` CredHubSecret string `json:"credhub_client_secret"` NFSServiceName string `json:"nfs_service_name,omitempty"` NFSPlanName string `json:"nfs_plan_name,omitempty"` NFSCreateServiceBroker bool `json:"nfs_create_service_broker,omitempty"` NFSBrokerUser string `json:"nfs_broker_user,omitempty"` NFSBrokerPassword string `json:"nfs_broker_password,omitempty"` NFSBrokerURL string `json:"nfs_broker_url,omitempty"` SelectiveBackup bool `json:"selective_backup,omitempty"` SelectiveBackupType string `json:"selective_backup_type,omitempty"` SMBServiceName string `json:"smb_service_name,omitempty"` SMBPlanName string `json:"smb_plan_name,omitempty"` SMBCreateServiceBroker bool `json:"smb_create_service_broker,omitempty"` SMBBrokerUser string `json:"smb_broker_user,omitempty"` SMBBrokerPassword string `json:"smb_broker_password,omitempty"` SMBBrokerURL string `json:"smb_broker_url,omitempty"` NotificationsTemplateClientID string NotificationsTemplateClientSecret string }
type Config ¶
type Config struct { CloudFoundryConfig BoshConfig Timeout time.Duration DeleteAndRedeployCF bool `json:"delete_and_redeploy_cf"` }
type InstanceStatusResponse ¶
type InstanceStatusResponse struct {
State string
}
type IntegrationConfigTestCaseFilter ¶
type IntegrationConfigTestCaseFilter map[string]interface{}
func (IntegrationConfigTestCaseFilter) Filter ¶
func (f IntegrationConfigTestCaseFilter) Filter(testCases []TestCase) []TestCase
type RegexTestCaseFilter ¶
type RegexTestCaseFilter struct {
// contains filtered or unexported fields
}
func NewRegexTestCaseFilter ¶
func NewRegexTestCaseFilter(focusedSuiteName, skipSuiteName string) RegexTestCaseFilter
func (RegexTestCaseFilter) Filter ¶
func (f RegexTestCaseFilter) Filter(testCases []TestCase) []TestCase
type TestCaseFilter ¶
type TestContext ¶
func NewTestContext ¶
func NewTestContext(uniqueTestID string, boshConfig BoshConfig) (*TestContext, error)
func (*TestContext) Cleanup ¶
func (testContext *TestContext) Cleanup()
Click to show internal directories.
Click to hide internal directories.