[ARVADOS] updated: b02577b15b33f134b0f8481f4da6812d2b6372ba
Git user
git at public.curoverse.com
Tue Jun 27 13:54:28 EDT 2017
Summary of changes:
services/ws/server_test.go | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
via b02577b15b33f134b0f8481f4da6812d2b6372ba (commit)
from 5c860fdbf28128e7d11a9dff8b5c30777c2cbfeb (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 b02577b15b33f134b0f8481f4da6812d2b6372ba
Author: Tom Clegg <tom at curoverse.com>
Date: Tue Jun 27 13:53:55 2017 -0400
11901: Try more tokens in 404 test.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curoverse.com>
diff --git a/services/ws/server_test.go b/services/ws/server_test.go
index a0c4c8c..3e19b69 100644
--- a/services/ws/server_test.go
+++ b/services/ws/server_test.go
@@ -93,10 +93,12 @@ func (s *serverSuite) TestHealthDisabled(c *check.C) {
defer s.srv.Close()
s.srv.WaitReady()
- req, err := http.NewRequest("GET", "http://"+s.srv.listener.Addr().String()+"/_health/ping", nil)
- c.Assert(err, check.IsNil)
- req.Header.Add("Authorization", "Bearer "+arvadostest.ManagementToken)
- resp, err := http.DefaultClient.Do(req)
- c.Check(err, check.IsNil)
- c.Check(resp.StatusCode, check.Equals, http.StatusNotFound)
+ for _, token := range []string{"", "foo", arvadostest.ManagementToken} {
+ req, err := http.NewRequest("GET", "http://"+s.srv.listener.Addr().String()+"/_health/ping", nil)
+ c.Assert(err, check.IsNil)
+ req.Header.Add("Authorization", "Bearer "+token)
+ resp, err := http.DefaultClient.Do(req)
+ c.Check(err, check.IsNil)
+ c.Check(resp.StatusCode, check.Equals, http.StatusNotFound)
+ }
}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list