-
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
Simplify OpenQA::WebAPI::Auth::OpenID #4156
Conversation
okurz
commented
Aug 30, 2021
- Use signatures in OpenQA::WebAPI::Auth::OpenID
- Simplify OpenQA::WebAPI::Auth::OpenID
I wouldn't put too much effort into this. With OpenID Connect support coming to |
I agree. But the above refactoring was really just a 10 minute effort while actively reviewing #4151 |
f5e9b01
to
fbeca97
Compare
fbeca97
to
c721bf8
Compare
c721bf8
to
421de1d
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Unfortunately the patch coverage doesn't look great. So at least also test it manually. |
I tested locally with
and hit
likely we should try to increase the test coverage with automatic tests. |
421de1d
to
c97c77d
Compare
This comment was marked as resolved.
This comment was marked as resolved.
I extended unit tests also for the method _handle_verified but I am still running into
when running something like |
This comment was marked as resolved.
This comment was marked as resolved.
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.
The patch coverage check is still complaining but the change looks generally good (code is mainly moved around).
That reminds me, i've replaced OpenID with OpenID Connect in Cavil now. The change can probably be replicated for openQA to simplify |
That looks nice. Would be cool if you could propose a PR doing that. |
Yes, we should extend test coverage first. If anyone of you fancies doing so be my guest otherwise a candidate for a mob session. |
Sure, once it's in the backlog. 😉 https://progress.opensuse.org/issues/89023 |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
1 similar comment
This comment was marked as resolved.
This comment was marked as resolved.
f947af2
to
93f0cb4
Compare
f64a143
to
78a9e47
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4156 +/- ##
==========================================
+ Coverage 98.44% 98.49% +0.04%
==========================================
Files 393 394 +1
Lines 38631 38657 +26
==========================================
+ Hits 38032 38074 +42
+ Misses 599 583 -16 ☔ View full report in Codecov by Sentry. |
68abe94
to
fca4e7f
Compare
Fixed the problem #4156 (comment) with help from @Martchus . I shouldn't try to call member methods on the object when those are actually called on the controller. Now properly calling those functions as free functions with |
Tested with ``` rm -rf cover_db/ && cover -coverage stmt -test -make 'prove -Ilib t/03-auth-openid.t; echo 0' && html2text cover_db/lib-OpenQA-WebAPI-Auth-OpenID-pm.html ``` this can be used to extend further and cover more paths.
Everything good except patch coverage. As agreed in before merging based on manual test results. |