tests

package module
v0.0.0-...-9900837 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Context is canceled on SIGTERM or SIGINT. Tests should cleanup and exit.
	Context context.Context

	// True if -debug or -trace flag is passed.
	Debug bool

	// PMM Server Params.
	PMMServerParams *dbaasClient.PMMParams

	// PXCClusterAPIClient contains client for dbaas-controller API related to XtraDB clusters.
	PXCClusterAPIClient dbaasClient.PXCClusterAPIClient

	// PSMDBClusterAPIClient contains client for dbaas-controller API related to PSMDB clusters.
	PSMDBClusterAPIClient dbaasClient.PSMDBClusterAPIClient

	// KubernetesClusterAPIClient contains client for dbaas-controller API related to Kubernetes clusters.
	KubernetesClusterAPIClient dbaasClient.KubernetesClusterAPIClient

	// LogsAPIClient contails client for dbaas-controller API related to database cluster's logs
	LogsAPIClient dbaasClient.LogsAPIClient
)

Functions

func AssertGRPCErrorRE

func AssertGRPCErrorRE(tb testing.TB, expectedCode codes.Code, expectedMessageRE string, actual error)

AssertGRPCErrorRE checks that actual error has expected gRPC error code, and error messages matches expected regular expression.

func WaitForClusterState

func WaitForClusterState(ctx context.Context, kubeconfig string, name string, state controllerv1beta1.DBClusterState) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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