master

package
v0.0.2-beta.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 11 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 {
	MasterNames() []string
	// 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()
	// Other allocated ports for set of masters.
	OtherPorts() common.MultiMasterAllocatedAdditionalPorts

	// 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. Order of the items in MasterNames(), MasterExternalAddresses() and MasterInternalAddresses() is preserved: first master name references first external and first internal address.

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