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 ¶
- type Proc
- func (p *Proc) CleanUnsuppportedV1Flags()
- func (p *Proc) Restart() error
- func (p *Proc) SetDataDir(dataDir string)
- func (p *Proc) SetDiscovery(url string)
- func (p *Proc) SetName(name string)
- func (p *Proc) SetPeerTLS(certFile, keyFile, caFile string)
- func (p *Proc) SetSnapCount(cnt int)
- func (p *Proc) SetV1Addr(addr string)
- func (p *Proc) SetV1PeerAddr(addr string)
- func (p *Proc) SetV1Peers(peers []string)
- func (p *Proc) SetV2PeerURL(url string)
- func (p *Proc) Start() error
- func (p *Proc) Stop()
- func (p *Proc) Terminate()
- type ProcGroup
- func (pg ProcGroup) CleanUnsuppportedV1Flags()
- func (pg ProcGroup) InheritDataDir(opg ProcGroup)
- func (pg ProcGroup) SetPeerTLS(certFile, keyFile, caFile string)
- func (pg ProcGroup) SetSnapCount(count int)
- func (pg ProcGroup) Start() error
- func (pg ProcGroup) Stop()
- func (pg ProcGroup) Terminate()
- func (pg ProcGroup) Wait() error
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 NewProcWithDefaultFlags ¶
func NewProcWithV1Flags ¶
func NewProcWithV2Flags ¶
func (*Proc) CleanUnsuppportedV1Flags ¶
func (p *Proc) CleanUnsuppportedV1Flags()
func (*Proc) SetDataDir ¶
func (*Proc) SetDiscovery ¶
func (*Proc) SetPeerTLS ¶
func (*Proc) SetSnapCount ¶
func (*Proc) SetV1PeerAddr ¶
func (*Proc) SetV1Peers ¶
func (*Proc) SetV2PeerURL ¶
type ProcGroup ¶
type ProcGroup []*Proc
func NewProcGroupWithV1Flags ¶
func (ProcGroup) CleanUnsuppportedV1Flags ¶
func (pg ProcGroup) CleanUnsuppportedV1Flags()
func (ProcGroup) InheritDataDir ¶
func (ProcGroup) SetPeerTLS ¶
func (ProcGroup) SetSnapCount ¶
Click to show internal directories.
Click to hide internal directories.