-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
incorporated review requests, improved testing
- Loading branch information
Showing
22 changed files
with
157 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
packages/@aws-cdk/cloudformation-include/test/test-templates/fn-sub-brace-edges.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"Resources": { | ||
"Bucket": { | ||
"Type": "Custom::ManyStrings", | ||
"Properties": { | ||
"SymbolsOnly": { | ||
"DollarSign": { | ||
"Fn::Sub": "$" | ||
}, | ||
"OpeningBrace": { | ||
"Fn::Sub": "{" | ||
}, | ||
"ClosingBrace": { | ||
"Fn::Sub": "}" | ||
}, | ||
"DollarOpeningBrace": { | ||
"Fn::Sub": "${" | ||
}, | ||
"DollarClosingBrace": { | ||
"Fn::Sub": "$}" | ||
}, | ||
"OpeningBraceDollar": { | ||
"Fn::Sub": "{$" | ||
}, | ||
"ClosingBraceDollar": { | ||
"Fn::Sub": "}$" | ||
} | ||
}, | ||
"SymbolsAndResources": { | ||
"DollarSign": { | ||
"Fn::Sub": "DoesNotExist$DoesNotExist" | ||
}, | ||
"OpeningBrace": { | ||
"Fn::Sub": "DoesNotExist{DoesNotExist" | ||
}, | ||
"ClosingBrace": { | ||
"Fn::Sub": "DoesNotExist}DoesNotExist" | ||
}, | ||
"DollarOpeningBrace": { | ||
"Fn::Sub": "DoesNotExist${DoesNotExist" | ||
}, | ||
"DollarClosingBrace": { | ||
"Fn::Sub": "DoesNotExist$}DoesNotExist" | ||
}, | ||
"OpeningBraceDollar": { | ||
"Fn::Sub": "DoesNotExist{$DoesNotExist" | ||
}, | ||
"ClosingBraceDollar": { | ||
"Fn::Sub": "DoesNotExist}$DoesNotExist" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
packages/@aws-cdk/cloudformation-include/test/test-templates/fn-sub-override.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"Resources": { | ||
"Bucket": { | ||
"Type": "AWS::S3::Bucket", | ||
"Properties": { | ||
"BucketName": "bucket" | ||
} | ||
}, | ||
"AnotherBucket": { | ||
"Type": "AWS::S3::Bucket", | ||
"Properties": { | ||
"BucketName": { "Fn::Sub": "${Bucket}-${!Bucket}-${Bucket.DomainName}" } | ||
} | ||
} | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 4 additions & 2 deletions
6
...templates/invalid/fn-sub-bad-get-att.json → ...st-templates/invalid/fn-sub-${}-only.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...es/@aws-cdk/cloudformation-include/test/test-templates/invalid/fn-sub-invalid-syntax.json
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...es/@aws-cdk/cloudformation-include/test/test-templates/invalid/fn-sub-key-not-in-map.json
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...cloudformation-include/test/test-templates/invalid/fn-sub-key-not-in-template-string.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...ws-cdk/cloudformation-include/test/test-templates/invalid/fn-sub-key-not-in-template.json
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...ws-cdk/cloudformation-include/test/test-templates/yaml/invalid/short-form-import-sub.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Resources: | ||
Bucket: | ||
Type: AWS::S3::Bucket | ||
Properties: | ||
BucketName: | ||
!ImportValue | ||
!Sub ${AWS::Region} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.