helpers

package
v0.0.0-...-526ea62 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

func PrepareAndRunTests

func PrepareAndRunTests(packageName string, t *testing.T, withContext bool)

func ValidateConfig

func ValidateConfig(config *MysqlIntegrationConfig) error

Types

type BOSH

type BOSH struct {
	CACert       string `json:"ca_cert"`
	Client       string `json:"client"`
	ClientSecret string `json:"client_secret"`
	URL          string `json:"url"`
}

type CipherFinderClient

type CipherFinderClient struct {
	// contains filtered or unexported fields
}

func NewCipherFinderClient

func NewCipherFinderClient(host string, skipSSLValidation bool) CipherFinderClient

func (CipherFinderClient) Ciphers

func (c CipherFinderClient) Ciphers() (string, error)

func (CipherFinderClient) Ping

func (c CipherFinderClient) Ping() error

type Component

type Component struct {
	Ip        string `json:"ip"`
	SshTunnel string `json:"ssh_tunnel"`
}

type Job

type Job struct {
	Instances int    `yaml:"instances"`
	Name      string `yaml:"name"`
}

type ManifestPlan

type ManifestPlan struct {
	Name               string `yaml:"name"`
	Private            bool   `yaml:"private"`
	MaxStorageMB       int    `yaml:"max_storage_mb"`
	MaxUserConnections int    `yaml:"max_user_connections"`
}

type MysqlIntegrationConfig

type MysqlIntegrationConfig struct {
	CFConfig       *config.Config
	BOSH           BOSH        `json:"bosh"`
	BrokerHost     string      `json:"broker_host,omitempty"`
	BrokerProtocol string      `json:"broker_protocol,omitempty"`
	ServiceName    string      `json:"service_name"`
	EnableTlsTests bool        `json:"enable_tls_tests"`
	Plans          []Plan      `json:"plans"`
	Brokers        []Component `json:"brokers,omitempty"`
	MysqlNodes     []Component `json:"mysql_nodes,omitempty"`
	Proxy          Proxy       `json:"proxy"`
	Standalone     Standalone  `json:"standalone,omitempty"`
	StandaloneOnly bool        `json:"standalone_only,omitempty"`
	Tuning         Tuning      `json:"tuning,omitempty"`
}
var TestConfig MysqlIntegrationConfig

func LoadConfig

func LoadConfig() (MysqlIntegrationConfig, error)

func (MysqlIntegrationConfig) AppURI

func (c MysqlIntegrationConfig) AppURI(appname string) string

type MysqlManifest

type MysqlManifest struct {
	Jobs       []Job      `yaml:"jobs"`
	Properties Properties `yaml:"properties"`
}

type Pinger

type Pinger interface {
	Ping() error
}

type Plan

type Plan struct {
	Name               string `json:"name"`
	MaxStorageMb       int    `json:"max_storage_mb"`
	MaxUserConnections int    `json:"max_user_connections"`
	Private            bool   `json:"private,omitempty"`
}

type Properties

type Properties struct {
	CF struct {
		APIURL        string   `yaml:"api_url"`
		AppDomains    []string `yaml:"app_domains"`
		AdminUsername string   `yaml:"admin_username"`
		AdminPassword string   `yaml:"admin_password"`
		SmokeTests    struct {
			UseExistingOrg bool   `yaml:"use_existing_org"`
			Org            string `yaml:"org"`
		} `yaml:"smoke_tests"`
		SkipSSLValidation bool `yaml:"skip_ssl_validation"`
	} `yaml:"cf"`

	CFMySQL struct {
		Host  string `yaml:"host"`
		MySQL struct {
			Port          int    `yaml:"port"`
			AdminUsername string `yaml:"admin_username"`
			AdminPassword string `yaml:"admin_password"`
		} `yaml:"mysql"`
		SmokeTests struct {
			Password     string  `yaml:"password"`
			TimeoutScale float64 `yaml:"timeout_scale"`
		} `yaml:"smoke_tests"`
		ExternalHost string `yaml:"external_host"`
		Broker       struct {
			Services []struct {
				Name                      string         `yaml:"name"`
				MaxUserConnectionsDefault int            `yaml:"max_user_connections_default"`
				Plans                     []ManifestPlan `yaml:"plans"`
			} `yaml:"services"`
		} `yaml:"broker"`
		Proxy struct {
			APIUsername   string `yaml:"api_username"`
			APIPassword   string `yaml:"api_password"`
			APIForceHTTPS bool   `yaml:"api_force_https"`
		} `yaml:"proxy"`
	} `yaml:"cf_mysql"`
}

type Proxy

type Proxy struct {
	DashboardUrls     []string `json:"dashboard_urls"`
	APIUsername       string   `json:"api_username"`
	APIPassword       string   `json:"api_password"`
	SkipSSLValidation bool     `json:"skip_ssl_validation"`
	APIForceHTTPS     bool     `json:"api_force_https"`
}

type SinatraAppClient

type SinatraAppClient struct {
	// contains filtered or unexported fields
}

func NewSinatraAppClient

func NewSinatraAppClient(host string, serviceInstance string, skipSSLValidation bool) SinatraAppClient

func (SinatraAppClient) DeleteBulkData

func (c SinatraAppClient) DeleteBulkData(megabytes string) (string, error)

func (SinatraAppClient) Get

func (c SinatraAppClient) Get(key string) (string, error)

func (SinatraAppClient) Ping

func (c SinatraAppClient) Ping() error

func (SinatraAppClient) Set

func (c SinatraAppClient) Set(key, value string) (string, error)

func (SinatraAppClient) WriteBulkData

func (c SinatraAppClient) WriteBulkData(megabytes string) (string, error)

type Standalone

type Standalone struct {
	Host          string `json:"host"`
	MySQLUsername string `json:"username"`
	MySQLPassword string `json:"password"`
	Port          int    `json:"port"`
}

type Tuning

type Tuning struct {
	ExpectationFilePath string `json:"expectation_file_path"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL