wait

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTimeout = 10 * time.Minute

Functions

func GoldenPodLog added in v0.24.0

func GoldenPodLog(ctx context.Context, t *testing.T, clients *params.Run, ns, labelselector, containerName, goldenFile string, maxNumberOfLoop int)

GoldenPodLog is a helper function to get the logs of a pod and compare it to a golden file.

func RegexpMatchingInControllerLog added in v0.18.0

func RegexpMatchingInControllerLog(ctx context.Context, clients *params.Run, reg regexp.Regexp, maxNumberOfLoop int, controllerName string, lines *int64) error

func RegexpMatchingInPodLog added in v0.13.0

func RegexpMatchingInPodLog(ctx context.Context, clients *params.Run, ns, labelselector, containerName string, reg regexp.Regexp, goldenFile string, maxNumberOfLoop int) error

func Succeeded

func Succeeded(ctx context.Context, t *testing.T, runcnx *params.Run, opts options.E2E, sopt SuccessOpt)

func UntilMinPRAppeared added in v0.13.0

func UntilMinPRAppeared(ctx context.Context, clients clients.Clients, opts Opts, minNumber int) error

func UntilPipelineRunCreated added in v0.22.5

func UntilPipelineRunCreated(ctx context.Context, clients clients.Clients, opts Opts) error

func UntilPipelineRunHasReason added in v0.34.0

func UntilPipelineRunHasReason(ctx context.Context, clients clients.Clients, desiredReason v1.PipelineRunReason, opts Opts) error

UntilPipelineRunHasReason Checks for certain reason of PipelineRuns.

func UntilRepositoryUpdated

func UntilRepositoryUpdated(ctx context.Context, clients clients.Clients, opts Opts) (*pacv1alpha1.Repository, error)

Types

type Opts

type Opts struct {
	RepoName            string
	Namespace           string
	MinNumberStatus     int
	PollTimeout         time.Duration
	AdminNS             string
	TargetSHA           string
	FailOnRepoCondition corev1.ConditionStatus
}

type SuccessOpt added in v0.21.1

type SuccessOpt struct {
	TargetNS        string
	OnEvent         string
	SHA             string
	Title           string
	MinNumberStatus int

	NumberofPRMatch int
}

Jump to

Keyboard shortcuts

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