master

package
v0.0.0-...-db711b9 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestEnvContext

type TestEnvContext interface {
	// Use these addresses when connecting to the RPC system using your
	// own client instance.
	MasterExternalAddresses() []string
	// use these addresses when adding TServers to your test cluster.
	MasterInternalAddresses() []string
	// Always clean up after your run.
	Cleanup()

	// Gives access to the underlying docker pool used by this context.
	Pool() *dockertest.Pool
	// Network contains the docker network in which masters are running.
	// Your TServers must be started in the same network.
	Network() *dockertest.Network
}

TestEnvContext represents a test YugabyteDB master environment context.

func SetupMasters

func SetupMasters(t *testing.T, config *common.TestMasterConfiguration) TestEnvContext

SetupMasters sets up RF number of YugabyteDB masters.

Jump to

Keyboard shortcuts

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