21217: Fix "Authorization: OAuth2 ..." test to actually test that.
authorTom Clegg <tom@curii.com>
Thu, 30 Nov 2023 14:57:21 +0000 (09:57 -0500)
committerTom Clegg <tom@curii.com>
Thu, 30 Nov 2023 14:57:21 +0000 (09:57 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

services/keep-web/handler_test.go

index 5e81f3a01e44d0c92e277e46972b20ccadcb570f..eba682149a8d2d36b25c32a41a0d0101706a8642 100644 (file)
@@ -328,9 +328,10 @@ func (s *IntegrationSuite) TestVhostViaAuthzHeaderOAuth2(c *check.C) {
        s.doVhostRequests(c, authzViaAuthzHeaderOAuth2)
 }
 func authzViaAuthzHeaderOAuth2(r *http.Request, tok string) int {
-       r.Header.Add("Authorization", "Bearer "+tok)
+       r.Header.Add("Authorization", "OAuth2 "+tok)
        return http.StatusUnauthorized
 }
+
 func (s *IntegrationSuite) TestVhostViaAuthzHeaderBearer(c *check.C) {
        s.doVhostRequests(c, authzViaAuthzHeaderBearer)
 }