e2e

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

README

End-to-end test

To run

$ ./hack/test-e2e.sh
$ ./hack/test-e2e.sh -run TestVersion

See ./test/e2e/env.go for required environment variables for some tests.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	Namespace string
}

func BuildEnv

func BuildEnv(t *testing.T) Env

func (Env) Validate

func (e Env) Validate(t *testing.T)

type Guestbook

type Guestbook struct {
	// contains filtered or unexported fields
}

func (Guestbook) Install

func (g Guestbook) Install() GuestbookAddrs

type GuestbookAddrs

type GuestbookAddrs struct {
	FrontendSvcIP, FrontendSvcDomain string
	RedisSvcIP, RedisSvcDomain       string
}

func (GuestbookAddrs) Complete

func (a GuestbookAddrs) Complete() bool

type Kubectl

type Kubectl struct {
	// contains filtered or unexported fields
}

func (Kubectl) Run

func (k Kubectl) Run(args []string) string

func (Kubectl) RunWithOpts

func (k Kubectl) RunWithOpts(args []string, opts RunOpts) (string, error)

type Kwt

type Kwt struct {
	// contains filtered or unexported fields
}

func (Kwt) Run

func (k Kwt) Run(args []string) string

func (Kwt) RunWithOpts

func (k Kwt) RunWithOpts(args []string, opts RunOpts) (string, error)

type KwtNet

type KwtNet struct {
	// contains filtered or unexported fields
}

func NewKwtNet

func NewKwtNet(kwt Kwt, t *testing.T, logger Logger) *KwtNet

func (*KwtNet) CollectedOutput

func (k *KwtNet) CollectedOutput() string

func (*KwtNet) End

func (k *KwtNet) End()

func (*KwtNet) EndWithoutCleanup

func (k *KwtNet) EndWithoutCleanup()

func (*KwtNet) Listen added in v0.0.4

func (k *KwtNet) Listen(args []string)

func (*KwtNet) Start

func (k *KwtNet) Start(args []string)

func (*KwtNet) StartWithoutCleanup

func (k *KwtNet) StartWithoutCleanup(args []string)

type Logger

type Logger struct{}

func (Logger) Debugf

func (l Logger) Debugf(msg string, args ...interface{})

func (Logger) Section

func (l Logger) Section(msg string, f func())

type LogsWriter

type LogsWriter struct {
	// contains filtered or unexported fields
}

func (*LogsWriter) Current

func (w *LogsWriter) Current() string

func (*LogsWriter) Write

func (w *LogsWriter) Write(p []byte) (n int, err error)

type NetworkProbe

type NetworkProbe struct {
	// contains filtered or unexported fields
}

func (NetworkProbe) HTTPGet

func (a NetworkProbe) HTTPGet(url, expectedOutput, description string)

func (NetworkProbe) RedisWriteRead

func (a NetworkProbe) RedisWriteRead(addr, storedValue string)

type RunOpts

type RunOpts struct {
	NoNamespace  bool
	AllowError   bool
	StderrWriter io.Writer
	StdoutWriter io.Writer
	StdinReader  io.Reader
	CancelCh     chan struct{}
	Redact       bool
}

Jump to

Keyboard shortcuts

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