resources

package
v0.0.0-...-a605f52 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBasicTestrun

func GetBasicTestrun(namespace, commitSha string) *tmv1beta1.Testrun

GetBasicTestrun returns a working testrun object with a specific namespace

func GetFailingTestrun

func GetFailingTestrun(namespace, commitSha string) *tmv1beta1.Testrun

GetFailingTestrun returns a testrun with a failing test.

func GetTestrunWithExitHandler

func GetTestrunWithExitHandler(tr *tmv1beta1.Testrun, condition tmv1beta1.ConditionType) *tmv1beta1.Testrun

GetTestrunWithExitHandler returns a working testrun object with an onExit handler with a specific condition.

Types

type MockReader

type MockReader struct {
	Error error
}

func (MockReader) Get

func (m MockReader) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error

func (MockReader) List

func (m MockReader) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

Jump to

Keyboard shortcuts

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