e2e

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 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
	BuildGitRevisionV1 string
	BuildGitRevisionV2 string

	BuildPrivateGit EnvBuildPrivateGit

	BuildPublicImage    string // push with auth, pull w/o auth
	BuildPrivateImage   string // push and pull requires auth
	BuildDockerUsername string
	BuildDockerPassword string
}

func BuildEnv

func BuildEnv(t *testing.T) Env

func (Env) Validate

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

type EnvBuildPrivateGit added in v0.0.4

type EnvBuildPrivateGit struct {
	URL        string // push and pull requires auth
	SSHPullKey string // key for pulling
	Revision   string
	RevisionV1 string
	RevisionV2 string
}

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 Kubectl added in v0.0.2

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

func (Kubectl) Run added in v0.0.2

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

func (Kubectl) RunWithOpts added in v0.0.2

func (k Kubectl) 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
	StderrWriter io.Writer
	StdoutWriter io.Writer
	StdinReader  io.Reader
	CancelCh     chan struct{}
	Redact       bool
}

Directories

Path Synopsis
assets
simple-app command

Jump to

Keyboard shortcuts

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