Registry / testing / etcd-tests-v3

etcd-tests-v3

JSON →
library3.6.12gogounverified

Package tests provides testing utilities and integration test helpers for etcd v3.

go get go.etcd.io/etcd/tests/v3
INSTALL
IMPORT
SIG · ETCD-TESTS-V3
E
etcd-tests-v3
testinggov3.6.12
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tests
✓ go.etcd.io/etcd/tests/v3

Creates a test etcd cluster with 3 nodes for integration testing.

package main import ( "testing" "go.etcd.io/etcd/tests/v3" ) func TestCluster(t *testing.T) { clus := tests.NewCluster(t, &tests.ClusterConfig{Size: 3}) defer clus.Terminate(t) }
Debug
Known issues
gotchaThis package is intended for testing only and should not be used in production code.
fix
Import only in _test.go files or test helper packages.
affects: all
Upgrade
Version history
3.6.12latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
etcd-tests-v3 — go get etcd-tests-v3 · libregistry