-
Notifications
You must be signed in to change notification settings - Fork 208
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
Improve OpenID auth handling on not_openid response #5952
Conversation
2d8be5c
to
67549de
Compare
06f453e
to
76f7884
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5952 +/- ##
=======================================
Coverage 98.75% 98.76%
=======================================
Files 396 396
Lines 38983 38991 +8
=======================================
+ Hits 38499 38510 +11
+ Misses 484 481 -3 ☔ View full report in Codecov by Sentry. |
This comment was marked as resolved.
This comment was marked as resolved.
76f7884
to
40371f2
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
7d75325
to
4e21c9d
Compare
4e21c9d
to
c6cc29a
Compare
c6cc29a
to
11e55fa
Compare
This comment was marked as resolved.
This comment was marked as resolved.
737dd8c
to
fcc5b2d
Compare
Enhanced error handling by including OpenID provider URI in error messages for invalid data. The error seems sporadic and as part of the research on https://progress.opensuse.org/issues/167266 we can consider this not a severe problem. Because of the sensitivity of the arguments, it is not feasible to add any info from the available data for later debbugging. But at least now we can tell which server cause problems. Signed-off-by: Ioannis Bonatakis <[email protected]>
fcc5b2d
to
8ce5afe
Compare
$c->set_always( | ||
req => Test::MockObject->new->set_always( | ||
params => Test::MockObject->new->set_always(pairs => ['openid.op_endpoint', 'https://www.opensuse.org/openid/']) | ||
)->set_always(url => Test::MockObject->new->set_always(base => 'openqa'))) | ||
->set_always( | ||
app => Test::MockObject->new->set_always(config => {})->set_always(log => Test::MockObject->new->set_true('debug'))) | ||
->set_true('flash'); |
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.
can you reduce the duplication here?
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.
I tried. but I didnt find a way. I couldnt just change the set_always(log => Test::MockObject->new->set_true('debug'))
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.
I can leave it as it was but this was confusing to me. tests produces positive negatives. for instance:
if I replace error
with debug
in https://github.com/os-autoinst/openQA/pull/5952/files#diff-dc3d35214db1365be81906f2eabbaae8a531b3ab984c06eff8fd425f3cb40f2dR37 still works, it was before.
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.
Ok, then leave this for now
Enhanced error handling by including OpenID provider URI in error messages for
invalid data. The error seems sporadic and as part of the research on
https://progress.opensuse.org/issues/167266 we can consider this not a severe
problem. Because of the sensitivity of the arguments, it is not feasible to
add any info from the available data for later debbugging. But at least now
we can tell which server cause problems.