Skip to content

Commit

Permalink
updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-heery committed Sep 16, 2024
1 parent 1b05af5 commit a97119d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions test/unit-test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ module "s3_with_notification" {

}

resource "aws_s3_bucket" "non-modulised-bucket" {
bucket = "log-test-bucket"
}

resource "aws_s3_bucket" "non-modulised-bucket-2" {
bucket = "log-test-bucket-2"
}

module "dummy_s3_log_bucket" {
#checkov:skip=CKV_AWS_300: "Ensure S3 lifecycle configuration sets period for aborting failed uploads - This is not needed in our tests"
source = "../.."
Expand All @@ -78,9 +86,9 @@ module "s3_with_log_bucket" {
bucket_prefix = "unit-test-bucket-with-logs"
force_destroy = true
log_buckets = tomap({ "main_log_bucket" : module.dummy_s3_log_bucket.bucket })
log_bucket_names = toset(["test_bucket_1"])
log_bucket = "test_bucket_2"
log_prefix = "testing-logs-folder"
log_bucket_names = toset(["log-test-bucket"])
log_bucket = "log-test-bucket"
log_prefix = "log-test-bucket-2"
tags = local.tags
}

Expand Down

0 comments on commit a97119d

Please sign in to comment.