[db] validate repo certificate

for now only for initial repos, but eventually we should validate for CoreRepository as well to prevent invalid certs from entering the DB by other means.
This commit is contained in:
Torsten Grote committed 2023-08-02 09:16:44 +02:00
1 parent 1abad97226
commit 43816ffe8d
3 files changed
+34 -12

No files matched your search

@@ -32,7 +32,7 @@ internal class RepositoryDaoTest : DbTest() {
address = getRandomString(),
mirrors = listOf(getRandomString(), getRandomString(), getRandomString()),
description = getRandomString(),
certificate = getRandomString(),
certificate = "abcdef", // not random, because format gets checked
version = Random.nextLong(),
enabled = Random.nextBoolean(),
weight = Random.nextInt(),