Documentation ¶
Overview ¶
Package e2e contains end-to-end tests.
Index ¶
- type TestCtx
- func (ctx *TestCtx) AgentInSync() bool
- func (ctx *TestCtx) ExecCmd(cmd string, args ...string) (string, string, error)
- func (ctx *TestCtx) ExecVppctl(action string, args ...string) (string, error)
- func (ctx *TestCtx) GenericClient() client.GenericClient
- func (ctx *TestCtx) GetValueState(value proto.Message) kvscheduler.ValueState
- func (ctx *TestCtx) GetValueStateByKey(key string) kvscheduler.ValueState
- func (ctx *TestCtx) GetValueStateClb(value proto.Message) func() kvscheduler.ValueState
- func (ctx *TestCtx) PingFromMs(msName, dstAddress string, opts ...pingOpt) error
- func (ctx *TestCtx) PingFromMsClb(msName, dstAddress string, opts ...pingOpt) func() error
- func (ctx *TestCtx) PingFromVPP(destAddress string) error
- func (ctx *TestCtx) PingFromVPPClb(destAddress string) func() error
- func (ctx *TestCtx) StartEtcd() string
- func (ctx *TestCtx) StartMicroservice(msName string) (ms *microservice)
- func (ctx *TestCtx) StopEtcd(id string)
- func (ctx *TestCtx) StopMicroservice(msName string)
- func (ctx *TestCtx) Teardown()
- func (ctx *TestCtx) TestConnection(fromMs, toMs, toAddr, listenAddr string, toPort, listenPort uint16, udp bool, ...) error
- func (ctx *TestCtx) VppRelease() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestCtx ¶
func (*TestCtx) AgentInSync ¶
AgentInSync checks if the agent NB config and the SB state (VPP+Linux) are in-sync.
func (*TestCtx) ExecVppctl ¶
ExecVppctl returns output from vppctl for given action and arguments.
func (*TestCtx) GenericClient ¶
func (ctx *TestCtx) GenericClient() client.GenericClient
func (*TestCtx) GetValueState ¶
func (ctx *TestCtx) GetValueState(value proto.Message) kvscheduler.ValueState
func (*TestCtx) GetValueStateByKey ¶
func (ctx *TestCtx) GetValueStateByKey(key string) kvscheduler.ValueState
func (*TestCtx) GetValueStateClb ¶
func (ctx *TestCtx) GetValueStateClb(value proto.Message) func() kvscheduler.ValueState
GetValueStateClb can be used to repeatedly check value state inside the assertions "Eventually" and "Consistently" from Omega.
func (*TestCtx) PingFromMs ¶
PingFromMs pings <dstAddress> from the microservice <msName>
func (*TestCtx) PingFromMsClb ¶
PingFromMsClb can be used to ping repeatedly inside the assertions "Eventually" and "Consistently" from Omega.
func (*TestCtx) PingFromVPP ¶
PingFromVPP pings <dstAddress> from inside the VPP.
func (*TestCtx) PingFromVPPClb ¶
PingFromVPPClb can be used to ping repeatedly inside the assertions "Eventually" and "Consistently" from Omega.