Package dev.galasa.galasaecosystem
Interface IGenericEcosystem
- All Known Subinterfaces:
IKubernetesEcosystem,ILocalEcosystem
public interface IGenericEcosystem
Generic Ecosystem TPI
Provides a means to manipulate the ecosystem
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddZosImageToCps(@NotNull IZosImage image) voidaddZosImageToCpsAsDefault(@NotNull IZosImage image) getCpsProperty(@NotNull String property) Retrieve a CPS propertygetCredsProperty(@NotNull String property) Retrieve a CREDS propertygetDssProperty(@NotNull String property) Retrieve a DSS property@NotNull ObjectgetEndpoint(@NotNull EcosystemEndpoint endpoint) getHostCpsProperty(@NotNull String namespace, @NotNull String prefix, @NotNull String suffix, String... infixes) Retrieve a CPS property from the host ecosystemvoidsetCpsProperty(@NotNull String property, String value) Set a CPS propertyvoidsetCredsProperty(@NotNull String property, String value) Set a CREDS propertyvoidsetDssProperty(@NotNull String property, String value) Set a DSS propertyvoidsetZosClusterImages(@NotNull String cluserId, @NotNull IZosImage... images) voidsetZosImageDseTag(@NotNull String tag, @NotNull IZosImage image) submitRun(String runType, String requestor, String groupName, @NotNull String bundleName, @NotNull String testName, String mavenRepository, String obr, String stream, Properties overrides) com.google.gson.JsonObjectwaitForRun(String run) com.google.gson.JsonObjectwaitForRun(String run, int minutes)
-
Method Details
-
getEndpoint
@NotNull @NotNull Object getEndpoint(@NotNull @NotNull EcosystemEndpoint endpoint) throws GalasaEcosystemManagerException - Parameters:
endpoint-EcosystemEndpointWhich endpoint is required- Returns:
- Object of the endpoint, never null, URL, URI or InetSocketAddress
- Throws:
GalasaEcosystemManagerException- If the endpoint is unsupported
-
getHostCpsProperty
String getHostCpsProperty(@NotNull @NotNull String namespace, @NotNull @NotNull String prefix, @NotNull @NotNull String suffix, String... infixes) throws GalasaEcosystemManagerException Retrieve a CPS property from the host ecosystem- Parameters:
namespace- The namespace of the CPS- Returns:
- the value of the property or null if not found
- Throws:
GalasaEcosystemManagerException- if there is a problem accessing the CPS
-
getCpsProperty
Retrieve a CPS property- Parameters:
property- The property to retrieve- Returns:
- the value of the property or null if not found
- Throws:
GalasaEcosystemManagerException- if there is a problem accessing the CPS
-
setCpsProperty
void setCpsProperty(@NotNull @NotNull String property, String value) throws GalasaEcosystemManagerException Set a CPS property- Parameters:
property- The property to setvalue- The value to set, null means delete- Throws:
GalasaEcosystemManagerException- if there is a problem accessing the CPS
-
getDssProperty
Retrieve a DSS property- Parameters:
property- The property to retrieve- Returns:
- the value of the property or null if not found
- Throws:
GalasaEcosystemManagerException- if there is a problem accessing the DSS
-
setDssProperty
void setDssProperty(@NotNull @NotNull String property, String value) throws GalasaEcosystemManagerException Set a DSS property- Parameters:
property- The property to setvalue- The value to set, null means delete- Throws:
GalasaEcosystemManagerException- if there is a problem accessing the DSS
-
getCredsProperty
Retrieve a CREDS property- Parameters:
property- The property to retrieve- Returns:
- the value of the property or null if not found
- Throws:
GalasaEcosystemManagerException- if there is a problem accessing the CREDS
-
setCredsProperty
void setCredsProperty(@NotNull @NotNull String property, String value) throws GalasaEcosystemManagerException Set a CREDS property- Parameters:
property- The property to setvalue- The value to set, null means delete- Throws:
GalasaEcosystemManagerException- if there is a problem accessing the CREDS
-
submitRun
String submitRun(String runType, String requestor, String groupName, @NotNull @NotNull String bundleName, @NotNull @NotNull String testName, String mavenRepository, String obr, String stream, Properties overrides) throws GalasaEcosystemManagerException - Throws:
GalasaEcosystemManagerException
-
waitForRun
- Throws:
GalasaEcosystemManagerException
-
waitForRun
com.google.gson.JsonObject waitForRun(String run, int minutes) throws GalasaEcosystemManagerException - Throws:
GalasaEcosystemManagerException
-
addZosImageToCpsAsDefault
void addZosImageToCpsAsDefault(@NotNull @NotNull IZosImage image) throws GalasaEcosystemManagerException - Throws:
GalasaEcosystemManagerException
-
addZosImageToCps
- Throws:
GalasaEcosystemManagerException
-
setZosImageDseTag
void setZosImageDseTag(@NotNull @NotNull String tag, @NotNull @NotNull IZosImage image) throws GalasaEcosystemManagerException - Throws:
GalasaEcosystemManagerException
-
setZosClusterImages
void setZosClusterImages(@NotNull @NotNull String cluserId, @NotNull @NotNull IZosImage... images) throws GalasaEcosystemManagerException - Throws:
GalasaEcosystemManagerException
-