Skip to content

Commit 7411cf2

Browse files
committed
fix test_no_fips_for_standard_regions
1 parent 6396cef commit 7411cf2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_api.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,11 @@ def test_no_fips_for_standard_regions(self, mock_boto3_client):
7878
mock_client = MagicMock()
7979
mock_client.get_secret_value.return_value = {"SecretString": "test-api-key"}
8080
mock_boto3_client.return_value = mock_client
81+
82+
os.environ.clear()
83+
os.environ["AWS_REGION"] = "us-west-2"
84+
os.environ["DD_API_KEY_SECRET_ARN"] = "test-arn"
85+
86+
api.get_api_key()
87+
88+
mock_boto3_client.assert_called_with("secretsmanager", endpoint_url=None)

0 commit comments

Comments
 (0)