HomeElementl

Ensure AWS unit tests never run against real AWS

Description

Ensure AWS unit tests never run against real AWS

Summary:
Patch os.environ on every test in the suite with AWS_ACCESS_KEY_ID=test
and AWS_SECRET_ACCESS_KEY=test to make sure we never accidentally run
against real AWS credentials in unit tests.

This is in line with the recommendations from moto:

https://github.com/spulec/moto#how-do-i-avoid-tests-from-mutating-my-real-infrastructure

Test Plan: unit

Reviewers: alangenfeld, dgibson

Reviewed By: dgibson

Differential Revision: https://dagster.phacility.com/D8473

Details

Provenance
jordansandersAuthored on Jun 18 2021, 7:29 PM
Reviewer
dgibson
Differential Revision
D8473: Ensure AWS unit tests never run against real AWS
Parents
R1:678d816ae168: Remove unused ECS Client
Branches
Unknown
Tags
Unknown