Steps for executing system tests using Docker Swarm based System Test Framework - derekm/pravega GitHub Wiki
-
An AWS account.
-
Terraform installed.
-
aws-access-key,aws-secret-key,aws-regionandAWS key pem filefrom AWS console.
-
aws-cred-path- the absolute path where AWS.pemfile is located. -
config-path- the absolue path where AWS config terraform files are located.($rootDir/test/system/aws) -
pravega-org-name- the default ispravega/pravegaand if it is a fork that you are using, then usefork-name/pravega(github user-name/repo-name). Some forks might be likexxxx/pravega1. In such cases, we should use the samexxxx/pravega1. -
branch-name- the branch against which you want to run system tests. -
image-version- should be same asbranch-name. -
commit-id- the commit id for the latest commit to your branch.
To execute system tests
./gradlew clean --info startSystemTestsWithDocker -DskipServiceInstallation=false -Dlog.level=DEBUG -DexecType=DOCKER -PawsExecution=true -Paws_access_key=<aws-access-key> -Paws_secret_key=<aws-secret-key> -Paws_region=<aws-region> -Paws_key_name=<aws-key-name> -Pcred_path=<aws-cred-path> -Pconfig_path=<config-path> -Ppravega_org=<pravega-org-name> -Ppravega_branch=<branch-name> -DimageVersion=<pravega-image-version> -DawsExec=true
To collect logs into s3 bucket
./gradlew --info collectSystemTestLogsFromAws -Paws_access_key=<aws-access-key> -Paws_secret_key=<aws-secret-key>
-Paws_region=<aws-region> -Paws_key_name=<aws-key-name> -Pcred_path=<aws-cred-path> -Pconfig_path=<config-path>
-Ppravega_org=<pravega-org-name> -Ppravega_branch= <branch-name> -Ptravis_commit=<commit-id>
Use travis.yml
Note: Logs are stored in the following format:
branch-name
|
commit-id
|
log-files