-
Notifications
You must be signed in to change notification settings - Fork 108
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
Fix the section name in wait_for_oidc_server function #3415
Fix the section name in wait_for_oidc_server function #3415
Conversation
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.
While it seems that the test case you removed was flawed before, and breaks differently now that you added the missing return
... do we have test coverage of the failing OIDC connect case?
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.
do we have test coverage of the failing OIDC connect case?
I believe that Nikhil fixed the unit test so that it will now correctly detect the presence of the successful call (to the mock), and, likewise, it will detect the absence of such a call; however, apparently we don't have a test which exercises the case in which the wait fails.
It would also appear that we have no test coverage for wait_for_oidc_server()
.
So, @npalaska, are you up for adding some unit tests?
BTW, @npalaska, here are two more spots you might want to touch up: endpoint_configure.py and load_keycloak.sh
We do have a test called
I will add some test coverage for |
cb4c2af
to
17a0f70
Compare
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.
Nice work, Nikhil! (💯 coverage on shell.py
!!)
Remaining questions:
- Do we want more or different handling of the timeout in
shell.py
? - Shall we tighten up the endpoints stuff?
Or, should we just declare victory?
17a0f70
to
907b956
Compare
907b956
to
c13a82e
Compare
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.
Unfortunately, Mr Jenkins has expressed their displeasure:
Traceback (most recent call last):
File "/var/tmp/jenkins/tox/py39/lib/python3.9/site-packages/pbench/test/unit/server/auth/test_auth.py", line 456, in test_token_introspect_aud
assert str(exc.value.cause) == "Invalid audience", f"{exc.value.cause}"
AssertionError: Audience doesn't match
assert "Audience doesn't match" == 'Invalid audience'
- Invalid audience
- Audience doesn't match
For the record, though, this isn't "you" ... Siddardh's and Riya's builds failed the same way. We have a new latent bug or broken package dependency, apparently ... 😦 |
c13a82e
to
03f7feb
Compare
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.
It's a thing of beauty!
We missed this change earlier, our
wait_for_oidc_server
function wasn't working at all. We use[openid]
as a section name in our config file but thewait_for_oidc_server
function was still using[openid-connect]
which results in openid not configured error and we were silently ignoring it.