aws-cloudformation / aws-cloudformation-resource-providers-logs

The CloudFormation Resource Provider Package For Amazon CloudWatch Logs
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html
Apache License 2.0
33 stars 35 forks source link

Addition of subscription-filter #92

Closed rjsc3317 closed 2 years ago

rjsc3317 commented 2 years ago

Issue #, if available:

Addition of subscription-filter.

Coverage Results:

      | Coverage Instructions |   | Branch Coverage |
Total | 90 of 740 | 87% | 0 of 18 | 100% | 4 | 49 | 28 | 188 | 4 | 40 | 2 | 9

Contract Test results:

Logging set up successfully
Running test: Namespace(version=False, subparser_name='test', command=<function test at 0x116b52790>, verbose=3, endpoint='http://127.0.0.1:3001', function_name='TypeFunction', region='us-west-2', role_arn=None, cloudformation_endpoint_url=None, enforce_timeout='60', log_group_name=None, log_role_arn=None, passed_to_pytest=[], docker_image=None)
Root directory: /Users/rschum/Desktop/TigerBeetle/aws-cloudformation-resource-providers-logs/aws-logs-subscriptionfilter
Loading project file '/Users/rschum/Desktop/TigerBeetle/aws-cloudformation-resource-providers-logs/aws-logs-subscriptionfilter/.rpdk-config'
Validating your resource specification...
Explicitly specify value for taggable
Rewriting refs in '<BASE>' (file:///Users/rschum/Desktop/TigerBeetle/aws-cloudformation-resource-providers-logs/aws-logs-subscriptionfilter/aws-logs-subscriptionfilter.json)
Resource schema is valid.
Validating your resource schema...
Override file '/Users/rschum/Desktop/TigerBeetle/aws-cloudformation-resource-providers-logs/aws-logs-subscriptionfilter/overrides.json' not found. No overrides will be applied
temporary pytest.ini path: /var/folders/m6/sjnj5bjj4d1_4455d5vp1z880000gs/T/pytest_7mhqfz_r.ini
pytest args: ['-c', '/private/var/folders/m6/sjnj5bjj4d1_4455d5vp1z880000gs/T/pytest_7mhqfz_r.ini', '-m', 'not update']
============================================================================== test session starts ===============================================================================
platform darwin -- Python 3.9.1, pytest-7.0.1, pluggy-1.0.0 -- /Users/rschum/.pyenv/versions/3.9.1/bin/python3.9
cachedir: .pytest_cache
Test order randomisation NOT enabled. Enable with --random-order or --random-order-bucket=<bucket_type>
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/Users/rschum/Desktop/TigerBeetle/aws-cloudformation-resource-providers-logs/aws-logs-subscriptionfilter/.hypothesis/examples')
rootdir: /private/var/folders/m6/sjnj5bjj4d1_4455d5vp1z880000gs/T, configfile: pytest_7mhqfz_r.ini
plugins: localserver-0.5.1.post0, random-order-1.0.4, hypothesis-6.37.2
collected 13 items / 4 deselected / 9 selected

../../../../../../private/var/folders/m6/sjnj5bjj4d1_4455d5vp1z880000gs/T/handler_create.py::contract_create_delete PASSED                                                 [ 11%]
../../../../../../private/var/folders/m6/sjnj5bjj4d1_4455d5vp1z880000gs/T/handler_create.py::contract_create_duplicate SKIPPED (No writable identifiers. Skipping test.)   [ 22%]
../../../../../../private/var/folders/m6/sjnj5bjj4d1_4455d5vp1z880000gs/T/handler_create.py::contract_create_read_success PASSED                                           [ 33%]
../../../../../../private/var/folders/m6/sjnj5bjj4d1_4455d5vp1z880000gs/T/handler_create.py::contract_create_list_success PASSED                                           [ 44%]
../../../../../../private/var/folders/m6/sjnj5bjj4d1_4455d5vp1z880000gs/T/handler_delete.py::contract_delete_read PASSED                                                   [ 55%]
../../../../../../private/var/folders/m6/sjnj5bjj4d1_4455d5vp1z880000gs/T/handler_delete.py::contract_delete_list PASSED                                                   [ 66%]
../../../../../../private/var/folders/m6/sjnj5bjj4d1_4455d5vp1z880000gs/T/handler_delete.py::contract_delete_delete PASSED                                                 [ 77%]
../../../../../../private/var/folders/m6/sjnj5bjj4d1_4455d5vp1z880000gs/T/handler_delete.py::contract_delete_create SKIPPED (No writable identifiers. Skipping test.)      [ 88%]
../../../../../../private/var/folders/m6/sjnj5bjj4d1_4455d5vp1z880000gs/T/handler_misc.py::contract_check_asserts_work PASSED                                              [100%]

============================================================= 7 passed, 2 skipped, 4 deselected in 424.75s (0:07:04) =============================================================
Finished test

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.