test: add HTTP basic authentication to git test server (#9407)

This commit is contained in:
Teppei Fukuda
2025-09-01 13:42:41 +04:00
committed by GitHub
parent aa7cf4387c
commit 6fa3849c10
4 changed files with 219 additions and 24 deletions

View File

@@ -27,10 +27,10 @@ import (
)
func setupGitRepository(t *testing.T, repo, dir string) *httptest.Server {
gs := gittest.NewServer(t, repo, dir)
gs := gittest.NewServer(t, repo, dir, gittest.Options{})
worktree := t.TempDir()
r := gittest.Clone(t, gs, repo, worktree)
r := gittest.Clone(t, gs, repo, worktree, gittest.Options{})
// git tag
gittest.SetTag(t, r, "v0.2.0")