Documentation ¶
Index ¶
- func CheckGossip(ctx context.Context, c cluster.Cluster, d time.Duration, f CheckGossipFunc) error
- func EphemeralStorageAccount() string
- func FixtureStorageAccount() string
- func FixtureURL(name string) string
- func GetStopper() *stop.Stopper
- func MainTest(m *testing.M)
- func MakeFarmer(t testing.TB, prefix string, stopper *stop.Stopper) *terrafarm.Farmer
- func RunDocker(t *testing.T, testee func(t *testing.T))
- func RunLocal(t *testing.T, testee func(t *testing.T))
- func RunTerraform(t *testing.T, testee func(t *testing.T))
- func RunTests(m *testing.M)
- func SkipUnlessRemote(t testing.TB)
- func StartCluster(ctx context.Context, t *testing.T, cfg cluster.TestConfig) (c cluster.Cluster)
- type CheckGossipFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGossip ¶
CheckGossip fetches the gossip infoStore from each node and invokes the given function. The test passes if the function returns 0 for every node, retrying for up to the given duration.
func EphemeralStorageAccount ¶ added in v1.1.0
func EphemeralStorageAccount() string
EphemeralStorageAccount returns the name of the storage account to use to store data that should be periodically purged. It returns a storage account in the region specified by the -tf.storage-location flag to avoid bandwidth egress charges.
See /docs/CLOUD-RESOURCES.md for details.
func FixtureStorageAccount ¶ added in v1.1.0
func FixtureStorageAccount() string
FixtureStorageAccount returns the name of the storage account that contains permanent test data ("test fixtures"). It returns a storage account in the region specified by the -tf.storage-location flag to avoid bandwidth egress charges.
See /docs/CLOUD-RESOURCES.md for details.
func FixtureURL ¶ added in v1.1.0
FixtureURL returns the public URL at which the fixture with the given name can be downloaded from Azure Cloud Storage. Like FixtureStorageAccount(), it takes the -tf.storage-location flag into account.
func GetStopper ¶
GetStopper returns the stopper used by acceptance tests.
func MakeFarmer ¶
MakeFarmer creates a terrafarm farmer for use in acceptance tests.
func RunTerraform ¶ added in v1.1.0
RunTerraform runs the given acceptance test using a terraform cluster.
func SkipUnlessRemote ¶
SkipUnlessRemote calls t.Skip if not running against a remote cluster.
func StartCluster ¶
StartCluster starts a cluster from the relevant flags. All test clusters should be created through this command since it sets up the logging in a unified way.
Types ¶
type CheckGossipFunc ¶
CheckGossipFunc is the type of callback used in CheckGossip.
func HasPeers ¶
func HasPeers(expected int) CheckGossipFunc
HasPeers returns a CheckGossipFunc that passes when the given number of peers are connected via gossip.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package cluster is a generated protocol buffer package.
|
Package cluster is a generated protocol buffer package. |
compose
|
|
gss/psql
Module
|
|
tc
Package tc contains utility methods for using the Linux tc (traffic control) command to mess with the network links between cockroach nodes running on the local machine.
|
Package tc contains utility methods for using the Linux tc (traffic control) command to mess with the network links between cockroach nodes running on the local machine. |