timeout

package
v1.79.0 Latest Latest
Warning

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

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

Documentation

Overview

package timeout contains types and constants to be used when overriding default test timeouts

Each test case that supports overriding the timeout it uses by default will need its own `TestKey` defining in the constants. Once this is available it can be used within the test case like the following:

timeout := state.GetTestTimeout(timeout.DeployApps, 15*time.Minute)

To then override the timeout in a specific test sutie you can do so like this following:

state.SetTestTimeout(timeout.DeployApps, time.Minute*25)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestKey

type TestKey string

TestKey is a unique name used to identify the timeout to use with a specific test

const (
	// DeployApps is used by "all default apps are deployed without issues"
	DeployApps TestKey = "deployAppsTimeout"
	// ClusterReadyTimeout is used by "has Cluster Ready condition with Status='True'"
	ClusterReadyTimeout TestKey = "clusterReadyTimeout"
)

Jump to

Keyboard shortcuts

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