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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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