public final class S3StorageUtil extends Object
| Constructor and Description |
|---|
S3StorageUtil() |
| Modifier and Type | Method and Description |
|---|---|
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 |
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 String deriveS3ScenarioArchiveFileDir(TestPlan testPlan, String scenarioDir, ArtifactReadable awsArtifactReader)
testPlan - test-planscenarioDir - name of the scenariopublic static String deriveS3ScenarioOutputsFilePath(TestPlan testPlan, ArtifactReadable artifactReadable)
testPlan - test plan to get outputs ofartifactReadable - AWSArtifactReadableCopyright © 2018 WSO2. All rights reserved.