E2E Test Setup
This guide explains how to set up your environment for running End-to-End (E2E) tests against real cloud providers.
Prerequisites
Section titled “Prerequisites”- Active Cloud Provider Account (AWS, Azure, or GCP)
- Pulumi CLI installed
finfocusbinary built (make build)
AWS Setup
Section titled “AWS Setup”-
Credentials: Ensure you have AWS credentials in your environment.
Terminal window export AWS_ACCESS_KEY_ID=...export AWS_SECRET_ACCESS_KEY=...export AWS_SESSION_TOKEN=... # if using MFA -
Configuration:
Terminal window export FINFOCUS_E2E_AWS_REGION=us-west-2export FINFOCUS_E2E_TOLERANCE=0.05 # 5% toleranceexport FINFOCUS_E2E_TIMEOUT=15m -
Running Tests:
Terminal window make test-e2e# or specific testgo test -v -tags e2e ./test/e2e/aws/...
Troubleshooting
Section titled “Troubleshooting”- Skipped Tests: If tests are skipped with “missing credentials”, check your environment variables.
- Timeouts: Increase
FINFOCUS_E2E_TIMEOUTfor complex stacks.