aws-cloudformation / aws-cloudformation-samples

Apache License 2.0
134 stars 55 forks source link

Updated the business logic of the sample hook. #75

Closed mrinaudo-aws closed 1 year ago

mrinaudo-aws commented 1 year ago

Issue #, if available: Fix #72

Description of changes: Updated the business logic of the sample hook.

Contract tests excerpts

[...]
collected 24 items / 17 deselected / 7 selected

[...]/hook/handler_pre_create.py::contract_pre_create_success PASSED [ 14%]
[...]/hook/handler_pre_create.py::contract_pre_create_failed PASSED [ 28%]
[...]/hook/handler_pre_create.py::contract_pre_create_failed_unsupported_target SKIPPED [ 42%]
[...]/hook/handler_pre_update.py::contract_pre_update_success PASSED [ 57%]
[...]/hook/handler_pre_update.py::contract_pre_update_failed PASSED [ 71%]
[...]/hook/handler_pre_update.py::contract_pre_update_failed_unsupported_target SKIPPED [ 85%]
[...]/resource/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.