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.
Click to show internal directories.
Click to hide internal directories.