Skip to content

Commit

Permalink
aws-cloudformation#241 Updated to include unsupported keys
Browse files Browse the repository at this point in the history
  • Loading branch information
corey-cole committed May 1, 2022
1 parent ab42796 commit 675bb87
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
expectations:
rules:
has_correct_keys: SKIP
has_likely_valid_arn: SKIP
- name: FindsRequiredKeys
input: [
{"ParameterKey": "pIgnore", "ParameterValue": "arn:aws:s3:::bucket_name/key_name"}
Expand All @@ -12,6 +13,14 @@
rules:
has_correct_keys: PASS
has_likely_valid_arn: PASS
- name: FindsUnsupportedKeys
input: [
{"ParameterKey": "pIgnore", "ParameterValue": "whatever", "UsePreviousValue": "true"}
]
expectations:
rules:
has_correct_keys: FAIL
has_likely_valid_arn: SKIP
- name: FindsMalformedArn
input: [
{"ParameterKey": "pIgnore", "ParameterValue": "arn:aws:foo:bar:baz"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ rule has_correct_keys when %all_parameters !empty {
ParameterKey exists
ParameterValue exists
<< Required keys exist >>
UsePreviousValue not exists
ResolvedValue not exists
}
}

Expand Down

0 comments on commit 675bb87

Please sign in to comment.