kubernetes: k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/storage/etcd3/testing Index | Files | Directories

package testing

import "k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/storage/etcd3/testing"


Package Files

test_server.go utils.go

func AddPrefix Uses

func AddPrefix(in string) string

AddPrefix adds the ETCD_PREFIX to the provided key

func PathPrefix Uses

func PathPrefix() string

PathPrefix returns the prefix set via the ETCD_PREFIX environment variable (if any).

type EtcdTestServer Uses

type EtcdTestServer struct {
    // The following are lumped etcd2 test server params
    // TODO: Deprecate in a post 1.5 release
    PeerListeners, ClientListeners []net.Listener
    Client                         etcd.Client

    CertificatesDir string
    CertFile        string
    KeyFile         string
    CAFile          string

    V3Client *clientv3.Client
    // contains filtered or unexported fields

EtcdTestServer encapsulates the datastructures needed to start local instance for testing

func NewEtcdTestClientServer Uses

func NewEtcdTestClientServer(t *testing.T) *EtcdTestServer

NewEtcdTestClientServer DEPRECATED creates a new client and server for testing

func NewUnsecuredEtcd3TestClientServer Uses

func NewUnsecuredEtcd3TestClientServer(t *testing.T) (*EtcdTestServer, *storagebackend.Config)

NewUnsecuredEtcd3TestClientServer creates a new client and server for testing

func (*EtcdTestServer) Terminate Uses

func (m *EtcdTestServer) Terminate(t *testing.T)

Terminate will shutdown the running etcd server



Package testing imports 24 packages (graph). Updated 2020-07-23. Refresh now. Tools for package owners.