functional

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

README

etcd migration functional tests

This functional test suite deploys a etcd cluster using processes, and asserts etcd is functioning properly.

Dependencies

The test suite can only be run in CoreOS system. It's recommended to run this in a virtual machine environment on CoreOS (e.g. using coreos-vagrant). The only dependency for the tests not provided on the CoreOS image is go.

Usage

Set environment variables point to the respective binaries that are used to drive the actual tests:

$ export ETCD_V1_BIN=/path/to/v1_etcd
$ export ETCD_V2_BIN=/path/to/v2_etcd
$ export ETCDCTL_BIN=/path/to/etcdctl

Then the tests can be run:

$ go test github.com/coreos/etcd/migrate/functional

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proc

type Proc struct {
	*exec.Cmd
	Name    string
	DataDir string
	URL     string
	PeerURL string
	// contains filtered or unexported fields
}

func NewProcInProcGroupWithV1Flags

func NewProcInProcGroupWithV1Flags(path string, num int, idx int) *Proc

func NewProcWithDefaultFlags

func NewProcWithDefaultFlags(path string) *Proc

func NewProcWithV1Flags

func NewProcWithV1Flags(path string) *Proc

func NewProcWithV2Flags

func NewProcWithV2Flags(path string) *Proc

func (*Proc) CleanUnsuppportedV1Flags

func (p *Proc) CleanUnsuppportedV1Flags()

func (*Proc) Restart

func (p *Proc) Restart() error

func (*Proc) SetDataDir

func (p *Proc) SetDataDir(dataDir string)

func (*Proc) SetDiscovery

func (p *Proc) SetDiscovery(url string)

func (*Proc) SetName

func (p *Proc) SetName(name string)

func (*Proc) SetPeerTLS

func (p *Proc) SetPeerTLS(certFile, keyFile, caFile string)

func (*Proc) SetSnapCount

func (p *Proc) SetSnapCount(cnt int)

func (*Proc) SetV1Addr

func (p *Proc) SetV1Addr(addr string)

func (*Proc) SetV1PeerAddr

func (p *Proc) SetV1PeerAddr(addr string)

func (*Proc) SetV1Peers

func (p *Proc) SetV1Peers(peers []string)

func (*Proc) SetV2PeerURL

func (p *Proc) SetV2PeerURL(url string)

func (*Proc) Start

func (p *Proc) Start() error

func (*Proc) Stop

func (p *Proc) Stop()

func (*Proc) Terminate

func (p *Proc) Terminate()

type ProcGroup

type ProcGroup []*Proc

func NewProcGroupViaDiscoveryWithV1Flags

func NewProcGroupViaDiscoveryWithV1Flags(path string, num int, url string) ProcGroup

func NewProcGroupWithV1Flags

func NewProcGroupWithV1Flags(path string, num int) ProcGroup

func (ProcGroup) CleanUnsuppportedV1Flags

func (pg ProcGroup) CleanUnsuppportedV1Flags()

func (ProcGroup) InheritDataDir

func (pg ProcGroup) InheritDataDir(opg ProcGroup)

func (ProcGroup) SetPeerTLS

func (pg ProcGroup) SetPeerTLS(certFile, keyFile, caFile string)

func (ProcGroup) SetSnapCount

func (pg ProcGroup) SetSnapCount(count int)

func (ProcGroup) Start

func (pg ProcGroup) Start() error

func (ProcGroup) Stop

func (pg ProcGroup) Stop()

func (ProcGroup) Terminate

func (pg ProcGroup) Terminate()

func (ProcGroup) Wait

func (pg ProcGroup) Wait() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL