projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
7661: added test with only_pdh (not working yet)
[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 84587302c7ac3a4a13c832c68fda36608c49a434..aa710262b499b9c0a5e5168a8a69fc039ddeca36 100644
(file)
--- a/
services/arv-git-httpd/gitolite_test.go
+++ b/
services/arv-git-httpd/gitolite_test.go
@@
-70,7
+70,7
@@
func (s *GitoliteSuite) TestFetchUnreadable(c *check.C) {
}
func (s *GitoliteSuite) TestPush(c *check.C) {
}
func (s *GitoliteSuite) TestPush(c *check.C) {
- err := s.RunGit(c, activeToken, "push", "active/foo.git")
+ err := s.RunGit(c, activeToken, "push", "active/foo.git"
, "master:gitolite-push"
)
c.Check(err, check.Equals, nil)
// Check that the commit hash appears in the gitolite log, as
c.Check(err, check.Equals, nil)
// Check that the commit hash appears in the gitolite log, as
@@
-88,6
+88,6
@@
func (s *GitoliteSuite) TestPush(c *check.C) {
}
func (s *GitoliteSuite) TestPushUnwritable(c *check.C) {
}
func (s *GitoliteSuite) TestPushUnwritable(c *check.C) {
- err := s.RunGit(c, spectatorToken, "push", "active/foo.git")
+ err := s.RunGit(c, spectatorToken, "push", "active/foo.git"
, "master:gitolite-push-fail"
)
c.Check(err, check.ErrorMatches, `.*HTTP code = 403.*`)
}
c.Check(err, check.ErrorMatches, `.*HTTP code = 403.*`)
}