Skip to content
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

Apply Python 3 changes to grid_openid allowing test instantiation. #106

Closed
wants to merge 1 commit into from

Conversation

albu-diku
Copy link

@albu-diku albu-diku commented Aug 13, 2024

Make use of a need to cover the basic operation of this code for some
minimal changes that allow the server it implements to be trivial to
instantiate directly as an object. Use this ability to do so under test
and add the necessary wiring to issue a single top-level request from
the server and validate it responds with no internal issues logged.

Note that a top-level request was not previously succeeding due to
certain values being errantly dereferenced (though the code was clearly
written to have been safe under these circumstances). Fix this here.

@albu-diku albu-diku mentioned this pull request Aug 13, 2024
@albu-diku albu-diku marked this pull request as ready for review August 14, 2024 13:30
@albu-diku albu-diku force-pushed the test/grid_openid-py3 branch from 7a2fce1 to e781a7a Compare August 14, 2024 13:49
@albu-diku albu-diku changed the title Apply Python 3 changes to grid_openid and allow test instantiation. Apply Python 3 changes to grid_openid allowing test instantiation. Aug 14, 2024
requirements.txt Outdated Show resolved Hide resolved
mig/shared/compat.py Outdated Show resolved Hide resolved
Copy link
Contributor

@jonasbardino jonasbardino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but it requires thorough actual battle testing before roll-out.

@jonasbardino jonasbardino added enhancement New feature or request unit test Code and infrastructure related to unit testing labels Aug 20, 2024
@jonasbardino jonasbardino added this to the OpenID Connect Support milestone Aug 20, 2024
@jonasbardino
Copy link
Contributor

Added the OpenID Connect milestone because unit test coverage of the old OpenID 2.0 service is important in the development of the replacement.

@albu-diku
Copy link
Author

Added the OpenID Connect milestone because unit test coverage of the old OpenID 2.0 service is important in the development of the replacement.

Thanks - that was definitely the reason to do this, and I remember mentionig directly, but doing this predated the tracking issue hence not being listed there already. No time like the present to start and appreciate your adding it.

@albu-diku albu-diku changed the base branch from test/enforce-clean-error-log-and-add-after_each to edge August 26, 2024 11:51
@albu-diku albu-diku force-pushed the test/grid_openid-py3 branch 2 times, most recently from 4a54200 to e9516e6 Compare August 28, 2024 08:54
@albu-diku albu-diku changed the base branch from edge to refactor/split-up-test-support-library August 28, 2024 08:56
@albu-diku albu-diku changed the base branch from refactor/split-up-test-support-library to test/server-support September 13, 2024 13:27
@albu-diku albu-diku changed the base branch from test/server-support to edge September 22, 2024 13:04
@albu-diku albu-diku force-pushed the test/grid_openid-py3 branch from 68f7a7c to 8c65420 Compare October 7, 2024 09:09
@albu-diku albu-diku marked this pull request as draft October 16, 2024 19:17
Make use of a need to cover the basic operation of this code for some
minimal changes that allow the server it implements to be trivial to
instantiate directly as an object. Use this ability to do so under test
and add the necessary wiring to issue a single top-level request from
the server and validate it responds with no internal issues logged.

Note that a top-level request was not previously succeedding due to
certain values being errantly dereferenced (though the code was clearly
written to have been safe under these circumstances). Fix this here.

---

align requirements with extant reality

ensure server is closed between tests and validate with a status 404 case

pull the test synchronisation up a level thus out of the server logic

ensure the server is fully managed inside test case arranged thread

improve naming

make the class configurable an extend documentation

inline escape_hmtl

fixup

fixup

fixup

fixup

remove unnecessary version swizzle

make use of the same Py3 compatible openid library as rocky 9

fixup
@albu-diku albu-diku force-pushed the test/grid_openid-py3 branch from 8c65420 to a45e92a Compare November 6, 2024 18:23
@albu-diku albu-diku marked this pull request as ready for review November 7, 2024 09:27
@albu-diku albu-diku added rebased and removed rebased labels Nov 7, 2024
@albu-diku albu-diku closed this Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request unit test Code and infrastructure related to unit testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants