public final class S3StorageUtil extends Object
| Constructor and Description |
|---|
S3StorageUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
deleteTestPlan(TestPlan testPlan)
This method delete the log files for a given test plan in S3
|
static String |
deriveS3DeploymentOutputsDir(TestPlan testPlan,
ArtifactReadable awsArtifactReader)
Returns the path for deployment-outputs for a given test-plan
|
static String |
deriveS3ScenarioArchiveFileDir(TestPlan testPlan,
String scenarioDir,
ArtifactReadable awsArtifactReader)
Returns the scenario-archive file path in S3 for a scenario of a test-plan.
|
static String |
deriveS3ScenarioOutputsFilePath(TestPlan testPlan,
ArtifactReadable artifactReadable)
Returns the path to output.properties generated during scenario execution.
|
static String |
deriveS3TestPlanDirPath(TestPlan testPlan,
ArtifactReadable awsArtifactReader)
Returns the test-plan directory path in S3 for the test-plan.
|
static String |
deriveS3TestsResultsArchivePath(TestPlan testPlan,
ArtifactReadable awsArtifactReader)
Returns the test results archive file path in S3 of a test-plan.
|
static String |
getS3BucketURL()
Generate the S3 bucket URL for the current environment.
|
static String |
getS3LocationForTestRunLogFile(TestPlan testPlan,
Boolean truncated,
ArtifactReadable awsArtifactReader)
Returns the path of the test-run log file in S3 bucket.
|
public static String getS3LocationForTestRunLogFile(TestPlan testPlan, Boolean truncated, ArtifactReadable awsArtifactReader)
/builds/#depl_name#_#infra-uuid#_#test-run-num#/test-run.log
testPlan - test-plantruncated - whether the truncated log or the raw log filepublic static String getS3BucketURL()
public static boolean deleteTestPlan(TestPlan testPlan)
testPlan - Test plan which the data need to be deletedpublic static String deriveS3TestPlanDirPath(TestPlan testPlan, ArtifactReadable awsArtifactReader)
testPlan - test-planpublic static String deriveS3ScenarioArchiveFileDir(TestPlan testPlan, String scenarioDir, ArtifactReadable awsArtifactReader)
testPlan - test-planscenarioDir - name of the scenariopublic static String deriveS3DeploymentOutputsDir(TestPlan testPlan, ArtifactReadable awsArtifactReader)
testPlan - test-planawsArtifactReader - AWSArtifactReadablepublic static String deriveS3ScenarioOutputsFilePath(TestPlan testPlan, ArtifactReadable artifactReadable)
testPlan - test plan to get outputs ofartifactReadable - AWSArtifactReadablepublic static String deriveS3TestsResultsArchivePath(TestPlan testPlan, ArtifactReadable awsArtifactReader)
testPlan - test-planawsArtifactReader - AWS artifact reader for accessing the S3 storageCopyright © 2019 WSO2. All rights reserved.