runtime

package
v1.17.0-beta25 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// ClusterName is the name of the cluster that will be used to execute the tests in
	ClusterName string

	// RunSource identifies who/what triggered the test
	RunSource RunSource
}

Context contains the set of properties that are defined at runtime by whoever is invoking tests. The intention of this is two-fold:

  1. To provide a transparent definition for the set of runtime inputs that are accepted.
  2. To ensure that tests are not aware of _how_ inputs are provided (command line, env variable), but just are aware _that_ they exist

func NewContext

func NewContext() Context

type RunSource

type RunSource int

RunSource identifies who/what triggered the test

const (
	// LocalDevelopment signifies that the test is invoked locally
	LocalDevelopment RunSource = iota

	// PullRequest means that the test was invoked while running CI against a Pull Request
	PullRequest

	// NightlyTest means that the test was invoked while running CI as part of a Nightly operation
	NightlyTest
)

Jump to

Keyboard shortcuts

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