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 Brito
2024-09-23 18:43:03 +02:00
committed by GitHub
parent 14ed19e3a8
commit cca17b9378
19 changed files with 299 additions and 35 deletions
@@ -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,