Documentation
¶
Overview ¶
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 ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LazyCluster ¶
type LazyCluster interface { // EndpointsV2 - exposes connection points for client v2. // Calls to this method might initialize the cluster. EndpointsV2() []string // EndpointsV3 - exposes connection points for client v3. // Calls to this method might initialize the cluster. EndpointsV3() []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()
Directories
¶
Path | Synopsis |
---|---|
Package clientv3test implements tests built upon embedded etcd, and focuses on correctness of etcd client.
|
Package clientv3test implements tests built upon embedded etcd, and focuses on correctness of etcd client. |
Click to show internal directories.
Click to hide internal directories.