@@ -188,23 +188,8 @@ def test_dynamo_db_non_paths(self):
188188
189189 self .assertTrue (does_arn_match (s3_object_without_path , s3_object_raw_arn ))
190190 self .assertTrue (does_arn_match (s3_object_with_path , s3_object_raw_arn ))
191- # self.assertFalse(does_arn_match(s3_object_with_path, s3_bucket_raw_arn))
192- # self.assertFalse(does_arn_match(s3_object_without_path, s3_bucket_raw_arn))
191+ self .assertFalse (does_arn_match (s3_object_with_path , s3_bucket_raw_arn ))
192+ self .assertFalse (does_arn_match (s3_object_without_path , s3_bucket_raw_arn ))
193193
194194 self .assertTrue (does_arn_match (ecr_arn_with_path , ecr_raw_arn ))
195195 self .assertTrue (does_arn_match (ecr_arn_without_path , ecr_raw_arn ))
196-
197- {"arn:aws:dynamodb:us-east-1:123456789123:table/mytable/backup/mybackup" , "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/backup/${BackupName}" , True }
198- {"arn:aws:dynamodb:us-east-1:123456789123:table/mytable" , "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}" , True }
199-
200- {"arn:aws:dynamodb:us-east-1:123456789123:table/mytable/backup/mybackup" , "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}" , False }
201- {"arn:aws:dynamodb:us-east-1:123456789123:table/mytable" , "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/backup/${BackupName}" , False }
202-
203- {"arn:aws:ssm:::parameter/dev/foo/bar*" , "arn:${Partition}:ssm:${Region}:${Account}:parameter/${FullyQualifiedParameterName}" , True }
204- {"arn:aws:ssm:::parameter/dev" , "arn:${Partition}:ssm:${Region}:${Account}:parameter/${FullyQualifiedParameterName}" , True }
205-
206- {"arn:aws:s3:::foo/bar/baz" , "arn:${Partition}:s3:::${BucketName}/${ObjectName}" , True }
207- {"arn:aws:s3:::foo/bar/baz" , "arn:${Partition}:s3:::${BucketName}" , False }
208-
209- {"arn:aws:ecr:*:*:repository/foo/bar" , "arn:${Partition}:ecr:${Region}:${Account}:repository/${RepositoryName}" , True }
210- {"arn:aws:ecr:*:*:repository/foo" , "arn:${Partition}:ecr:${Region}:${Account}:repository/${RepositoryName}" , True }
0 commit comments