app

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

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

this implements the "when" part of given/when/then

none of the func implement error checks, and that is complete intended, you should check for errors using the Then()

func (*Actions) AddFile added in v1.2.0

func (a *Actions) AddFile(fileName, fileContents string) *Actions

func (*Actions) And

func (a *Actions) And(block func()) *Actions

func (*Actions) AppSet added in v1.2.0

func (a *Actions) AppSet(flags ...string) *Actions

func (*Actions) Create

func (a *Actions) Create() *Actions

func (*Actions) CreateFromFile added in v1.2.0

func (a *Actions) CreateFromFile(handler func(app *Application)) *Actions

func (*Actions) Declarative

func (a *Actions) Declarative(filename string) *Actions

func (*Actions) DeclarativeWithCustomRepo added in v1.2.0

func (a *Actions) DeclarativeWithCustomRepo(filename string, repoURL string) *Actions

func (*Actions) Delete

func (a *Actions) Delete(cascade bool) *Actions

func (*Actions) DeleteFile

func (a *Actions) DeleteFile(file string) *Actions

func (*Actions) IgnoreErrors added in v1.2.0

func (a *Actions) IgnoreErrors() *Actions

func (*Actions) PatchApp

func (a *Actions) PatchApp(patch string) *Actions

func (*Actions) PatchFile

func (a *Actions) PatchFile(file string, jsonPath string) *Actions

func (*Actions) Refresh

func (a *Actions) Refresh(refreshType RefreshType) *Actions

func (*Actions) Sync

func (a *Actions) Sync() *Actions

func (*Actions) TerminateOp

func (a *Actions) TerminateOp() *Actions

func (*Actions) Then

func (a *Actions) Then() *Consequences

type Consequences

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

this implements the "then" part of given/when/then

func (*Consequences) And

func (c *Consequences) And(block func(app *Application)) *Consequences

func (*Consequences) Expect

func (c *Consequences) Expect(e Expectation) *Consequences

func (*Consequences) Given

func (c *Consequences) Given() *Context

func (*Consequences) When

func (c *Consequences) When() *Actions

type Context

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

this implements the "given" part of given/when/then

func Given

func Given(t *testing.T) *Context

func (*Context) And

func (c *Context) And(block func()) *Context

func (*Context) Async

func (c *Context) Async(async bool) *Context

func (*Context) ConfigManagementPlugin

func (c *Context) ConfigManagementPlugin(plugin v1alpha1.ConfigManagementPlugin) *Context

this both configures the plugin, but forces use of it

func (*Context) CustomCACertAdded added in v1.2.0

func (c *Context) CustomCACertAdded() *Context

func (*Context) CustomSSHKnownHostsAdded added in v1.2.0

func (c *Context) CustomSSHKnownHostsAdded() *Context

func (*Context) DestServer

func (c *Context) DestServer(destServer string) *Context

func (*Context) Env

func (c *Context) Env(env string) *Context

func (*Context) HTTPSInsecureRepoURLAdded added in v1.2.0

func (c *Context) HTTPSInsecureRepoURLAdded() *Context

func (*Context) HTTPSInsecureRepoURLWithClientCertAdded added in v1.2.0

func (c *Context) HTTPSInsecureRepoURLWithClientCertAdded() *Context

func (*Context) HTTPSRepoURLAdded added in v1.2.0

func (c *Context) HTTPSRepoURLAdded() *Context

func (*Context) HTTPSRepoURLWithClientCertAdded added in v1.2.0

func (c *Context) HTTPSRepoURLWithClientCertAdded() *Context

func (*Context) HelmRepoCredential added in v1.2.0

func (c *Context) HelmRepoCredential(name, url string) *Context

func (*Context) JsonnetTLACodeParameter added in v1.2.0

func (c *Context) JsonnetTLACodeParameter(parameter string) *Context

func (*Context) JsonnetTLAStrParameter added in v1.2.0

func (c *Context) JsonnetTLAStrParameter(parameter string) *Context

func (*Context) LocalPath

func (c *Context) LocalPath(localPath string) *Context

func (*Context) NamePrefix

func (c *Context) NamePrefix(namePrefix string) *Context

func (*Context) Parameter

func (c *Context) Parameter(parameter string) *Context

func (*Context) Path

func (c *Context) Path(path string) *Context

func (*Context) Project

func (c *Context) Project(project string) *Context

func (*Context) Prune

func (c *Context) Prune(prune bool) *Context

func (*Context) RepoURLType added in v1.2.0

func (c *Context) RepoURLType(urlType fixture.RepoURLType) *Context

func (*Context) ResourceFilter added in v1.2.0

func (c *Context) ResourceFilter(filter settings.ResourcesFilter) *Context

func (*Context) ResourceOverrides

func (c *Context) ResourceOverrides(overrides map[string]v1alpha1.ResourceOverride) *Context

func (*Context) SSHInsecureRepoURLAdded added in v1.2.0

func (c *Context) SSHInsecureRepoURLAdded() *Context

func (*Context) SSHRepoURLAdded added in v1.2.0

func (c *Context) SSHRepoURLAdded() *Context

func (*Context) SelectedResource

func (c *Context) SelectedResource(resource string) *Context

group:kind:name

func (*Context) Timeout added in v1.2.0

func (c *Context) Timeout(timeout int) *Context

func (*Context) When

func (c *Context) When() *Actions

type Expectation

type Expectation func(c *Consequences) (state state, message string)

func Condition

func Condition(conditionType ApplicationConditionType, conditionMessage string) Expectation

func DoesNotExist

func DoesNotExist() Expectation

func Error

func Error(message, err string) Expectation

asserts that the last command was an error with substring match

func Event

func Event(reason string, message string) Expectation

func HealthIs

func HealthIs(expected HealthStatusCode) Expectation

func NotPod

func NotPod(predicate func(p v1.Pod) bool) Expectation

func OperationPhaseIs

func OperationPhaseIs(expected OperationPhase) Expectation

func Pod

func Pod(predicate func(p v1.Pod) bool) Expectation

func ResourceHealthIs

func ResourceHealthIs(kind, resource string, expected HealthStatusCode) Expectation

func ResourceResultIs

func ResourceResultIs(result ResourceResult) Expectation

func ResourceResultNumbering

func ResourceResultNumbering(num int) Expectation

func ResourceSyncStatusIs

func ResourceSyncStatusIs(kind, resource string, expected SyncStatusCode) Expectation

func Success

func Success(message string) Expectation

asserts that the last command was successful

func SyncStatusIs

func SyncStatusIs(expected SyncStatusCode) Expectation

Jump to

Keyboard shortcuts

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