0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-31 15:56:21 +01:00
gitea/tests
Giteabot 4703e5270f
Ensure GetCSRF doesn't return an empty token (#32130) (#32157)
Backport #32130 by @wolfogre

Since page templates keep changing, some pages that contained forms with
CSRF token no longer have them.

It leads to some calls of `GetCSRF` returning an empty string, which
fails the tests. Like


3269b04d61/tests/integration/attachment_test.go (L62-L63)

The test did try to get the CSRF token and provided it, but it was
empty.

Co-authored-by: Jason Song <i@wolfogre.com>
2024-10-01 05:27:37 +00:00
..
e2e Enable more revive linter rules (#30608) 2024-04-22 11:48:42 +00:00
fuzz Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
gitea-lfs-meta
gitea-repositories-meta Fix agit automerge (#31207) (#31881) 2024-08-20 16:20:58 +00:00
integration Ensure GetCSRF doesn't return an empty token (#32130) (#32157) 2024-10-01 05:27:37 +00:00
testdata/data/attachments/a/0
mssql.ini.tmpl
mysql.ini.tmpl
pgsql.ini.tmpl
sqlite.ini.tmpl
test_utils.go Prevent update pull refs manually and will not affect other refs update (#31931) (#31955) 2024-09-02 18:28:00 +08:00