13493: Merge branch 'master' into 13493-federation-proxy
[arvados.git] / services / keep-web / server_test.go
index 63a84289c31b9bba94bfaa1215489320c387dd3f..6688cc2ee743ec53bf4f2ce15fdfcb4621f09253 100644 (file)
@@ -360,6 +360,7 @@ func (s *IntegrationSuite) TestMetrics(c *check.C) {
        // must not intercept that route.
        req, _ = http.NewRequest("GET", origin+"/metrics.json", nil)
        req.Host = strings.Replace(arvadostest.FooCollectionPDH, "+", "-", -1) + ".example.com"
+       req.Header.Set("Authorization", "Bearer "+arvadostest.ActiveToken)
        resp, err = http.DefaultClient.Do(req)
        c.Assert(err, check.IsNil)
        c.Check(resp.StatusCode, check.Equals, http.StatusNotFound)