testing

package
Version: v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2016 License: Apache-2.0, Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const CAFileContent = `` /* 1559-byte string literal not displayed */

You can use cfssl tool to generate certificates, please refer https://github.com/coreos/etcd/tree/master/hack/tls-setup for more details.

ca-config.json:

expiry was changed from 1 year to 100 years (876000h)

ca-csr.json:

ca expiry was set to 100 years (876000h) ("ca":{"expiry":"876000h"})
key was changed from ecdsa,384 to rsa,2048

req-csr.json:

key was changed from ecdsa,384 to rsa,2048
hosts were changed to "localhost","127.0.0.1"
View Source
const CertFileContent = `` /* 1514-byte string literal not displayed */
View Source
const KeyFileContent = `` /* 1680-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdTestServer

type EtcdTestServer struct {
	etcdserver.ServerConfig
	PeerListeners, ClientListeners []net.Listener
	Client                         etcd.Client

	CertificatesDir string
	CertFile        string
	KeyFile         string
	CAFile          string
	// contains filtered or unexported fields
}

EtcdTestServer encapsulates the datastructures needed to start local instance for testing

func NewEtcdTestClientServer

func NewEtcdTestClientServer(t *testing.T) *EtcdTestServer

NewEtcdTestClientServer creates a new client and server for testing

func NewUnsecuredEtcdTestClientServer added in v1.1.5

func NewUnsecuredEtcdTestClientServer(t *testing.T) *EtcdTestServer

NewUnsecuredEtcdTestClientServer creates a new client and server for testing

func (*EtcdTestServer) Terminate

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

Terminate will shutdown the running etcd server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL