projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67c187d
)
21217: Fix "Authorization: OAuth2 ..." test to actually test that.
author
Tom Clegg <tom@curii.com>
Thu, 30 Nov 2023 14:57:21 +0000
(09:57 -0500)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/services/keep-web/handler_test.go
b/services/keep-web/handler_test.go
index 5e81f3a01e44d0c92e277e46972b20ccadcb570f..eba682149a8d2d36b25c32a41a0d0101706a8642 100644
(file)
--- a/
services/keep-web/handler_test.go
+++ b/
services/keep-web/handler_test.go
@@
-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)
}