Skip to content

added test case for test_vpc_flowlogs_enable_logging#312

Open
Khushi-Kalantri-Comprinno wants to merge 2 commits intocomprinnotech:testcases_devfrom
Khushi-Kalantri-Comprinno:test_vpc_flowlogs_enable_logging
Open

added test case for test_vpc_flowlogs_enable_logging#312
Khushi-Kalantri-Comprinno wants to merge 2 commits intocomprinnotech:testcases_devfrom
Khushi-Kalantri-Comprinno:test_vpc_flowlogs_enable_logging

Conversation

@Khushi-Kalantri-Comprinno

Context

Adding a new test case to verify whether VPC Flow Logs are enabled for all VPCs as part of the AWS security best practices.
Fixes incorrect or missing coverage for vpc_flowlogs_enable_logging.


Description

  • Implemented test_vpc_flowlogs_enable_logging.py under library/aws/testcases/vpc/

  • Added tests for scenarios:

    • All VPCs have flow logs enabled
    • All VPCs have flow logs disabled
    • Some VPCs have flow logs disabled
    • No VPCs exist
    • Client error handling (e.g., UnauthorizedOperation)
  • Uses MagicMock to simulate boto3 EC2 client responses

  • Aligns structure and metadata with iam_password_policy_lowercase test format for consistency


Checklist


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