e2e

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 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

$ ./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

func NewMissingClusterResource

func NewMissingClusterResource(t *testing.T, kind, name, ns string, kubectl Kubectl)

Types

type ClusterResource

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

func NewPresentClusterResource

func NewPresentClusterResource(kind, name, ns string, kubectl Kubectl) ClusterResource

func (ClusterResource) Raw

func (r ClusterResource) Raw() map[string]interface{}

func (ClusterResource) RawPath

func (r ClusterResource) RawPath(path ctlres.Path) interface{}

func (ClusterResource) UID

func (r ClusterResource) UID() string

type Env

type Env struct {
	Namespace      string
	KappBinaryPath string
}

func BuildEnv

func BuildEnv(t *testing.T) Env

func (Env) Validate

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

type Kapp

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

func (Kapp) Run

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

func (Kapp) RunWithOpts

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

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 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
	IntoNs       bool
	AllowError   bool
	StderrWriter io.Writer
	StdoutWriter io.Writer
	StdinReader  io.Reader
	CancelCh     chan struct{}
	Redact       bool
	Interactive  bool
}

Jump to

Keyboard shortcuts

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