test_utils

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Host             = "localhost"
	RootUser         = "root"
	RootUserPassword = "rootpassword"

	// Dummy user and password for clone from external.
	ExternalDonorUser         = "external-donor-user"
	ExternalDonorUserPassword = "externaldonorpassword"
	ExternalInitUser          = "external-init-user"
	ExternalInitUserPassword  = "externalinitpassword"

	// Dummy password for MySQL users which are managed by MOCO.
	OperatorUserPassword      = "userpassword"
	OperatorAdminUserPassword = "adminpassword"
	ReplicationUserPassword   = "replpassword"
	CloneDonorUserPassword    = "clonepassword"
	MiscUserPassword          = "miscpassword"
)

Variables

View Source
var MySQLVersion = os.Getenv("MYSQL_VERSION")

Functions

func Connect added in v0.4.0

func Connect(port, retryCount int) (*sqlx.DB, error)

func CreateNetwork

func CreateNetwork() error

func InitializeMySQL

func InitializeMySQL(port int) error

func InitializeMySQLAsExternalDonor added in v0.4.0

func InitializeMySQLAsExternalDonor(port int) error

func PrepareTestData

func PrepareTestData(port int) error

func RemoveNetwork

func RemoveNetwork() error

func ResetMaster

func ResetMaster(port int) error

func SetValidDonorList

func SetValidDonorList(port int, donorHost string, donorPort int) error

func StartMySQLD

func StartMySQLD(name string, port int, serverID int) error

func StartSlaveWithInvalidSettings

func StartSlaveWithInvalidSettings(port int) error

func StopAndRemoveMySQLD

func StopAndRemoveMySQLD(name string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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