Documentation ¶
Index ¶
- Constants
- func AnalyzeDB(ccdb *sql.DB, ctx context.Context, testConfig Config)
- func CleanupTestData(ccdb, uaadb *sql.DB, ctx context.Context, testConfig Config)
- func ConvertToString(input interface{}) string
- func CreateAppFolder(appName string) string
- func ExecuteInsertStatement(db *sql.DB, ctx context.Context, statement string, testConfig Config) 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 ExecuteStoredProcedure(db *sql.DB, ctx context.Context, statement string, testConfig Config)
- func GenerateReports(reporter *JsonReporter, report types.Report)
- func GetGUIDs(user workflowhelpers.UserContext, testConfig Config, endpoint string) []string
- func GetRandomFunction(testConfig Config) string
- func GetUserGUID(user workflowhelpers.UserContext, testConfig Config) string
- func ImportStoredProcedures(ccdb *sql.DB, ctx context.Context, testConfig Config)
- func LoadConfig(testConfig *Config)
- func OpenDbConnections(testConfig Config) (ccdb, uaadb *sql.DB, ctx context.Context)
- func RemoveDebugOutput(body []byte) []byte
- func Shuffle(items []string) []string
- func TimeCFCurl(timeout time.Duration, curlArguments ...string)
- func TimeCFCurlReturning(timeout time.Duration, curlArguments ...string) (int, []byte)
- func WaitToFail(user workflowhelpers.UserContext, testConfig Config, endpoint string)
- type APICreateResponse
- type APIResponse
- type Config
- func (config Config) GetAddExistingUserToExistingSpace() bool
- 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 DestinationsCreateResponse
- type JsonReporter
- type Measurement
- type User
- type Users
Constants ¶
View Source
const MysqlDb string = "mysql"
View Source
const PsqlDb string = "postgres"
Variables ¶
This section is empty.
Functions ¶
func CleanupTestData ¶
func ConvertToString ¶
func ConvertToString(input interface{}) string
func CreateAppFolder ¶
func ExecuteInsertStatement ¶
func ExecuteSelectStatement ¶
func ExecuteStoredProcedure ¶
func GenerateReports ¶
func GenerateReports(reporter *JsonReporter, report types.Report)
func GetGUIDs ¶
func GetGUIDs(user workflowhelpers.UserContext, testConfig Config, endpoint string) []string
func GetRandomFunction ¶
func GetUserGUID ¶
func GetUserGUID(user workflowhelpers.UserContext, testConfig Config) string
func ImportStoredProcedures ¶
func LoadConfig ¶
func LoadConfig(testConfig *Config)
func OpenDbConnections ¶
func RemoveDebugOutput ¶
func TimeCFCurl ¶
func TimeCFCurlReturning ¶
func WaitToFail ¶
func WaitToFail(user workflowhelpers.UserContext, testConfig Config, endpoint string)
Types ¶
type APICreateResponse ¶
type APICreateResponse struct {
GUID string `json:"guid"`
}
func ParseCreateResponseBody ¶
func ParseCreateResponseBody(body []byte) *APICreateResponse
type APIResponse ¶
type APIResponse struct { Pagination struct { TotalPages int `json:"total_pages"` TotalResults int `json:"total_results"` } `json:"pagination"` Resources []struct { GUID string `json:"guid"` Name string `json:"name"` UserName string `json:"username"` } `json:"resources"` }
func ApiCall ¶
func ApiCall(user workflowhelpers.UserContext, testConfig Config, endpoint string) *APIResponse
func ParseResponseBody ¶
func ParseResponseBody(body []byte) *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 DatabaseType string `mapstructure:"database_type"` CcdbConnection string `mapstructure:"ccdb_connection"` UaadbConnection string `mapstructure:"uaadb_connection"` ResultsFolder string `mapstructure:"results_folder"` TestResourcePrefix string `mapstructure:"test_resource_prefix"` }
func (Config) GetAddExistingUserToExistingSpace ¶
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 DestinationsCreateResponse ¶
type DestinationsCreateResponse struct { Destinations []struct { GUID string `json:"guid"` } `json:"destinations"` }
func ParseDestinationsCreateResponseBody ¶
func ParseDestinationsCreateResponseBody(body []byte) *DestinationsCreateResponse
type JsonReporter ¶
type JsonReporter struct { Measurements map[string]map[string]Measurement `json:"measurements"` CfDeploymentVersion string `json:"cfDeploymentVersion"` Timestamp int64 `json:"timestamp"` CapiVersion string `json:"capiVersion"` CCDBVersion string `json:"ccdbVersion"` // contains filtered or unexported fields }
func ConfigureJsonReporter ¶
func ConfigureJsonReporter(testConfig *Config, testSuiteName string, testHeadlineName string, test_version string) *JsonReporter
func NewJsonReporter ¶
type Measurement ¶
type Measurement struct { Name string `json:"Name"` Info interface{} `json:"Info"` Order int `json:"Order"` Results []float64 `json:"Results"` Smallest float64 `json:"Smallest"` Largest float64 `json:"Largest"` Average float64 `json:"Average"` StdDeviation float64 `json:"StdDeviation"` SmallestLabel string `json:"SmallestLabel"` LargestLabel string `json:"LargestLabel"` AverageLabel string `json:"AverageLabel"` Units string `json:"Units"` }
Click to show internal directories.
Click to hide internal directories.