package testing
import "k8s.io/kubernetes/pkg/storage/etcd/testing"
Index ¶
Constants ¶
const CAFileContent = "" /* 1561 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"
const CertFileContent = "" /* 1516 byte string literal not displayed */
const KeyFileContent = "" /* 1682 byte string literal not displayed */
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 (*EtcdTestServer) Terminate ¶
func (m *EtcdTestServer) Terminate(t *testing.T)
Terminate will shutdown the running etcd server
Source Files ¶
certificates.go utils.go
- Version
- v1.3.0-alpha.4
- Published
- May 17, 2016
- Platform
- js/wasm
- Imports
- 17 packages
- Last checked
- 1 minute ago –
Tools for package owners.