aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeter Verraedt <peter.verraedt@gmail.com>2023-07-21 21:41:38 +0200
committerGitHub <noreply@github.com>2023-07-21 19:41:38 +0000
commit48cd82b759bbd1f60bd7a39026fb80159813448d (patch)
tree86b59a0c8542e0e2d756b4e32caae61d5fc7bc22 /tests
parent52fb9367734100847249d074e2bc17f2aa91053e (diff)
downloadgitea-48cd82b759bbd1f60bd7a39026fb80159813448d.tar.gz
gitea-48cd82b759bbd1f60bd7a39026fb80159813448d.zip
Fix version in rpm repodata/primary.xml.gz (#26009)
The version listed in rpm repodata should only contain the rpm version (1.0.0) and not the combination of version and release (1.0.0-2). We correct this behaviour in primary.xml.gz, filelists.xml.gz and others.xml.gz. Signed-off-by: Peter Verraedt <peter@verraedt.be>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/api_packages_rpm_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/integration/api_packages_rpm_test.go b/tests/integration/api_packages_rpm_test.go
index e66460899f..fc4c4d1c4b 100644
--- a/tests/integration/api_packages_rpm_test.go
+++ b/tests/integration/api_packages_rpm_test.go
@@ -196,15 +196,15 @@ gpgkey=%sapi/packages/%s/rpm/repository.key`, user.Name, user.Name, setting.AppN
switch d.Type {
case "primary":
assert.EqualValues(t, 718, d.Size)
- assert.EqualValues(t, 1731, d.OpenSize)
+ assert.EqualValues(t, 1729, d.OpenSize)
assert.Equal(t, "repodata/primary.xml.gz", d.Location.Href)
case "filelists":
- assert.EqualValues(t, 258, d.Size)
- assert.EqualValues(t, 328, d.OpenSize)
+ assert.EqualValues(t, 257, d.Size)
+ assert.EqualValues(t, 326, d.OpenSize)
assert.Equal(t, "repodata/filelists.xml.gz", d.Location.Href)
case "other":
- assert.EqualValues(t, 308, d.Size)
- assert.EqualValues(t, 396, d.OpenSize)
+ assert.EqualValues(t, 306, d.Size)
+ assert.EqualValues(t, 394, d.OpenSize)
assert.Equal(t, "repodata/other.xml.gz", d.Location.Href)
}
}