e2e

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestTimeout = time.Minute * 3
)

Variables

This section is empty.

Functions

func WaitUntil

func WaitUntil(t *testing.T, condition wait.ConditionFunc)

WaitUntil periodically executes specified condition until it returns true.

Types

type Fixture

type Fixture struct {
	KubeClientset       kubernetes.Interface
	AppClientset        appclientset.Interface
	ArgoCDNamespace     string
	DeploymentNamespace string
	ArgoCDClientset     argocdclient.Client
	SettingsManager     *settings.SettingsManager
	// contains filtered or unexported fields
}

Fixture represents e2e tests fixture.

func NewFixture

func NewFixture() (*Fixture, error)

NewFixture creates e2e tests fixture: ensures that Application CRD is installed, creates temporal namespace, starts repo and api server, configure currently available cluster.

func (*Fixture) EnsureCleanState

func (f *Fixture) EnsureCleanState()

func (*Fixture) RepoURL

func (f *Fixture) RepoURL() string

func (*Fixture) RunCli

func (f *Fixture) RunCli(args ...string) (string, error)

Jump to

Keyboard shortcuts

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