e2e

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2018 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

End-to-end test

To run

# All tests
$ GOCACHE=off go test ./test/e2e/ -test.v

# Single file
$ GOCACHE=off go test ./test/e2e/e2e.go ./test/e2e/revisions_test.go -test.v

# Single test
$ GOCACHE=off go test ./test/e2e/ -test.v -run TestBuildFailed

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 Curl

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

func (Curl) WaitForContent

func (c Curl) WaitForContent(serviceName, expectedContent string)

type Env

type Env struct {
	Namespace string

	BuildGitURL         string
	BuildGitRevision    string
	BuildImage          string
	BuildServiceAccount string

	BuildGitRevisionV1 string
	BuildGitRevisionV2 string
}

func BuildEnv

func BuildEnv(t *testing.T) Env

func (Env) Validate

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

type Knctl

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

func (Knctl) Run

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

func (Knctl) RunWithOpts

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

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 RunOpts

type RunOpts struct {
	NoNamespace  bool
	AllowError   bool
	StdoutWriter io.Writer
	CancelCh     chan struct{}
}

Jump to

Keyboard shortcuts

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