projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
10315: Enhanced performance when writing lots of small files without flushing by...
[arvados.git]
/
services
/
arv-git-httpd
/
gitolite_test.go
diff --git
a/services/arv-git-httpd/gitolite_test.go
b/services/arv-git-httpd/gitolite_test.go
index 219eb11cda2141f45106e9ffc4a551b241767345..38ff2309c1d2a3a57def17ac588276dab204e265 100644
(file)
--- a/
services/arv-git-httpd/gitolite_test.go
+++ b/
services/arv-git-httpd/gitolite_test.go
@@
-7,6
+7,7
@@
import (
"strings"
"git.curoverse.com/arvados.git/sdk/go/arvados"
"strings"
"git.curoverse.com/arvados.git/sdk/go/arvados"
+ "git.curoverse.com/arvados.git/sdk/go/arvadostest"
check "gopkg.in/check.v1"
)
check "gopkg.in/check.v1"
)
@@
-44,12
+45,13
@@
func (s *GitoliteSuite) SetUpTest(c *check.C) {
s.tmpRepoRoot = s.gitoliteHome + "/repositories"
s.Config = &Config{
Client: arvados.Client{
s.tmpRepoRoot = s.gitoliteHome + "/repositories"
s.Config = &Config{
Client: arvados.Client{
- APIHost:
os.Getenv("ARVADOS_API_HOST"
),
+ APIHost:
arvadostest.APIHost(
),
Insecure: true,
},
Insecure: true,
},
- Listen: ":0",
- GitCommand: "/usr/share/gitolite3/gitolite-shell",
- RepoRoot: s.tmpRepoRoot,
+ Listen: ":0",
+ GitCommand: "/usr/share/gitolite3/gitolite-shell",
+ GitoliteHome: s.gitoliteHome,
+ RepoRoot: s.tmpRepoRoot,
}
s.IntegrationSuite.SetUpTest(c)
}
s.IntegrationSuite.SetUpTest(c)
@@
-57,9
+59,6
@@
func (s *GitoliteSuite) SetUpTest(c *check.C) {
// (*IntegrationTest)SetUpTest() -- see 2.2.4 at
// http://gitolite.com/gitolite/gitolite.html
runGitolite("gitolite", "setup")
// (*IntegrationTest)SetUpTest() -- see 2.2.4 at
// http://gitolite.com/gitolite/gitolite.html
runGitolite("gitolite", "setup")
-
- os.Setenv("GITOLITE_HTTP_HOME", s.gitoliteHome)
- os.Setenv("GL_BYPASS_ACCESS_CHECKS", "1")
}
func (s *GitoliteSuite) TearDownTest(c *check.C) {
}
func (s *GitoliteSuite) TearDownTest(c *check.C) {