Skip to content

Commit d1bcbb2

Browse files
chore: use terraform-test path circumventing ci iam perms
1 parent a6b8946 commit d1bcbb2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

smoke_tests/ecs_fargate/role-parsing-with-path.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Create IAM roles with paths to test the parsing logic
1313
resource "aws_iam_role" "test_task_role_with_path" {
1414
name = "${var.test_prefix}-task-role-with-path"
15-
path = "/test-task-path/"
15+
path = "/terraform-test/"
1616

1717
assume_role_policy = jsonencode({
1818
Version = "2012-10-17"
@@ -28,7 +28,7 @@ resource "aws_iam_role" "test_task_role_with_path" {
2828

2929
resource "aws_iam_role" "test_execution_role_with_path" {
3030
name = "${var.test_prefix}-execution-role-with-path"
31-
path = "/test-execution-path/"
31+
path = "/terraform-test/"
3232

3333
assume_role_policy = jsonencode({
3434
Version = "2012-10-17"

tests/role_parsing_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ func (s *ECSFargateSuite) TestRoleParsingWithPath() {
3131

3232
taskRoleArn := task["task_role_arn"]
3333
s.NotEmpty(taskRoleArn, "Task role ARN should not be empty")
34-
s.Contains(taskRoleArn, "/test-task-path/", "Task role ARN should contain the path '/test-path/'")
34+
s.Contains(taskRoleArn, "/terraform-test/", "Task role ARN should contain the path '/test-path/'")
3535
s.Contains(taskRoleArn, s.testPrefix+"-task-role-with-path", "Task role ARN should contain the expected role name")
3636

3737
executionRoleArn := task["execution_role_arn"]
3838
s.NotEmpty(executionRoleArn, "Execution role ARN should not be empty")
39-
s.Contains(executionRoleArn, "/test-execution-path/", "Execution role ARN should contain the path '/test-execution-path/'")
39+
s.Contains(executionRoleArn, "/terraform-test/", "Execution role ARN should contain the path '/terraform-test/'")
4040
s.Contains(executionRoleArn, s.testPrefix+"-execution-role-with-path", "Execution role ARN should contain the expected role name")
4141
}
4242

0 commit comments

Comments
 (0)