Skip to content

Commit

Permalink
Add a bad test results
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Sep 11, 2024
1 parent c9fa193 commit 16d87a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions test/fixtures/templates/bad/hard_coded_arn_properties.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,11 @@ Resources:
- !Sub arn:${AWS::Partition}:sns:${AWS::Partition}:${AWS::AccountId}:TestTopic
Roles:
- !Ref SampleRole

Authorizer:
Type: AWS::ApiGateway::Authorizer
Properties:
AuthorizerUri: !Sub arn:${AWS::Partition}:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:Name/invocations
RestApiId: RestApiId
Type: REQUEST
Name: !Sub arn:${AWS::Partition}:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:Name/invocations
2 changes: 1 addition & 1 deletion test/unit/rules/resources/test_hardcodedarnproperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_file_negative_region(self):
def test_file_negative_accountid(self):
self.helper_file_negative(
"test/fixtures/templates/bad/hard_coded_arn_properties.yaml",
1,
2,
ConfigMixIn(
[],
include_experimental=True,
Expand Down

0 comments on commit 16d87a6

Please sign in to comment.