mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-03 12:20:38 +08:00
chore: add blank
This commit is contained in:
@ -67,4 +67,4 @@ class AWSSecretsManagerProvider(SecretProvider):
|
|||||||
raise e
|
raise e
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
get_logger().error(f"Failed to store secret {secret_name} in AWS Secrets Manager: {e}")
|
get_logger().error(f"Failed to store secret {secret_name} in AWS Secrets Manager: {e}")
|
||||||
raise e
|
raise e
|
||||||
|
@ -99,4 +99,4 @@ class TestAWSSecretsManagerProvider:
|
|||||||
mock_client.update_secret.side_effect = Exception("AWS error")
|
mock_client.update_secret.side_effect = Exception("AWS error")
|
||||||
|
|
||||||
with pytest.raises(Exception):
|
with pytest.raises(Exception):
|
||||||
provider.store_secret('test-secret', 'test-value')
|
provider.store_secret('test-secret', 'test-value')
|
||||||
|
@ -117,4 +117,4 @@ class TestConfigLoaderSecrets:
|
|||||||
mock_get_provider.side_effect = Exception("Provider error")
|
mock_get_provider.side_effect = Exception("Provider error")
|
||||||
|
|
||||||
# Confirm processing continues even when exception occurs
|
# Confirm processing continues even when exception occurs
|
||||||
apply_secrets_manager_config() # Confirm no exception is raised
|
apply_secrets_manager_config() # Confirm no exception is raised
|
||||||
|
@ -66,4 +66,4 @@ class TestSecretProviderFactory:
|
|||||||
MockProvider.side_effect = Exception("Initialization failed")
|
MockProvider.side_effect = Exception("Initialization failed")
|
||||||
|
|
||||||
with pytest.raises(ValueError, match="Failed to initialize aws_secrets_manager secret provider"):
|
with pytest.raises(ValueError, match="Failed to initialize aws_secrets_manager secret provider"):
|
||||||
get_secret_provider()
|
get_secret_provider()
|
||||||
|
Reference in New Issue
Block a user