mirror of
1
Fork 0
forgejo/services/webhook
KN4CK3R 4fcae3d06d
Add tests for all webhooks (#16214)
* Added tests for MS Teams.

* Added tests for Dingtalk.

* Added tests for Telegram.

* Added tests for Feishu.

* Added tests for Discord.

* Added tests for closed issue and pullrequest comment.

* Added tests for Matrix.

* Trim all spaces.

* Added tests for Slack.

* Added JSONPayload tests.

* Added general tests.

* Replaced duplicated code.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-06-20 22:12:19 -04:00
..
deliver.go fix webhook timeout bug (#15613) 2021-04-25 21:48:12 +03:00
deliver_test.go Move webhook type from int to string (#13664) 2020-12-08 11:41:14 +01:00
dingtalk.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
dingtalk_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
discord.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
discord_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
feishu.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
feishu_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
general.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
general_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
main_test.go Move webhook type from int to string (#13664) 2020-12-08 11:41:14 +01:00
matrix.go Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
matrix_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
msteams.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
msteams_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
payloader.go Move webhook type from int to string (#13664) 2020-12-08 11:41:14 +01:00
slack.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
slack_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
telegram.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
telegram_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
webhook.go fix a small nit (#14769) 2021-02-22 19:54:01 +01:00
webhook_test.go Move webhook type from int to string (#13664) 2020-12-08 11:41:14 +01:00