Documentation ¶
Index ¶
- Constants
- func DebugFormat(obj client.Object) string
- func MustFindPackageRevision(t *testing.T, packages *porchapi.PackageRevisionList, ...) *porchapi.PackageRevision
- type ErrorHandler
- type GitConfig
- type Initializer
- type OciConfig
- type Password
- type TestSuite
- func (t *TestSuite) CompareGoldenFileYAML(goldenPath string, gotContents string) string
- func (t *TestSuite) CreateE(ctx context.Context, obj client.Object, opts ...client.CreateOption)
- func (t *TestSuite) CreateF(ctx context.Context, obj client.Object, opts ...client.CreateOption)
- func (t *TestSuite) CreateGitRepo() GitConfig
- func (t *TestSuite) DeleteE(ctx context.Context, obj client.Object, opts ...client.DeleteOption)
- func (t *TestSuite) DeleteF(ctx context.Context, obj client.Object, opts ...client.DeleteOption)
- func (t *TestSuite) DeleteL(ctx context.Context, obj client.Object, opts ...client.DeleteOption)
- func (t *TestSuite) DumpLogsForDeployment(ctx context.Context, deploymentKey client.ObjectKey)
- func (t *TestSuite) FindAndDecodeF(resources *porchapi.PackageRevisionResources, name string, value interface{})
- func (t *TestSuite) GetE(ctx context.Context, key client.ObjectKey, obj client.Object)
- func (t *TestSuite) GetF(ctx context.Context, key client.ObjectKey, obj client.Object)
- func (t *TestSuite) Initialize(ctx context.Context)
- func (t *TestSuite) IsUsingDevPorch() bool
- func (t *TestSuite) ListE(ctx context.Context, list client.ObjectList, opts ...client.ListOption)
- func (t *TestSuite) ListF(ctx context.Context, list client.ObjectList, opts ...client.ListOption)
- func (t *TestSuite) ParseKptfileF(resources *porchapi.PackageRevisionResources) *kptfilev1.KptFile
- func (t *TestSuite) PatchE(ctx context.Context, obj client.Object, patch client.Patch, ...)
- func (t *TestSuite) PatchF(ctx context.Context, obj client.Object, patch client.Patch, ...)
- func (t *TestSuite) SaveKptfileF(resources *porchapi.PackageRevisionResources, kptfile *kptfilev1.KptFile)
- func (t *TestSuite) UpdateApprovalF(ctx context.Context, pr *porchapi.PackageRevision, opts metav1.UpdateOptions) *porchapi.PackageRevision
- func (t *TestSuite) UpdateE(ctx context.Context, obj client.Object, opts ...client.UpdateOption)
- func (t *TestSuite) UpdateF(ctx context.Context, obj client.Object, opts ...client.UpdateOption)
Constants ¶
View Source
const (
// TODO: accept a flag?
PorchTestConfigFile = "porch-test-config.yaml"
)
Variables ¶
This section is empty.
Functions ¶
func DebugFormat ¶
func MustFindPackageRevision ¶
func MustFindPackageRevision(t *testing.T, packages *porchapi.PackageRevisionList, name repository.PackageRevisionKey) *porchapi.PackageRevision
Types ¶
type ErrorHandler ¶
type ErrorHandler func(format string, args ...interface{})
type Initializer ¶
type TestSuite ¶
func (*TestSuite) CompareGoldenFileYAML ¶
func (*TestSuite) CreateGitRepo ¶
func (*TestSuite) DumpLogsForDeployment ¶
func (*TestSuite) FindAndDecodeF ¶
func (t *TestSuite) FindAndDecodeF(resources *porchapi.PackageRevisionResources, name string, value interface{})
func (*TestSuite) Initialize ¶
func (*TestSuite) IsUsingDevPorch ¶
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) SaveKptfileF ¶
func (t *TestSuite) SaveKptfileF(resources *porchapi.PackageRevisionResources, kptfile *kptfilev1.KptFile)
func (*TestSuite) UpdateApprovalF ¶
func (t *TestSuite) UpdateApprovalF(ctx context.Context, pr *porchapi.PackageRevision, opts metav1.UpdateOptions) *porchapi.PackageRevision
Click to show internal directories.
Click to hide internal directories.