summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-07-24 16:19:44 +0200
committerGitHub <noreply@github.com>2023-07-24 16:19:44 +0200
commit6aa30af724b73c698b87c24fd5bb7d71b3c37abe (patch)
treeb0a94897d12d26cadf7df07e54e5057fec04aaa2 /tests
parent4211efe8b7a0b38420da5c5d4f287a8d466aedc2 (diff)
downloadgitea-6aa30af724b73c698b87c24fd5bb7d71b3c37abe.tar.gz
gitea-6aa30af724b73c698b87c24fd5bb7d71b3c37abe.zip
Fix handling of Debian files with trailing slash (#26087)
Fixes #26022 - Fix handling of files with trailing slash - Fix handling of duplicate package file errors - Added test for both
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/api_packages_debian_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/integration/api_packages_debian_test.go b/tests/integration/api_packages_debian_test.go
index 3e25acd8cf..2d92b93159 100644
--- a/tests/integration/api_packages_debian_test.go
+++ b/tests/integration/api_packages_debian_test.go
@@ -144,6 +144,10 @@ func TestPackageDebian(t *testing.T) {
}
return seen
})
+
+ req = NewRequestWithBody(t, "PUT", uploadURL, createArchive(packageName, packageVersion, architecture))
+ AddBasicAuthHeader(req, user.Name)
+ MakeRequest(t, req, http.StatusBadRequest)
})
t.Run("Download", func(t *testing.T) {