Skip to content

Commit 6641eb3

Browse files
Vandita2020Vandita Patidar
andauthored
fix(lambda): correcting tests (#3733)
Co-authored-by: Vandita Patidar <[email protected]>
1 parent 81cdfc2 commit 6641eb3

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.cfnlintrc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,4 @@ ignore_checks:
147147
- E3001 # Invalid or unsupported Type; common in transform tests since they focus on SAM resources
148148
- W2001 # Parameter not used
149149
- E3006 # Resource type check; we have some Foo Bar resources
150+
- W3037 # Ignore cfn-lint check for non existing IAM permissions

tests/translator/input/state_machine_with_schedule_role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Resources:
1212
Schedule: rate(1 minute)
1313
Description: test schedule
1414
Enabled: false
15-
RoleArn: arn:0000000000:iam::role/yoyo
15+
RoleArn: arn:aws:iam::123456123456:role/testRole
1616
CWScheduleCreateRole:
1717
Type: Schedule
1818
Properties:

tests/translator/output/aws-cn/state_machine_with_schedule_role.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"Ref": "MyStateMachine"
3333
},
3434
"Id": "MyStateMachineCWScheduleStepFunctionsTarget",
35-
"RoleArn": "arn:0000000000:iam::role/yoyo"
35+
"RoleArn": "arn:aws:iam::123456123456:role/testRole"
3636
}
3737
]
3838
},

tests/translator/output/aws-us-gov/state_machine_with_schedule_role.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"Ref": "MyStateMachine"
3333
},
3434
"Id": "MyStateMachineCWScheduleStepFunctionsTarget",
35-
"RoleArn": "arn:0000000000:iam::role/yoyo"
35+
"RoleArn": "arn:aws:iam::123456123456:role/testRole"
3636
}
3737
]
3838
},

tests/translator/output/state_machine_with_schedule_role.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"Ref": "MyStateMachine"
3333
},
3434
"Id": "MyStateMachineCWScheduleStepFunctionsTarget",
35-
"RoleArn": "arn:0000000000:iam::role/yoyo"
35+
"RoleArn": "arn:aws:iam::123456123456:role/testRole"
3636
}
3737
]
3838
},

0 commit comments

Comments
 (0)