This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add galasaecosystem.runs.timeout CPS prop to configure the timeout of…
… nested ecosystem manager test runs (#973) Signed-off-by: Eamonn Mansour <[email protected]>
- Loading branch information
Showing
4 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...tem.manager/src/main/java/dev/galasa/galasaecosystem/internal/properties/RunsTimeout.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright contributors to the Galasa project | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package dev.galasa.galasaecosystem.internal.properties; | ||
|
||
import dev.galasa.framework.spi.cps.CpsProperties; | ||
import dev.galasa.galasaecosystem.GalasaEcosystemManagerException; | ||
|
||
/** | ||
* Timeout for Galasa Ecosystem manager nested test runs | ||
* | ||
* In minutes, how long the Galasa Ecosystem manager should wait for nested runs to complete before | ||
* timing out. The default timeout value is 3 minutes. | ||
* | ||
* The property is:- | ||
* <code>galasaecosystem.runs.timeout</code> | ||
* | ||
*/ | ||
public class RunsTimeout extends CpsProperties { | ||
|
||
private static final int DEFAULT_TIMEOUT_MINUTES = 3; | ||
|
||
public static int get() throws GalasaEcosystemManagerException { | ||
return getIntWithDefault(GalasaEcosystemPropertiesSingleton.cps(), DEFAULT_TIMEOUT_MINUTES, "runs", "timeout"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters