public class FailFastBuilder extends Object
FailFastCheck MultipleFailFastChecksHandler that checks if a waiter
should fail due to an error state of cluster. The function is supposed to be called by a Waiter.
If it returns true, the waiter should throw an exception.
Example of use:
FailFastBuilder
.ofTestAndBuildNamespace()
.events()
.after(EventHelper.timeOfLastEventBMOrTestNamespaceOrEpoch())
.ofNames("my-app.*")
.ofMessages("Failed.*")
.atLeasOneExists()
.build()
You can create more checks for events and every one of them will be checked. If one of them returns true, the whole fail fast function returns true.
| Modifier and Type | Method and Description |
|---|---|
FailFastCheck |
build() |
EventFailFastCheckBuilder |
events() |
static FailFastBuilder |
ofOpenShifts(OpenShift... openShifts) |
static FailFastBuilder |
ofTestAndBuildNamespace() |
public static FailFastBuilder ofTestAndBuildNamespace()
public static FailFastBuilder ofOpenShifts(OpenShift... openShifts)
public EventFailFastCheckBuilder events()
public FailFastCheck build()
Copyright © 2025. All rights reserved.