[ARVADOS] updated: 1.3.0-3060-gcf0dfaa44

Git user git at public.arvados.org
Tue Sep 1 14:48:18 UTC 2020


Summary of changes:
 services/keep-web/s3_test.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

       via  cf0dfaa4494d591bb34c2fa23589061f4d89d0aa (commit)
      from  0ff4ed45a7ab1730118eadfb92ddea7d332f0328 (commit)

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 cf0dfaa4494d591bb34c2fa23589061f4d89d0aa
Author: Tom Clegg <tom at tomclegg.ca>
Date:   Tue Sep 1 10:47:17 2020 -0400

    Check Content-Length header in HeadObject response.
    
    refs #16596
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at tomclegg.ca>

diff --git a/services/keep-web/s3_test.go b/services/keep-web/s3_test.go
index c6d53238e..8140197e0 100644
--- a/services/keep-web/s3_test.go
+++ b/services/keep-web/s3_test.go
@@ -154,9 +154,10 @@ func (s *IntegrationSuite) testS3GetObject(c *check.C, bucket *s3.Bucket, prefix
 	c.Check(err, check.IsNil)
 
 	// HeadObject
-	exists, err = bucket.Exists(prefix + "sailboat.txt")
+	resp, err := bucket.Head(prefix+"sailboat.txt", nil)
 	c.Check(err, check.IsNil)
-	c.Check(exists, check.Equals, true)
+	c.Check(resp.StatusCode, check.Equals, http.StatusOK)
+	c.Check(resp.ContentLength, check.Equals, int64(4))
 }
 
 func (s *IntegrationSuite) TestS3CollectionPutObjectSuccess(c *check.C) {

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list