1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 05:09:12 +00:00
community.general/changelogs/fragments
patchback[bot] 42c20a754b
[PR #11488/5e0fd120 backport][stable-12] ModuleHelper: ensure compatibility with ModuleTestCase (#11518)
ModuleHelper: ensure compatibility with `ModuleTestCase` (#11488)

* ModuleHelper: ensure compatibility with `ModuleTestCase`.

This change allows to configure the `module_fails_on_exception` decorator by passing a tuple of exception types that should not be handled by the decorator itself. In the context of `ModuleTestCase`, use `(AnsibleExitJson, AnsibleFailJson)` to let them pass through the decorator without modification.



* Another approach allowing user-defined exception types to pass through the decorator. When the decorator should have no arguments at all, we must hard code the name of the attribute that is looked up on self.



* Approach that removes decorator parametrization and relies on an object/class variable named `unhandled_exceptions`.



* context manager implemented that allows to pass through some exception types



* Update changelogs/fragments/11488-mh-ensure-compatibiliy-with-module-tests.yml



* Exception placeholder added



---------




(cherry picked from commit 5e0fd1201c)

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>
Co-authored-by: Christoph Fiehe <cfiehe@users.noreply.github.com>
Co-authored-by: Fiehe Christoph <c.fiehe@eurodata.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-02-18 07:26:47 +01:00
..
.keep Rename changelogs/fragments/.empty -> changelogs/fragments/.keep 2020-08-07 08:17:57 +02:00
5117-maven-artifact-snapshot-resolution.yml [PR #11501/ed7ccbe3 backport][stable-12] maven_artifact: resolve SNAPSHOT to latest using snapshot metadata block (#11508) 2026-02-14 21:14:36 +01:00
11430-fix-keycloak-client-diff-for-flow-overrides.yml [PR #11455/af4dbafe backport][stable-12] keycloak_client: fix diff for keycloak client auth flow overrides (#11477) 2026-02-07 16:34:29 +01:00
11453-keycloak-client-protocol-mapper-ids.yml [PR #11454/b236772e backport][stable-12] keycloak_client: remove id's as change from diff for protocol mappers (#11469) 2026-02-05 17:29:29 +01:00
11486-seport-dccp-sctp.yaml [PR #11486/c05c3133 backport][stable-12] seport: Add support for dccp and sctp protocols (#11509) 2026-02-14 21:14:44 +01:00
11488-mh-ensure-compatibiliy-with-module-tests.yml [PR #11488/5e0fd120 backport][stable-12] ModuleHelper: ensure compatibility with ModuleTestCase (#11518) 2026-02-18 07:26:47 +01:00
11492-python_requires_info.yml [PR #11495/88adca3f backport][stable-12] python_requirements_info: use importlib.metadata when available (#11496) 2026-02-11 07:12:04 +01:00
11503-keycloak-group-search-optimization.yml [PR #11503/85a0deee backport][stable-12] keycloak module utils: group search optimization (#11511) 2026-02-14 21:14:52 +01:00
11504-redfish-info-add-results-to-return.yml [PR #11504/8729f563 backport][stable-12] Update check_availability_service to return data instead of boolean (#11510) 2026-02-14 21:14:07 +01:00
fix-nsupdate-keyring.yml [PR #11461/4bbedfd7 backport][stable-12] nsupdate: fix missing keyring initialization without TSIG auth (#11516) 2026-02-18 06:57:33 +01:00
keycloak-client-add-missing-fields.yml [PR #11473/df6d6269 backport][stable-12] keycloak_client: add valid_post_logout_redirect_uris and backchannel_logout_url (#11475) 2026-02-07 16:34:46 +01:00
keycloak-realm-key-keyerror-bugfix.yml [PR #11470/10681731 backport][stable-12] keycloak_realm_key: handle missing config fields for default keys (#11478) 2026-02-07 16:34:22 +01:00
keycloak-url-encode-query-params.yml [PR #11472/c41de53d backport][stable-12] keycloak: URL-encode query parameters for usernames with special characters (#11474) 2026-02-06 20:36:02 +01:00