From e4520651de594d9e149933c47562c3a75d879a22 Mon Sep 17 00:00:00 2001 From: Dmitry Kireev Date: Fri, 7 Jun 2024 05:46:00 +0000 Subject: [PATCH] WIP --- examples/complete-worker-ec2/main.tf | 2 +- test/examples_complete-worker-ec2_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/complete-worker-ec2/main.tf b/examples/complete-worker-ec2/main.tf index 99e7fc2..8dc727a 100644 --- a/examples/complete-worker-ec2/main.tf +++ b/examples/complete-worker-ec2/main.tf @@ -81,7 +81,7 @@ module "ecs" { module "worker_complete" { source = "../.." - name = "worker" + name = "worker-ec2" app_type = "worker" env = var.env diff --git a/test/examples_complete-worker-ec2_test.go b/test/examples_complete-worker-ec2_test.go index 604e71b..c4cd0d0 100644 --- a/test/examples_complete-worker-ec2_test.go +++ b/test/examples_complete-worker-ec2_test.go @@ -118,7 +118,7 @@ func TestExamplesWorkerEc2(t *testing.T) { // Run `terraform output` to get the value of an output variable vpcCidr := terraform.Output(t, terraformOptions, "vpc_cidr") // Verify we're getting back the outputs we expect - assert.Equal(t, "10.0.20.0/16", vpcCidr) + assert.Equal(t, "10.0.0.0/16", vpcCidr) // Run `terraform output` to get the value of an output variable privateSubnetCidrs := terraform.OutputList(t, terraformOptions, "private_subnet_cidrs") @@ -128,12 +128,12 @@ func TestExamplesWorkerEc2(t *testing.T) { // Run `terraform output` to get the value of an output variable cloudWatchLogGroup := terraform.Output(t, terraformOptions, "cloudwatch_log_group") // Verify we're getting back the outputs we expect - assert.Equal(t, "e2e05-complete-worker-ec2", cloudWatchLogGroup) + assert.Equal(t, "e2e05-worker-ec2", cloudWatchLogGroup) // Run `terraform output` to get the value of an output variable ecsClusterName := terraform.Output(t, terraformOptions, "ecs_cluster_name") // Verify we're getting back the outputs we expect - assert.Equal(t, "e2e05-tftest-complete-worker-ec2", ecsClusterName) + assert.Equal(t, "e2e05-tftest-worker-ec2", ecsClusterName) /* // Run `terraform output` to get the value of an output variable