You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds end-to-end tests for the authorization functionality.
# Implementation details
- Modified `.gitignore` to ignore leftover config backup files
(unrelated to this change but useful)
- Updated testing documentation to include instructions for running e2e
tests
- Added a JWK server container to `docker-compose.yaml` which is needed
for e2e testing JWK auth
- Added a `tests/e2e/configuration/lightspeed-stack-auth-jwk.yaml`
config file for lightspeed-stack with JWK auth enabled to be used in
the JWK e2e tests
- Removed hard dependency on the `docker` command in e2e tests and
instead use the `CONTAINER_CMD` environment variable if set (to allow
using `podman` instead of `docker`)
- Added `tests/e2e/features/authorization_jwk.feature` which contains
the actual e2e tests for JWK authz
- Added `tests/e2e/features/steps/jwk_auth.py` which implements the
steps for the JWK authz tests
- Modified `tests/e2e/features/environment.py` to handle the new JWK
authz tests, including creating a temporary JWK key pair for the
tests and writing the public key to a file served by the JWK server
container (which lightspeed-stack is directed to access through the
config file mentioned above)
functionality to functions that can be reused in the e2e tests
- Added `tests/e2e/configuration/test_jwk/.gitignore` to ignore
generated JWK files
- Updated `tests/e2e/test_list.txt` to include the new JWK authz tests
0 commit comments