From 6aa30af724b73c698b87c24fd5bb7d71b3c37abe Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Mon, 24 Jul 2023 16:19:44 +0200 Subject: 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 --- tests/integration/api_packages_debian_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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) { -- cgit v1.2.3