You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/tests
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
3 weeks ago
..
e2e disable gravatar in test (#32529) 3 months ago
fuzz Fix fuzz test (#33156) (#33158) 1 month ago
gitea-lfs-meta Test views of LFS files (#22196) 2 years ago
gitea-repositories-meta Use batch database operations instead of one by one to optimze api pulls (#32680) 2 months ago
integration Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
testdata/data Add artifacts test fixture (#30300) 4 months ago
mssql.ini.tmpl Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
mysql.ini.tmpl Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
pgsql.ini.tmpl Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
sqlite.ini.tmpl Add tests for webhook and fix some webhook bugs (#33396) (#33442) 3 weeks ago
test_utils.go Improve testing and try to fix MySQL hanging (#32515) 3 months ago