package integration

import "go.etcd.io/etcd/tests/v3/integration"

Package integration implements tests built upon embedded etcd, and focus on etcd correctness.

Features/goals of the integration tests: 1. test the whole code base except command-line parsing. 2. check internal data, including raft, store and etc. 3. based on goroutines, which is faster than process. 4. mainly tests user behavior and user-facing API.

Index

Types

type LazyCluster

type LazyCluster interface {
	// EndpointsHTTP - exposes connection points for http endpoints.
	// Calls to this method might initialize the cluster.
	EndpointsHTTP() []string

	// EndpointsGRPC - exposes connection points for client v3.
	// Calls to this method might initialize the cluster.
	EndpointsGRPC() []string

	// Cluster - calls to this method might initialize the cluster.
	Cluster() *integration.Cluster

	// Transport - call to this method might initialize the cluster.
	Transport() *http.Transport

	Terminate()

	TB() testutil.TB
}

func NewLazyCluster

func NewLazyCluster() LazyCluster

NewLazyCluster returns a new test cluster handler that gets created on the first call to GetEndpoints() or GetTransport()

func NewLazyClusterWithConfig

func NewLazyClusterWithConfig(cfg integration.ClusterConfig) LazyCluster

NewLazyClusterWithConfig returns a new test cluster handler that gets created on the first call to GetEndpoints() or GetTransport()

Source Files

doc.go lazy_cluster.go

Directories

PathSynopsis
integration/clientv3Package clientv3test implements tests built upon embedded etcd, and focuses on correctness of etcd client.
integration/clientv3/concurrency
integration/clientv3/connectivity
integration/clientv3/examples
integration/clientv3/experimental
integration/clientv3/experimental/recipes
integration/clientv3/lease
integration/clientv3/naming
integration/clientv3/snapshot
integration/embed
integration/proxy
integration/proxy/grpcproxy
integration/snapshot
integration/v2store
Version
v3.6.0 (latest)
Published
May 15, 2025
Platform
js/wasm
Imports
7 packages
Last checked
1 second ago

Tools for package owners.