public interface InfrastructureProvider
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(InfrastructureConfig infrastructureConfig)
This method returns whether the provider can handle the requested infrastructure.
|
String |
getProviderName()
This method returns the provider name (AWS/GCP/Open Stack etc).
|
void |
init()
This method can be used to initialize the infrastructure provider.
|
InfrastructureProvisionResult |
provision(TestPlan testPlan)
This method creates the necessary infrastructureConfig using the provided configuration.
|
boolean |
release(InfrastructureConfig infrastructureConfig,
String infraRepoDir)
This method executes commands needed to remove the infrastructure.
|
String getProviderName()
boolean canHandle(InfrastructureConfig infrastructureConfig)
void init() throws TestGridInfrastructureException
TestGridInfrastructureExceptionInfrastructureProvisionResult provision(TestPlan testPlan) throws TestGridInfrastructureException
testPlan - TestPlan with current test run specificationsTestGridInfrastructureException - thrown when error occurs in the infrastructure creation process.boolean release(InfrastructureConfig infrastructureConfig, String infraRepoDir) throws TestGridInfrastructureException
infrastructureConfig - an instance of a InfrastructureConfig in which Infrastructure should be removed.infraRepoDir - location of the cloned repository related to infrastructure.TestGridInfrastructureException - thrown when error occurs in the infrastructure destroy process.Copyright © 2018 WSO2. All rights reserved.