Skip to content

Commit

Permalink
update conditions in tests to fix lint failures (#3705)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbfreder authored Jan 9, 2025
1 parent 17000c1 commit a8c0a70
Show file tree
Hide file tree
Showing 20 changed files with 70 additions and 40 deletions.
4 changes: 2 additions & 2 deletions tests/translator/input/basic_application.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Conditions:
TestCondition:
Fn::Equals:
- true
- false
- !Ref AWS::AccountId
- myAccountId
Resources:
BasicApplication:
Type: AWS::Serverless::Application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Description: >
Conditions:
FalseCondition:
Fn::Equals:
- true
- false
- !Ref AWS::AccountId
- myAccountId

Resources:
# Rest Api with DefinitionBody under If intrinsic, SwaggerEditor not used
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Conditions:
MyCondition:
Fn::Equals:
- true
- false
- !Ref AWS::AccountId
- myAccountId
Resources:
MinimalFunction:
Type: AWS::Serverless::Function
Expand Down
4 changes: 2 additions & 2 deletions tests/translator/input/s3_with_condition.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Conditions:
MyCondition:
Fn::Equals:
- true
- false
- !Ref AWS::AccountId
- myAccountId
Resources:
ThumbnailFunction:
Type: AWS::Serverless::Function
Expand Down
4 changes: 2 additions & 2 deletions tests/translator/input/sns_intrinsics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Parameters:
Conditions:
MyCondition:
Fn::Equals:
- true
- false
- !Ref AWS::AccountId
- myAccountId

Resources:
SaveNotificationFunction:
Expand Down
6 changes: 4 additions & 2 deletions tests/translator/output/aws-cn/basic_application.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"Conditions": {
"TestCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"Conditions": {
"FalseCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"Conditions": {
"MyCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down
6 changes: 4 additions & 2 deletions tests/translator/output/aws-cn/s3_with_condition.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"Conditions": {
"MyCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down
6 changes: 4 additions & 2 deletions tests/translator/output/aws-cn/sns_intrinsics.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"Conditions": {
"MyCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down
6 changes: 4 additions & 2 deletions tests/translator/output/aws-us-gov/basic_application.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"Conditions": {
"TestCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"Conditions": {
"FalseCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"Conditions": {
"MyCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down
6 changes: 4 additions & 2 deletions tests/translator/output/aws-us-gov/s3_with_condition.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"Conditions": {
"MyCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down
6 changes: 4 additions & 2 deletions tests/translator/output/aws-us-gov/sns_intrinsics.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"Conditions": {
"MyCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down
6 changes: 4 additions & 2 deletions tests/translator/output/basic_application.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"Conditions": {
"TestCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"Conditions": {
"FalseCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"Conditions": {
"MyCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down
6 changes: 4 additions & 2 deletions tests/translator/output/s3_with_condition.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"Conditions": {
"MyCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down
6 changes: 4 additions & 2 deletions tests/translator/output/sns_intrinsics.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"Conditions": {
"MyCondition": {
"Fn::Equals": [
true,
false
{
"Ref": "AWS::AccountId"
},
"myAccountId"
]
}
},
Expand Down

0 comments on commit a8c0a70

Please sign in to comment.