1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/tests/unit/plugins/modules
patchback[bot] e3e3682eb3
move conversion of data to json in slack API handling (#1101) (#1120)
* move conversion of data to json in slack API handling

at one point in do_notify_slack, we do operations on the payload
variable assuming it's a dict, but it's not: it's a json encoded string.

it's useful to operate on the payload as a dict rather than a string, so
solve this problem by moving the jsonify call to right before sending
the payload to the slack API.

fixes #1097

* add changelog fragment

* Update changelogs/fragments/1101-slack-ts-fix.yaml

Co-authored-by: Felix Fontein <felix@fontein.de>

* return payload as a json encoded string for backwards compatibility

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit b5b5410575)

Co-authored-by: Andreas Lutro <anlutro@gmail.com>
2020-10-19 11:33:03 +03:00
..
cloud kubevirt: Re-enable unit tests (#1070) (#1075) 2020-10-12 12:41:36 +02:00
database postgresql_ext: fix module's failing when available ext versions contain a pure string (#1099) (#1104) 2020-10-16 12:15:54 +03:00
messaging Move modules and module_utils unit tests to correct place (#81) 2020-03-31 10:42:38 +02:00
monitoring sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
net_tools nmcli: add idempotent support for any kinds of connections (#562) 2020-06-30 05:43:39 +02:00
notification move conversion of data to json in slack API handling (#1101) (#1120) 2020-10-19 11:33:03 +03:00
packaging sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
remote_management sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
source_control gitlab_project: add support for merge_method on projects (#636) 2020-07-14 20:17:46 +05:30
storage sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
system solaris_zone: fix zone configuration with python3 (#1082) (#1096) 2020-10-15 09:52:14 +02:00
web_infrastructure sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
__init__.py Move modules and module_utils unit tests to correct place (#81) 2020-03-31 10:42:38 +02:00
conftest.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
utils.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00