Documentation
¶
Index ¶
Constants ¶
const ( // PriorityLonger is used for the longest-running tests (typically > 30 minutes). PriorityLonger = SpecPriority(10) // PriorityLong is used for long-running tests (typically > 15 minutes). PriorityLong = SpecPriority(5) // PriorityFast is used for fast tests (typically < 3 minutes). PriorityFast = SpecPriority(-1) )
These decorators are used to prioritize long-running tests cases ("boulders first, then sand"), see https://onsi.github.io/ginkgo/#prioritizing-specs.
Variables ¶
This section is empty.
Functions ¶
func CustomJUnitReport ¶
func CustomJUnitReport() bool
CustomJUnitReport registers a ReportAfterSuite node that writes a JUnit XML report to $ARTIFACTS/junit.xml. If $E2E_JUNIT_REPORT_NAME is set, it is used as the file name instead of junit.xml, so that CI jobs running multiple test suites don't overwrite the report of the previous suite. Specs that were interrupted by another parallel Ginkgo process due to --fail-fast are reported as skipped instead of errored, so that only the actual failure (in the other process) is visible in the report. Call this function via a top-level var in your suite file:
var _ = e2e.CustomJUnitReport()
func EventuallyNotHaveOperationAnnotation ¶
func EventuallyNotHaveOperationAnnotation(ctx context.Context, komega komega.Komega, obj client.Object)
EventuallyNotHaveOperationAnnotation waits for the gardener operation annotation to be removed from the given object. It must only be called inside a running Ginkgo node (e.g., an It node), never during tree construction: the komega instance and object are typically fields of a test context that is only initialized in a BeforeAll node. Passing them to a helper during tree construction would capture their zero values instead.
Types ¶
This section is empty.