[ARVADOS] updated: ae2478d6d09d2ab2eac1acceab8342f4f900ec8b

git at public.curoverse.com git at public.curoverse.com
Mon Aug 10 13:08:05 EDT 2015


Summary of changes:
 services/arv-git-httpd/server_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

  discards  a7c537fe1345a7a43edf5c08850358ee5f291f10 (commit)
       via  ae2478d6d09d2ab2eac1acceab8342f4f900ec8b (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (a7c537fe1345a7a43edf5c08850358ee5f291f10)
            \
             N -- N -- N (ae2478d6d09d2ab2eac1acceab8342f4f900ec8b)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit ae2478d6d09d2ab2eac1acceab8342f4f900ec8b
Author: Tom Clegg <tom at curoverse.com>
Date:   Mon Aug 10 13:07:58 2015 -0400

    6827: Test logging handler with short token.

diff --git a/services/arv-git-httpd/server_test.go b/services/arv-git-httpd/server_test.go
index 77c4d3b..79cb5fc 100644
--- a/services/arv-git-httpd/server_test.go
+++ b/services/arv-git-httpd/server_test.go
@@ -80,7 +80,21 @@ func (s *IntegrationSuite) TestExpiredToken(c *check.C) {
 
 func (s *IntegrationSuite) TestInvalidToken(c *check.C) {
 	for _, repo := range []string{"active/foo.git", "active/foo/.git"} {
-		err := s.runGit(c, "no-such-token-in-the-system", "fetch", repo)
+		err := s.runGit(c, "s3cr3tp at ssw0rd", "fetch", repo)
+		c.Assert(err, check.ErrorMatches, `.* 500 while accessing.*`)
+	}
+}
+
+func (s *IntegrationSuite) TestShortToken(c *check.C) {
+	for _, repo := range []string{"active/foo.git", "active/foo/.git"} {
+		err := s.runGit(c, "s3cr3t", "fetch", repo)
+		c.Assert(err, check.ErrorMatches, `.* 500 while accessing.*`)
+	}
+}
+
+func (s *IntegrationSuite) TestShortTokenBadReq(c *check.C) {
+	for _, repo := range []string{"bogus"} {
+		err := s.runGit(c, "s3cr3t", "fetch", repo)
 		c.Assert(err, check.ErrorMatches, `.* 500 while accessing.*`)
 	}
 }

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list