Warning
This repository contains the sources for a deprecated workshop. It is READ ONLY and will not be updated any further.
To run e2e integration tests for module 1, execute the following steps:
-
Clone the repository and change into the directory:
git clone https://github.com/aws-samples/web3-workshop.git cd web3-workshop
-
Add the required credentials to
./tests/module1/run_e2e_pipeline.sh
. -
Ensure that you have your
aws cli
configured correctly and have it pointing to the right AWS account. -
Export the required
CDK
environment variables to configure the AWS region and account used for the deployment.export CDK_DEPLOY_REGION=us-east-1 export CDK_DEPLOY_ACCOUNT=$(aws sts get-caller-identity | jq -r '.Account')
-
Run the e2e script:
./tests/module1/run_e2e_pipeline.sh
Module 2 requires module 1 to be fully configured and deployed in the same AWS account and region. Please ensure that all steps defined in Module 1
have been executed successfully.
The deployment script requires yq to modify YAML files on your local machine. It also assumes that you're working on a local machine (instead of a Cloud9 instance). If you don't have yq
installed, the easiest way on a Mac is using homebrew: brew install yq
. For other architectures, see the installation guide.
- Run the e2e script:
./tests/module2/run_e2e_pipeline.sh
Separate cleanup scripts have been provided for module 1 and module 2. If you have deployed module 2 and module 1, trigger the scripts in the following order
./tests/module2/cleanup.sh && \
./tests/module1/cleanup.sh
If only module 1 has been deployed run the following command:
./tests/module1/cleanup.sh
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.