aws-cloudformation / aws-cloudformation-samples

Apache License 2.0
134 stars 55 forks source link

Add 23 resource targets. #98

Closed mrinaudo-aws closed 7 months ago

mrinaudo-aws commented 7 months ago

Issue #, if available:

Description of changes: Add 23 resource targets.

Unit tests excepts

% pytest --cov
[...]
plugins: hypothesis-6.88.1, random-order-1.1.0, cov-4.1.0, typeguard-2.13.3, localserver-0.8.1
collected 87 items                                                                                                                                                                                                 

src/awssamples_resourcetags_hook/tests/test_handlers.py ...[...] [100%]
[...]
Name                                           Stmts   Miss Branch BrPart  Cover   Missing
------------------------------------------------------------------------------------------
src/awssamples_resourcetags_hook/handlers.py     317      0    170      0   100%
------------------------------------------------------------------------------------------
TOTAL                                            317      0    170      0   100%

Required test coverage of 85.0% reached. Total coverage: 100.00%

[...] 87 passed [...]

Contract tests excepts

% cfn test
[...]
plugins: hypothesis-6.88.1, random-order-1.1.0, cov-4.1.0, typeguard-2.13.3, localserver-0.8.1
collected 24 items / 17 deselected / 7 selected                                                                                                                                                                    

[...]/handler_pre_create.py::contract_pre_create_success PASSED                                                         [ 14%]
[...]/handler_pre_create.py::contract_pre_create_failed PASSED                                                          [ 28%]
[...]/handler_pre_create.py::contract_pre_create_failed_unsupported_target SKIPPED (No wildcard hook targets. Skipp...) [ 42%]
[...]/handler_pre_update.py::contract_pre_update_success PASSED                                                         [ 57%]
[...]/handler_pre_update.py::contract_pre_update_failed PASSED                                                          [ 71%]
[...]/handler_pre_update.py::contract_pre_update_failed_unsupported_target SKIPPED (No wildcard hook targets. Skipp...) [ 85%]
[...]/handler_misc.py::contract_check_asserts_work PASSED                                                           [100%]

[...] 5 passed, 2 skipped, 17 deselected [...]

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