feat(cloudfront): add new check cloudfront_distributions_s3_origin_non_existing_bucket (#4996)

Co-authored-by: Sergio <sergio@prowler.com>
This commit is contained in:
Hugo Pereira BritoandSergio authored and GitHub committed 2024-09-23 12:43:03 -04:00
1 parent 14ed19e3a8
commit cca17b9378
19 files changed
+299 -35

No files matched your search

@@ -35,7 +35,7 @@ class Test_cloudfront_distributions_https_enabled:
def test_one_distribution_https_disabled(self):
cloudfront_client = mock.MagicMock
cloudfront_client.distributions = {
"DISTRIBUTION_ID": Distribution(
DISTRIBUTION_ID: Distribution(
arn=DISTRIBUTION_ARN,
id=DISTRIBUTION_ID,
region=REGION,
@@ -75,7 +75,7 @@ class Test_cloudfront_distributions_https_enabled:
def test_one_distribution_https_redirect(self):
cloudfront_client = mock.MagicMock
cloudfront_client.distributions = {
"DISTRIBUTION_ID": Distribution(
DISTRIBUTION_ID: Distribution(
arn=DISTRIBUTION_ARN,
id=DISTRIBUTION_ID,
region=REGION,
@@ -115,7 +115,7 @@ class Test_cloudfront_distributions_https_enabled:
def test_one_distribution_https_only(self):
cloudfront_client = mock.MagicMock
cloudfront_client.distributions = {
"DISTRIBUTION_ID": Distribution(
DISTRIBUTION_ID: Distribution(
arn=DISTRIBUTION_ARN,
id=DISTRIBUTION_ID,
region=REGION,