e2e

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 38 Imported by: ? 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.

Documentation

Index

Constants

View Source
const (
	// TODO: accept a flag?
	PorchTestConfigFile = "porch-test-config.yaml"
)

Variables

This section is empty.

Functions

func DebugFormat added in v0.0.14

func DebugFormat(obj client.Object) string

Types

type ErrorHandler

type ErrorHandler func(format string, args ...interface{})

type GitConfig

type GitConfig struct {
	Repo      string   `json:"repo"`
	Branch    string   `json:"branch"`
	Directory string   `json:"directory"`
	Username  string   `json:"username"`
	Password  Password `json:"password"`
}

type Initializer

type Initializer interface {
	Initialize(ctx context.Context)
}

type OciConfig

type OciConfig struct {
	Registry string `json:"registry"`
}

type Password

type Password string

func (Password) String

func (p Password) String() string

type TestSuite

type TestSuite struct {
	*testing.T
	// contains filtered or unexported fields
}

func (*TestSuite) CompareGoldenFileYAML

func (t *TestSuite) CompareGoldenFileYAML(goldenPath string, gotContents string) string

func (*TestSuite) CreateE

func (t *TestSuite) CreateE(ctx context.Context, obj client.Object, opts ...client.CreateOption)

func (*TestSuite) CreateF

func (t *TestSuite) CreateF(ctx context.Context, obj client.Object, opts ...client.CreateOption)

func (*TestSuite) CreateGitRepo

func (t *TestSuite) CreateGitRepo() GitConfig

func (*TestSuite) DeleteE

func (t *TestSuite) DeleteE(ctx context.Context, obj client.Object, opts ...client.DeleteOption)

func (*TestSuite) DeleteF

func (t *TestSuite) DeleteF(ctx context.Context, obj client.Object, opts ...client.DeleteOption)

func (*TestSuite) DeleteL

func (t *TestSuite) DeleteL(ctx context.Context, obj client.Object, opts ...client.DeleteOption)

func (*TestSuite) DumpLogsForDeployment added in v0.0.7

func (t *TestSuite) DumpLogsForDeployment(ctx context.Context, deploymentKey client.ObjectKey)

func (*TestSuite) FindAndDecodeF

func (t *TestSuite) FindAndDecodeF(resources *porchapi.PackageRevisionResources, name string, value interface{})

func (*TestSuite) GetE

func (t *TestSuite) GetE(ctx context.Context, key client.ObjectKey, obj client.Object)

func (*TestSuite) GetF

func (t *TestSuite) GetF(ctx context.Context, key client.ObjectKey, obj client.Object)

func (*TestSuite) Initialize

func (t *TestSuite) Initialize(ctx context.Context)

func (*TestSuite) IsUsingDevPorch

func (t *TestSuite) IsUsingDevPorch() bool

func (*TestSuite) ListE

func (t *TestSuite) ListE(ctx context.Context, list client.ObjectList, opts ...client.ListOption)

func (*TestSuite) ListF

func (t *TestSuite) ListF(ctx context.Context, list client.ObjectList, opts ...client.ListOption)

func (*TestSuite) ParseKptfileF

func (t *TestSuite) ParseKptfileF(resources *porchapi.PackageRevisionResources) *kptfilev1.KptFile

func (*TestSuite) PatchE

func (t *TestSuite) PatchE(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption)

func (*TestSuite) PatchF

func (t *TestSuite) PatchF(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption)

func (*TestSuite) SaveKptfileF

func (t *TestSuite) SaveKptfileF(resources *porchapi.PackageRevisionResources, kptfile *kptfilev1.KptFile)

func (*TestSuite) UpdateApprovalF

func (*TestSuite) UpdateE

func (t *TestSuite) UpdateE(ctx context.Context, obj client.Object, opts ...client.UpdateOption)

func (*TestSuite) UpdateF

func (t *TestSuite) UpdateF(ctx context.Context, obj client.Object, opts ...client.UpdateOption)

Jump to

Keyboard shortcuts

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