Skip to content

Commit

Permalink
Improve testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Sep 11, 2024
1 parent 8b6ee10 commit c9fa193
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Resources:
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: Name
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,3 @@ Resources:
start_position: "LATEST"
aws:
region: us-east-1
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: Name
1 change: 1 addition & 0 deletions test/unit/rules/resources/test_hardcodedarnproperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def setUp(self):
super(TestHardCodedArnProperties, self).setUp()
self.collection.register(HardCodedArnProperties())
self.success_templates = [
"test/fixtures/templates/good/resources/properties/hard_coded_arn_properties.yaml",
"test/fixtures/templates/good/resources/properties/hard_coded_arn_properties_sam.yaml",
]

Expand Down

0 comments on commit c9fa193

Please sign in to comment.