Skip to content

added test case for s3_bucket_default_encryption#317

Open
Khushi-Kalantri-Comprinno wants to merge 1 commit intocomprinnotech:testcases_devfrom
Khushi-Kalantri-Comprinno:test_s3_bucket_default_encryption
Open

added test case for s3_bucket_default_encryption#317
Khushi-Kalantri-Comprinno wants to merge 1 commit intocomprinnotech:testcases_devfrom
Khushi-Kalantri-Comprinno:test_s3_bucket_default_encryption

Conversation

@Khushi-Kalantri-Comprinno

Context

This PR adds comprehensive test coverage for the s3_bucket_default_encryption check.

This PR introduces a complete and corrected test suite for the s3_bucket_default_encryption check, covering the following scenarios:
-KMS encryption enabled: Bucket uses aws:kms with a valid key.
-AES256 encryption enabled: Bucket uses AES256 (SSE-S3).
-No default encryption: Bucket has no encryption configuration.
-Unknown ClientError: Unexpected client exception from get_bucket_encryption.
-Endpoint/network error: Simulates BotoCoreError (e.g., network issue).
-No buckets found: Verifies behavior when the S3 account is empty.

###Checklist
-The code is fully covered by unit tests, with each execution path validated.
-All new code and test logic follow the Google Python Style Guide.

  • No backporting is required at this time.

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant