|
|
2 yıl önce | |
|---|---|---|
| .. | ||
| aws_metrics | 2 yıl önce | |
| client_auth | 4 yıl önce | |
| common | 3 yıl önce | |
| core | 2 yıl önce | |
| CMakeLists.txt | 3 yıl önce | |
| README.md | 2 yıl önce | |
| __init__.py | 4 yıl önce | |
| conftest.py | 4 yıl önce | |
Note: All the AWS Gems CDK applications have been updated to CDK v2. Ensure you set CDK_VERSION to the desired CDK v2 version. See https://docs.aws.amazon.com/cdk/api/versions.html for the latest CDK v2 version information.
Support for the CDKv1 applications has been deprecated.
CDK_VERSION to the desired CDK version:
Windows (Command Prompt)
{engine_root}\scripts\build\Platform\Windows\deploy_cdk_applications.cmd
Linux
{engine_root}/scripts/build/Platform/Linux/deploy_cdk_applications.sh
Windows
set O3DE_AWS_PROJECT_NAME=AWSAUTO
set O3DE_AWS_DEPLOY_REGION=us-east-1
set ASSUME_ROLE_ARN=arn:aws:iam::{your_aws_account_id}:role/o3de-automation-tests
set COMMIT_ID=HEAD
set CDK_VERSION=2.68.0
set AWS_EC2_METADATA_DISABLED=true
Linux
export O3DE_AWS_PROJECT_NAME=AWSAUTO
export O3DE_AWS_DEPLOY_REGION=us-east-1
export ASSUME_ROLE_ARN=arn:aws:iam::{your_aws_account_id}:role/o3de-automation-tests
export COMMIT_ID=HEAD
export CDK_VERSION=2.68.0
export AWS_EC2_METADATA_DISABLED=true
Windows
python\python.cmd -m pytest {path_to_the_test_file} --build-directory {directory_to_the_profile_build}
Linux
python/python.sh -m pytest {path_to_the_test_file} --build-directory {directory_to_the_profile_build}
The main tests files can be found in the AutomatedTesting\Gem\PythonTests\AWS directory at the following paths:
| Gem | Test file |
|---|---|
| AWSCore | core\test_aws_resource_interaction.py |
| AWSMetrics | aws_metrics\aws_metrics_automation_test.py |
| AWSClientAuth | client_auth\aws_client_auth_automation_test.py |
You can also run any specific automation test directly from PyCharm by providing the "--build-directory" argument in the Run Configuration.
Windows
{engine_root}\scripts\build\Platform\Windows\destroy_cdk_applications.cmd
Linux
{engine_root}/scripts/build/Platform/Linux/destroy_cdk_applications.sh