[db] support adding repos protected with basic auth

This commit is contained in:
Torsten Grote
2023-09-27 11:39:08 +02:00
committed by Michael Pöhn
parent 413d9fcfba
commit 7d64492d92
7 changed files with 163 additions and 86 deletions

View File

@@ -132,12 +132,7 @@ internal class RepoManagerAddAllIntegrationTest {
private suspend fun addRepo(url: String) {
log.info("Fetching $url")
repoManager.fetchRepositoryPreview(
url = url,
username = null,
password = null,
proxy = null,
)
repoManager.fetchRepositoryPreview(url = url, proxy = null)
repoManager.addRepoState.test(timeout = 15.seconds) {
val fetchState = awaitFinalFetchState()
if (fetchState is Fetching && fetchState.canAdd) {