@@ -22,7 +22,7 @@ def setUp(self):
2222 )
2323 self .env_patcher .start ()
2424
25- @patch ("datadog_lambda.api.enable_fips_mode " , True )
25+ @patch ("datadog_lambda.api.fips_mode_enabled " , True )
2626 @patch ("botocore.session.Session.create_client" )
2727 def test_secrets_manager_fips_endpoint (self , mock_boto3_client ):
2828 mock_client = MagicMock ()
@@ -63,7 +63,7 @@ def test_secrets_manager_different_region(self, mock_boto3_client):
6363 )
6464 self .assertEqual (api_key , "test-api-key" )
6565
66- @patch ("datadog_lambda.api.enable_fips_mode " , True )
66+ @patch ("datadog_lambda.api.fips_mode_enabled " , True )
6767 @patch ("botocore.session.Session.create_client" )
6868 def test_secrets_manager_different_region_but_still_fips (self , mock_boto3_client ):
6969 mock_client = MagicMock ()
@@ -84,7 +84,7 @@ def test_secrets_manager_different_region_but_still_fips(self, mock_boto3_client
8484 )
8585 self .assertEqual (api_key , "test-api-key" )
8686
87- @patch ("datadog_lambda.api.enable_fips_mode " , True )
87+ @patch ("datadog_lambda.api.fips_mode_enabled " , True )
8888 @patch ("botocore.session.Session.create_client" )
8989 def test_ssm_fips_endpoint (self , mock_boto3_client ):
9090 mock_client = MagicMock ()
@@ -103,7 +103,7 @@ def test_ssm_fips_endpoint(self, mock_boto3_client):
103103 )
104104 self .assertEqual (api_key , "test-api-key" )
105105
106- @patch ("datadog_lambda.api.enable_fips_mode " , True )
106+ @patch ("datadog_lambda.api.fips_mode_enabled " , True )
107107 @patch ("botocore.session.Session.create_client" )
108108 @patch ("datadog_lambda.api.decrypt_kms_api_key" )
109109 def test_kms_fips_endpoint (self , mock_decrypt_kms , mock_boto3_client ):
0 commit comments