arxiv-base icon indicating copy to clipboard operation
arxiv-base copied to clipboard

[WIP] OpenID connect client library - eyeing toward deploying keycloak

Open ntai-arxiv opened this issue 1 year ago • 2 comments

The test in test_keycloak.py works, bet there are 2 fixture problems.

selenium web driver opens a web page in test mode, feed the user name/password. In short, the test mimics user interaction and I don't think this works in github's pytest run.

In general, how do we do the browser based testing?

Second is the keycloak itself. It is running in arxiv-development, and expect it to have a "testuser", so it may be okay but open to suggestions.

The test at the moment is minimal. It needs at least failing login, but that's after the above things sorted out, and hence this is a WIP.

ntai-arxiv avatar Jul 27 '24 13:07 ntai-arxiv

Can this run keycloak in a subrpocess just like it is running flask? Maybe with something like https://pypi.org/project/pytest-docker/ ?

bdc34 avatar Jul 29 '24 21:07 bdc34

The tests need to pass, if the tests are not yet ready they could have be marked to skip with a note as to why.

bdc34 avatar Aug 15 '24 23:08 bdc34