Skip to content

Commit a8c0a70

Browse files
authored
update conditions in tests to fix lint failures (#3705)
1 parent 17000c1 commit a8c0a70

20 files changed

+70
-40
lines changed

tests/translator/input/basic_application.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Conditions:
22
TestCondition:
33
Fn::Equals:
4-
- true
5-
- false
4+
- !Ref AWS::AccountId
5+
- myAccountId
66
Resources:
77
BasicApplication:
88
Type: AWS::Serverless::Application

tests/translator/input/definition_body_intrinsics_support.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Description: >
1313
Conditions:
1414
FalseCondition:
1515
Fn::Equals:
16-
- true
17-
- false
16+
- !Ref AWS::AccountId
17+
- myAccountId
1818

1919
Resources:
2020
# Rest Api with DefinitionBody under If intrinsic, SwaggerEditor not used

tests/translator/input/function_with_deployment_preference_alarms_intrinsic_if.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Conditions:
22
MyCondition:
33
Fn::Equals:
4-
- true
5-
- false
4+
- !Ref AWS::AccountId
5+
- myAccountId
66
Resources:
77
MinimalFunction:
88
Type: AWS::Serverless::Function

tests/translator/input/s3_with_condition.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Conditions:
22
MyCondition:
33
Fn::Equals:
4-
- true
5-
- false
4+
- !Ref AWS::AccountId
5+
- myAccountId
66
Resources:
77
ThumbnailFunction:
88
Type: AWS::Serverless::Function

tests/translator/input/sns_intrinsics.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Parameters:
66
Conditions:
77
MyCondition:
88
Fn::Equals:
9-
- true
10-
- false
9+
- !Ref AWS::AccountId
10+
- myAccountId
1111

1212
Resources:
1313
SaveNotificationFunction:

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"TestCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"Conditions": {
44
"FalseCondition": {
55
"Fn::Equals": [
6-
true,
7-
false
6+
{
7+
"Ref": "AWS::AccountId"
8+
},
9+
"myAccountId"
810
]
911
}
1012
},

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"MyCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"MyCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"MyCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

0 commit comments

Comments
 (0)