Documentation ¶
Index ¶
- func CleanupTestData(ccdb, uaadb *sql.DB, ctx context.Context, testConfig Config)
- func ExecuteInsertStatement(db *sql.DB, ctx context.Context, statement string) int
- func ExecutePreparedInsertStatement(db *sql.DB, ctx context.Context, statement string, args ...interface{}) int
- func ExecuteSelectStatement(db *sql.DB, ctx context.Context, statement string) []interface{}
- func ExecuteSelectStatementOneRow(db *sql.DB, ctx context.Context, statement string) int
- func ExecuteStatement(db *sql.DB, ctx context.Context, statement string)
- func GetGUIDs(user workflowhelpers.UserContext, testConfig Config, endpoint string) []string
- func GetTotalResults(user workflowhelpers.UserContext, testConfig Config, endpoint string) int
- func GetUserGUID(user workflowhelpers.UserContext, testConfig Config) string
- func GetXRuntimeHeader(response []byte) float64
- func ImportStoredProcedures(ccdb *sql.DB, ctx context.Context, testConfig Config)
- func OpenDbConnections(testConfig Config) (ccdb, uaadb *sql.DB, ctx context.Context)
- func SelectRandom(items []string, count int) []string
- func Shuffle(items []string) []string
- func TimeCFCurl(b ginkgo.Benchmarker, timeout time.Duration, curlArguments ...string)
- func TimeCFCurlReturning(b ginkgo.Benchmarker, timeout time.Duration, curlArguments ...string) (int, []byte)
- func WaitToFail(user workflowhelpers.UserContext, testConfig Config, endpoint string)
- type APIResponse
- type Config
- func (config Config) GetAdminClient() string
- func (config Config) GetAdminClientSecret() string
- func (config Config) GetAdminPassword() string
- func (config Config) GetAdminUser() string
- func (config Config) GetApiEndpoint() string
- func (config Config) GetConfigurableTestPassword() string
- func (config Config) GetExistingClient() string
- func (config Config) GetExistingClientSecret() string
- func (config Config) GetExistingOrganization() string
- func (config Config) GetExistingSpace() string
- func (config Config) GetExistingUser() string
- func (config Config) GetExistingUserPassword() string
- func (config Config) GetNamePrefix() string
- func (config Config) GetResultsFolder() string
- func (config Config) GetScaledTimeout(t time.Duration) time.Duration
- func (config Config) GetShouldKeepUser() bool
- func (config Config) GetSkipSSLValidation() bool
- func (config Config) GetUseExistingOrganization() bool
- func (config Config) GetUseExistingSpace() bool
- func (config Config) GetUseExistingUser() bool
- type JsonReporter
- func (reporter *JsonReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary)
- func (reporter *JsonReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary)
- func (reporter *JsonReporter) SpecDidComplete(specSummary *types.SpecSummary)
- func (reporter *JsonReporter) SpecSuiteDidEnd(summary *types.SuiteSummary)
- func (reporter *JsonReporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary)
- func (reporter *JsonReporter) SpecWillRun(specSummary *types.SpecSummary)
- type Reporter
- type User
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupTestData ¶
func ExecuteInsertStatement ¶
func ExecuteSelectStatement ¶
func GetGUIDs ¶
func GetGUIDs(user workflowhelpers.UserContext, testConfig Config, endpoint string) []string
func GetTotalResults ¶
func GetTotalResults(user workflowhelpers.UserContext, testConfig Config, endpoint string) int
func GetUserGUID ¶
func GetUserGUID(user workflowhelpers.UserContext, testConfig Config) string
func GetXRuntimeHeader ¶
func ImportStoredProcedures ¶
func OpenDbConnections ¶
func SelectRandom ¶
func TimeCFCurl ¶
func TimeCFCurl(b ginkgo.Benchmarker, timeout time.Duration, curlArguments ...string)
func TimeCFCurlReturning ¶
func WaitToFail ¶
func WaitToFail(user workflowhelpers.UserContext, testConfig Config, endpoint string)
Types ¶
type APIResponse ¶
type Config ¶
type Config struct { API string UseHttp bool `mapstructure:"use_http"` SkipSslValidation bool `mapstructure:"skip_ssl_validation"` CfDeploymentVersion string `mapstructure:"cf_deployment_version"` CapiVersion string `mapstructure:"capi_version"` LargePageSize int `mapstructure:"large_page_size"` LargeElementsFilter int `mapstructure:"large_elements_filter"` Samples int BasicTimeout time.Duration `mapstructure:"basic_timeout"` LongTimeout time.Duration `mapstructure:"long_timeout"` Users Users CcdbConnection string `mapstructure:"ccdb_connection"` UaadbConnection string `mapstructure:"uaadb_connection"` ResultsFolder string `mapstructure:"results_folder"` TestResourcePrefix string `mapstructure:"test_resource_prefix"` }
func (Config) GetAdminClient ¶
func (Config) GetAdminClientSecret ¶
func (Config) GetAdminPassword ¶
func (Config) GetAdminUser ¶
func (Config) GetApiEndpoint ¶
func (Config) GetConfigurableTestPassword ¶
func (Config) GetExistingClient ¶
func (Config) GetExistingClientSecret ¶
func (Config) GetExistingOrganization ¶
func (Config) GetExistingSpace ¶
func (Config) GetExistingUser ¶
func (Config) GetExistingUserPassword ¶
func (Config) GetNamePrefix ¶
func (Config) GetResultsFolder ¶
func (Config) GetScaledTimeout ¶
func (Config) GetShouldKeepUser ¶
func (Config) GetSkipSSLValidation ¶
func (Config) GetUseExistingOrganization ¶
func (Config) GetUseExistingSpace ¶
func (Config) GetUseExistingUser ¶
type JsonReporter ¶
type JsonReporter struct { // only capitalised elements are exported and marshalled to json Measurements map[string]map[string]*types.SpecMeasurement `json:"measurements"` CfDeploymentVersion string `json:"cfDeploymentVersion"` Timestamp int64 `json:"timestamp"` CapiVersion string `json:"capiVersion"` // contains filtered or unexported fields }
func ConfigureJsonReporter ¶
func ConfigureJsonReporter(t *testing.T, testConfig *Config, testSuiteName string) *JsonReporter
func NewJsonReporter ¶
func NewJsonReporter(outputFile string, cfDeploymentVersion string, CapiVersion string, timestamp int64) *JsonReporter
func (*JsonReporter) AfterSuiteDidRun ¶
func (reporter *JsonReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary)
func (*JsonReporter) BeforeSuiteDidRun ¶
func (reporter *JsonReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary)
func (*JsonReporter) SpecDidComplete ¶
func (reporter *JsonReporter) SpecDidComplete(specSummary *types.SpecSummary)
func (*JsonReporter) SpecSuiteDidEnd ¶
func (reporter *JsonReporter) SpecSuiteDidEnd(summary *types.SuiteSummary)
func (*JsonReporter) SpecSuiteWillBegin ¶
func (reporter *JsonReporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary)
func (*JsonReporter) SpecWillRun ¶
func (reporter *JsonReporter) SpecWillRun(specSummary *types.SpecSummary)
type Reporter ¶
type Reporter interface { SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary) BeforeSuiteDidRun(setupSummary *types.SetupSummary) SpecWillRun(specSummary *types.SpecSummary) SpecDidComplete(specSummary *types.SpecSummary) AfterSuiteDidRun(setupSummary *types.SetupSummary) SpecSuiteDidEnd(summary *types.SuiteSummary) }
Click to show internal directories.
Click to hide internal directories.