-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
re-enable router metrics test #17753
re-enable router metrics test #17753
Conversation
pkg/router/metrics/metrics.go
Outdated
@@ -99,10 +104,13 @@ func (l Listener) authorizeHandler(protected http.Handler) http.Handler { | |||
scopedRecord.User = user | |||
authorized, reason, err := l.Authorizer.Authorize(scopedRecord) | |||
if authorized != authorizer.DecisionAllow || err != nil { | |||
fmt.Printf("#### 1f\n") | |||
if !ok || errors.IsUnauthorized(err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checking unauthorized on this error isn't correct since you get that when the router can't issue a SAR.
ok
is the wrong ok
post-rebase. I'll fix that up. Once I fix those two up, this should be ok.
I think I found it. I'll fix up the pull tomorrow. |
de921c0
to
905f605
Compare
/retest |
Test passed. /assign @smarterclayton |
905f605
to
02c5991
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, enj The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/retest |
02c5991
to
f6b0568
Compare
Automatic merge from submit-queue (batch tested with PRs 16281, 17293, 17717, 17753, 17830). |
fixes #17752
Add debugging for now