Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reimplement TFConstants to interface instead of class #75

Merged
merged 1 commit into from
May 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,54 +9,51 @@
/**
* Constants used in the test framework.
*/
public final class TestFrameConstants {
private TestFrameConstants() {
// Private constructor to prevent instantiation
}
public interface TestFrameConstants {

/**
* Global poll interval in milliseconds (long).
*/
public static final long GLOBAL_POLL_INTERVAL_LONG = Duration.ofSeconds(15).toMillis();
long GLOBAL_POLL_INTERVAL_LONG = Duration.ofSeconds(15).toMillis();

/**
* Global poll interval in milliseconds (medium).
*/
public static final long GLOBAL_POLL_INTERVAL_MEDIUM = Duration.ofSeconds(10).toMillis();
long GLOBAL_POLL_INTERVAL_MEDIUM = Duration.ofSeconds(10).toMillis();

/**
* Global poll interval in milliseconds (short).
*/
public static final long GLOBAL_POLL_INTERVAL_SHORT = Duration.ofSeconds(5).toMillis();
long GLOBAL_POLL_INTERVAL_SHORT = Duration.ofSeconds(5).toMillis();

/**
* Global poll interval in milliseconds (1 second).
*/
public static final long GLOBAL_POLL_INTERVAL_1_SEC = Duration.ofSeconds(1).toMillis();
long GLOBAL_POLL_INTERVAL_1_SEC = Duration.ofSeconds(1).toMillis();

/**
* Global timeout in milliseconds (medium).
*/
public static final long GLOBAL_TIMEOUT_MEDIUM = Duration.ofMinutes(5).toMillis();
long GLOBAL_TIMEOUT_MEDIUM = Duration.ofMinutes(5).toMillis();


/**
* Global timeout in milliseconds.
*/
public static final long GLOBAL_TIMEOUT = Duration.ofMinutes(10).toMillis();
long GLOBAL_TIMEOUT = Duration.ofMinutes(10).toMillis();

/**
* Stability timeout in milliseconds
*/
public static final long GLOBAL_STABILITY_TIME = Duration.ofMinutes(1).toMillis();
long GLOBAL_STABILITY_TIME = Duration.ofMinutes(1).toMillis();

/**
* OpenShift client type.
*/
public static final String OPENSHIFT_CLIENT = "oc";
String OPENSHIFT_CLIENT = "oc";

/**
* Kubernetes client type.
*/
public static final String KUBERNETES_CLIENT = "kubectl";
String KUBERNETES_CLIENT = "kubectl";
}
Loading