test(aws): Add default Boto3 credentials (#3404)

This commit is contained in:
Pepe Fagoaga
2024-02-16 09:13:51 +01:00
committed by GitHub
parent ac439060a3
commit 8e93493d2b
3 changed files with 39 additions and 23 deletions

View File

@@ -71,6 +71,7 @@ openapi-spec-validator = "0.7.1"
pylint = "3.0.3"
pytest = "8.0.0"
pytest-cov = "4.1.0"
pytest-env = "1.1.3"
pytest-randomly = "3.15.0"
pytest-xdist = "3.5.0"
safety = "3.0.1"
@@ -96,3 +97,11 @@ search = 'prowler_version = "{current_version}"'
pythonpath = [
"."
]
[tool.pytest_env]
# For Moto and Boto3 while testing AWS
AWS_ACCESS_KEY_ID = 'testing'
AWS_DEFAULT_REGION = 'us-east-1'
AWS_SECRET_ACCESS_KEY = 'testing'
AWS_SECURITY_TOKEN = 'testing'
AWS_SESSION_TOKEN = 'testing'