authentik
authentik copied to clipboard
web: Update WebDriver types. Fix issues surrounding async tests.
Details
This PR introduces type checking to our integration and unit tests. Previously these files were either ignored by our type-checker, or with limited access to the types provided by the WebDriverIO runner.
The changes are numerous but fall into a set of common categories:
- Updating of existing tests to use the latest WebDriver testing APIs.
- Fixing asynchronous promise chains, collapsing or removing stacked
awaitkeywords. - Refactoring common test patterns into new and existing utilities.
Checklist
- [ ] Local tests pass (
ak test authentik/) - [ ] The code has been formatted (
make lint-fix)
If an API change has been made
- [ ] The API schema has been updated (
make gen-build)
If changes to the frontend have been made
- [ ] The code has been formatted (
make web)
If applicable
- [ ] The documentation has been updated
- [ ] The documentation has been formatted (
make website)
Deploy Preview for authentik-docs ready!
| Name | Link |
|---|---|
| Latest commit | 723846f232bc55894ebe11d61d7f66c1947a2464 |
| Latest deploy log | https://app.netlify.com/projects/authentik-docs/deploys/687aa9e8dbf73f0008493c0c |
| Deploy Preview | https://deploy-preview-14292--authentik-docs.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
Deploy Preview for authentik-storybook ready!
| Name | Link |
|---|---|
| Latest commit | 723846f232bc55894ebe11d61d7f66c1947a2464 |
| Latest deploy log | https://app.netlify.com/projects/authentik-storybook/deploys/687aa9e80072360008fb31bc |
| Deploy Preview | https://deploy-preview-14292--authentik-storybook.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 86.83%. Comparing base (8eedfe5) to head (723846f).
:warning: Report is 886 commits behind head on main.
:exclamation: There is a different number of reports uploaded between BASE (8eedfe5) and HEAD (723846f). Click for more details.
HEAD has 4 uploads less than BASE
Flag BASE (8eedfe5) HEAD (723846f) e2e 6 5 unit 12 9
Additional details and impacted files
@@ Coverage Diff @@
## main #14292 +/- ##
==========================================
- Coverage 91.98% 86.83% -5.16%
==========================================
Files 831 831
Lines 44161 44161
==========================================
- Hits 40621 38346 -2275
- Misses 3540 5815 +2275
| Flag | Coverage Ξ | |
|---|---|---|
| e2e | 43.51% <ΓΈ> (-2.07%) |
:arrow_down: |
| integration | 23.47% <ΓΈ> (?) |
|
| unit | 85.03% <ΓΈ> (-6.25%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
authentik PR Installation instructions
Instructions for docker-compose
Add the following block to your .env file:
AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-723846f232bc55894ebe11d61d7f66c1947a2464
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
Afterwards, run the upgrade commands from the latest release notes.
Instructions for Kubernetes
Add the following block to your values.yml file:
authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-723846f232bc55894ebe11d61d7f66c1947a2464
Afterwards, run the upgrade commands from the latest release notes.
Deploy Preview for authentik-integrations ready!
| Name | Link |
|---|---|
| Latest commit | 723846f232bc55894ebe11d61d7f66c1947a2464 |
| Latest deploy log | https://app.netlify.com/projects/authentik-integrations/deploys/687aa9e8cfb0ca000841f12c |
| Deploy Preview | https://deploy-preview-14292--authentik-integrations.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.