e2e

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package e2e contains end-to-end tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCtx

type TestCtx struct {
	VPP *exec.Cmd
	// contains filtered or unexported fields
}

func Setup

func Setup(t *testing.T) *TestCtx

func (*TestCtx) AgentInSync

func (ctx *TestCtx) AgentInSync() bool

AgentInSync checks if the agent NB config and the SB state (VPP+Linux) are in-sync.

func (*TestCtx) ExecCmd

func (ctx *TestCtx) ExecCmd(cmd string, args ...string) (string, string, error)

ExecCmd executes command and returns stdout, stderr as strings and error.

func (*TestCtx) ExecVppctl

func (ctx *TestCtx) ExecVppctl(action string, args ...string) (string, error)

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

func (ctx *TestCtx) PingFromMs(msName, dstAddress string, opts ...pingOpt) error

PingFromMs pings <dstAddress> from the microservice <msName>

func (*TestCtx) PingFromMsClb

func (ctx *TestCtx) PingFromMsClb(msName, dstAddress string, opts ...pingOpt) func() error

PingFromMsClb can be used to ping repeatedly inside the assertions "Eventually" and "Consistently" from Omega.

func (*TestCtx) PingFromVPP

func (ctx *TestCtx) PingFromVPP(destAddress string) error

PingFromVPP pings <dstAddress> from inside the VPP.

func (*TestCtx) PingFromVPPClb

func (ctx *TestCtx) PingFromVPPClb(destAddress string) func() error

PingFromVPPClb can be used to ping repeatedly inside the assertions "Eventually" and "Consistently" from Omega.

func (*TestCtx) StartEtcd

func (ctx *TestCtx) StartEtcd() string

func (*TestCtx) StartMicroservice

func (ctx *TestCtx) StartMicroservice(msName string) (ms *microservice)

func (*TestCtx) StopEtcd

func (ctx *TestCtx) StopEtcd(id string)

func (*TestCtx) StopMicroservice

func (ctx *TestCtx) StopMicroservice(msName string)

func (*TestCtx) Teardown

func (ctx *TestCtx) Teardown()

func (*TestCtx) TestConnection

func (ctx *TestCtx) TestConnection(fromMs, toMs, toAddr, listenAddr string,
	toPort, listenPort uint16, udp bool, traceVPPNodes ...string) error

func (*TestCtx) VppRelease

func (ctx *TestCtx) VppRelease() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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