[ARVADOS] updated: 1.1.4-531-g424298694

Git user git at public.curoverse.com
Tue Jul 3 14:18:49 EDT 2018


Summary of changes:
 lib/controller/federation_test.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

       via  424298694945c9f66676bd401753be44f6fc5fa8 (commit)
      from  64a357242cc7ba9fb877a9b3d622160318098c5c (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 424298694945c9f66676bd401753be44f6fc5fa8
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date:   Tue Jul 3 14:17:42 2018 -0400

    13493: Check forwarded token.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>

diff --git a/lib/controller/federation_test.go b/lib/controller/federation_test.go
index 9ae708923..08c8e8f53 100644
--- a/lib/controller/federation_test.go
+++ b/lib/controller/federation_test.go
@@ -171,7 +171,9 @@ func (s *FederationSuite) TestRemoteWithTokenInQuery(c *check.C) {
 	req := httptest.NewRequest("GET", "/arvados/v1/workflows/"+strings.Replace(arvadostest.WorkflowWithDefinitionYAMLUUID, "zzzzz-", "zmock-", 1)+"?api_token="+arvadostest.ActiveToken, nil)
 	s.testRequest(req)
 	c.Assert(len(s.remoteMockRequests), check.Equals, 1)
-	c.Check(s.remoteMockRequests[0].URL.String(), check.Not(check.Matches), `.*api_token=.*`)
+	pr := s.remoteMockRequests[0]
+	c.Check(pr.URL.String(), check.Not(check.Matches), `.*api_token=.*`)
+	c.Check(pr.Header.Get("Authorization"), check.Equals, "Bearer "+arvadostest.ActiveToken)
 }
 
 func (s *FederationSuite) TestUpdateRemoteWorkflow(c *check.C) {

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list