disruption

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultAllowedDisruption is a constant used when we cannot calculate an allowed disruption value from historical data.
	// It is used to search for our inability to do so across CI broadly.
	DefaultAllowedDisruption = 2718
)

Variables

This section is empty.

Functions

func FrameworkFlakef

func FrameworkFlakef(f *framework.Framework, format string, options ...interface{})

FrameworkFlakef records a flake on the current framework.

func RecordJUnit

func RecordJUnit(f *framework.Framework, name string, fn func() (err error, flake bool)) error

RecordJUnit will capture the result of invoking fn as either a passing or failing JUnit test that will be recorded alongside the current test with name. These methods only work in the context of a disruption test suite today and will not be reported as JUnit failures when used within normal ginkgo suites.

func RecordJUnitResult

func RecordJUnitResult(f *framework.Framework, name string, duration time.Duration, failure string)

RecordJUnitResult will output a junit result within a disruption test with the given name, duration, and failure string. If the failure string is set, the test is considered to have failed, otherwise the test is considered to have passed. These methods only work in the context of a disruption test suite today and will not be reported as JUnit failures when used within normal ginkgo suties.

func Run

func Run(f *framework.Framework, description, testname string, adapter TestData, invariants []upgrades.Test, fn func())

Run executes the provided fn in a test context, ensuring that invariants are preserved while the test is being executed. Description is used to populate the JUnit suite name, and testname is used to define the overall test that will be run.

Types

type TestData

type TestData struct {
	UpgradeType    upgrades.UpgradeType
	UpgradeContext upgrades.UpgradeContext
}

TestData is passed to the invariant tests executed during the upgrade. The default UpgradeType is MasterUpgrade.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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