public interface InfrastructureProvider
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(Script.ScriptType scriptType)
This method returns whether the provider can handle the requested infrastructure.
|
void |
cleanup(TestPlan testPlan)
This method can be used to cleanup any additional infrastructure provided.
|
String |
getProviderName()
This method returns the provider name (AWS/GCP/Open Stack etc).
|
void |
init(TestPlan testPlan)
This method can be used to initialize the infrastructure provider.
|
InfrastructureProvisionResult |
provision(TestPlan testPlan,
Script script)
This method creates the necessary infrastructureConfig using the provided configuration.
|
boolean |
release(InfrastructureConfig infrastructureConfig,
String infraRepoDir,
TestPlan testPlan,
Script script)
This method executes commands needed to remove the infrastructure.
|
String getProviderName()
boolean canHandle(Script.ScriptType scriptType)
void init(TestPlan testPlan) throws TestGridInfrastructureException
TestGridInfrastructureExceptionvoid cleanup(TestPlan testPlan) throws TestGridInfrastructureException
TestGridInfrastructureExceptionInfrastructureProvisionResult provision(TestPlan testPlan, Script script) throws TestGridInfrastructureException
testPlan - TestPlan with current test run specificationsTestGridInfrastructureException - thrown when error occurs in the infrastructure creation process.boolean release(InfrastructureConfig infrastructureConfig, String infraRepoDir, TestPlan testPlan, Script script) 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 © 2019 WSO2. All rights reserved.