Skip to content

root: improve testing helpers#18379

Merged
BeryJu merged 4 commits intomainfrom
root/improve-test-helpers
Nov 26, 2025
Merged

root: improve testing helpers#18379
BeryJu merged 4 commits intomainfrom
root/improve-test-helpers

Conversation

@BeryJu
Copy link
Member

@BeryJu BeryJu commented Nov 25, 2025

  • remove authentik.lib.tests.utils.get_request
  • Remove explicit calls to SessionMiddleware
  • Subclass RequestFactory

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@netlify
Copy link

netlify bot commented Nov 25, 2025

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit b7c0a5c
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/69264b110bb222000837b4d5

@netlify
Copy link

netlify bot commented Nov 25, 2025

Deploy Preview for authentik-integrations canceled.

Name Link
🔨 Latest commit b7c0a5c
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/69264b1145902500087d301a

@netlify
Copy link

netlify bot commented Nov 25, 2025

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit b7c0a5c
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69264b110bb222000837b4d7

@codecov
Copy link

codecov bot commented Nov 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.97%. Comparing base (f6dc7ac) to head (b7c0a5c).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #18379      +/-   ##
==========================================
- Coverage   92.98%   92.97%   -0.02%     
==========================================
  Files         894      894              
  Lines       49020    48919     -101     
==========================================
- Hits        45583    45480     -103     
- Misses       3437     3439       +2     
Flag Coverage Δ
e2e 45.45% <10.12%> (+0.10%) ⬆️
integration 23.18% <10.12%> (+0.06%) ⬆️
unit 91.10% <100.00%> (-0.02%) ⬇️
unit-migrate 91.15% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu force-pushed the root/improve-test-helpers branch from 6470771 to d29dcc0 Compare November 26, 2025 00:02
@BeryJu BeryJu marked this pull request as ready for review November 26, 2025 00:07
@BeryJu BeryJu requested a review from a team as a code owner November 26, 2025 00:07
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@github-actions
Copy link
Contributor

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-b7c0a5c8d49ebad2dfb3e5548367b72ccd90506c
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-b7c0a5c8d49ebad2dfb3e5548367b72ccd90506c

Afterwards, run the upgrade commands from the latest release notes.

@BeryJu BeryJu merged commit 02b8b52 into main Nov 26, 2025
98 checks passed
@BeryJu BeryJu deleted the root/improve-test-helpers branch November 26, 2025 12:39
kensternberg-authentik added a commit that referenced this pull request Dec 11, 2025
* main: (58 commits)
  core: bump goauthentik.io/api/v3 from 3.2025120.5 to 3.2025120.7 (#18381)
  web/admin: add entitlement search (#18291)
  core: bump goauthentik/fips-debian from `8b7e8d0` to `8c4ec98` (#18361)
  website: bump the build group in /website with 3 updates (#18382)
  core: bump astral-sh/uv from 0.9.11 to 0.9.12 (#18383)
  root: improve testing helpers (#18379)
  website: bump the goauthentik group across 1 directory with 4 updates (#18378)
  website: bump the eslint group in /website with 3 updates (#18356)
  policies: use flow planner directly in PolicyAccessView to directly set flow context (#18372)
  providers/scim: fix PATCH for AWS (#18230)
  enterprise/providers/scim: fix OAuth (#18358)
  web: Fix stale table rows (#17940)
  web: Bump packages. (#18371)
  *: convert slugfields to textfields (#17411)
  outposts: set container healthcheck inline (#18298)
  web:  ESLint Typing Fixes  (#18362)
  core: bump golang.org/x/crypto from 0.43.0 to 0.45.0 (#18275)
  lifecycle/aws: bump aws-cdk from 2.1032.0 to 2.1033.0 in /lifecycle/aws (#18278)
  core: bump github.com/getsentry/sentry-go from 0.38.0 to 0.39.0 (#18353)
  ci: bump actions/setup-python from 6.0.0 to 6.1.0 in /.github/actions/setup (#18360)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant