gitea/services/webhook
Lunny Xiao 23971a77a0
Add tests for webhook and fix some webhook bugs (#33396) (#33442)
This PR created a mock webhook server in the tests and added integration
tests for generic webhooks.
It also fixes bugs in package webhooks and pull request comment
webhooks.

This also corrected an error on the package webhook. The previous
implementation uses a `User` struct as an organization, now it has been
corrected but it will not be consistent with the previous
implementation, some fields which not belong to the organization have
been removed.

Backport #33396
Backport part of #33337
2025-02-02 14:44:50 +08:00
..
deliver.go Support allowed hosts for migrations to work with proxy (#32025) 2024-09-11 05:47:00 +00:00
deliver_test.go Fix possible data race on tests (#30093) 2024-03-26 14:08:30 +00:00
dingtalk.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00
dingtalk_test.go Store webhook event in database (#29145) 2024-03-07 23:18:38 +01:00
discord.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00
discord_test.go Only provide the commit summary for Discord webhook push events (#32432) 2024-11-07 19:56:53 +00:00
feishu.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00
feishu_test.go Store webhook event in database (#29145) 2024-03-07 23:18:38 +01:00
general.go Refactor webhook (#31587) 2024-07-10 11:37:16 +00:00
general_test.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
matrix.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00
matrix_test.go Store webhook event in database (#29145) 2024-03-07 23:18:38 +01:00
msteams.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00
msteams_test.go Store webhook event in database (#29145) 2024-03-07 23:18:38 +01:00
notifier.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00
packagist.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00
packagist_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
payloader.go Refactor webhook (#31587) 2024-07-10 11:37:16 +00:00
slack.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00
slack_test.go Store webhook event in database (#29145) 2024-03-07 23:18:38 +01:00
telegram.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00
telegram_test.go Refactor webhook (#31587) 2024-07-10 11:37:16 +00:00
webhook.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00
webhook_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
wechatwork.go Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00