diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2025-01-29 19:09:48 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-30 03:09:48 +0000 |
commit | 75940a0191a24fa2ae412948cef7480c087dc2dd (patch) | |
tree | 44cbef73010e5414ae105b3949a68f57e736bf20 /tests/mysql.ini.tmpl | |
parent | 256b94e9e923edc806fca38c90507c8c1b93c691 (diff) | |
download | gitea-75940a0191a24fa2ae412948cef7480c087dc2dd.tar.gz gitea-75940a0191a24fa2ae412948cef7480c087dc2dd.zip |
Add tests for webhook and fix some webhook bugs (#33396)
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.
Diffstat (limited to 'tests/mysql.ini.tmpl')
-rw-r--r-- | tests/mysql.ini.tmpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/mysql.ini.tmpl b/tests/mysql.ini.tmpl index ec8307acc3..e2f2e1390a 100644 --- a/tests/mysql.ini.tmpl +++ b/tests/mysql.ini.tmpl @@ -28,6 +28,9 @@ TYPE = immediate [queue.push_update] TYPE = immediate +[queue.webhook_sender] +TYPE = immediate + [repository] ROOT = {{REPO_TEST_DIR}}tests/{{TEST_TYPE}}/gitea-{{TEST_TYPE}}-mysql/gitea-repositories @@ -118,3 +121,6 @@ REPLY_TO_ADDRESS = incoming+%{token}@localhost [actions] ENABLED = true + +[webhook] +ALLOWED_HOST_LIST = 127.0.0.1 |