From 0319b7a14ccafd598d47552d4da0d538857131cb Mon Sep 17 00:00:00 2001 From: RoseSecurity <72598486+RoseSecurity@users.noreply.github.com> Date: Tue, 8 Oct 2024 09:31:50 -0500 Subject: [PATCH] fix: update Terratest assertions with new account ID (#252) --- test/src/examples_complete_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/src/examples_complete_test.go b/test/src/examples_complete_test.go index 179b2be8..3ae59b0c 100644 --- a/test/src/examples_complete_test.go +++ b/test/src/examples_complete_test.go @@ -81,12 +81,12 @@ func TestExamplesComplete(t *testing.T) { // Run `terraform output` to get the value of an output variable ecsClusterId := terraform.Output(t, terraformOptions, "ecs_cluster_id") // Verify we're getting back the outputs we expect - assert.Equal(t, "arn:aws:ecs:us-east-2:126450723953:cluster/"+basename, ecsClusterId) + assert.Equal(t, "arn:aws:ecs:us-east-2:799847381734:cluster/"+basename, ecsClusterId) // Run `terraform output` to get the value of an output variable ecsClusterArn := terraform.Output(t, terraformOptions, "ecs_cluster_arn") // Verify we're getting back the outputs we expect - assert.Equal(t, "arn:aws:ecs:us-east-2:126450723953:cluster/"+basename, ecsClusterArn) + assert.Equal(t, "arn:aws:ecs:us-east-2:799847381734:cluster/"+basename, ecsClusterArn) // Run `terraform output` to get the value of an output variable ecsExecRolePolicyName := terraform.Output(t, terraformOptions, "ecs_exec_role_policy_name") @@ -111,7 +111,7 @@ func TestExamplesComplete(t *testing.T) { // Run `terraform output` to get the value of an output variable taskExecRoleArn := terraform.Output(t, terraformOptions, "task_exec_role_arn") // Verify we're getting back the outputs we expect - assert.Equal(t, "arn:aws:iam::126450723953:role/"+basename+"-exec", taskExecRoleArn) + assert.Equal(t, "arn:aws:iam::799847381734:role/"+basename+"-exec", taskExecRoleArn) // Run `terraform output` to get the value of an output variable taskRoleName := terraform.Output(t, terraformOptions, "task_role_name") @@ -121,7 +121,7 @@ func TestExamplesComplete(t *testing.T) { // Run `terraform output` to get the value of an output variable taskRoleArn := terraform.Output(t, terraformOptions, "task_role_arn") // Verify we're getting back the outputs we expect - assert.Equal(t, "arn:aws:iam::126450723953:role/"+basename+"-task", taskRoleArn) + assert.Equal(t, "arn:aws:iam::799847381734:role/"+basename+"-task", taskRoleArn) } func TestExamplesCompleteDisabled(t *testing.T) {