e2e

package
v0.0.0-...-c7d747a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func DebugFormat

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

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