Skip to content

tests/e2e: start fixing tests to work without docker network_mode host#8035

Merged
BeryJu merged 15 commits intomainfrom
tests/locally-runnable
Jan 1, 2024
Merged

tests/e2e: start fixing tests to work without docker network_mode host#8035
BeryJu merged 15 commits intomainfrom
tests/locally-runnable

Conversation

@BeryJu
Copy link
Copy Markdown
Member

@BeryJu BeryJu commented Jan 1, 2024

Details

Currently a lot of the e2e tests require docker's network_mode host, which doesn't work the same on macOS. This PR changes the tests to work without host networking so the tests can easily be debugged locally


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)
  • The translation files have been updated (make i18n-extract)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu requested a review from a team as a code owner January 1, 2024 14:38
@netlify
Copy link
Copy Markdown

netlify bot commented Jan 1, 2024

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit df317f9
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/659309d18a8bc800097503b0

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b778c35) 92.34% compared to head (df317f9) 92.34%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8035   +/-   ##
=======================================
  Coverage   92.34%   92.34%           
=======================================
  Files         608      608           
  Lines       30156    30156           
=======================================
  Hits        27847    27847           
  Misses       2309     2309           
Flag Coverage Δ
e2e 50.59% <96.77%> (ø)
integration 26.25% <87.09%> (ø)
unit 89.51% <100.00%> (ø)

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.

BeryJu added 11 commits January 1, 2024 17:03
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
…cos)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu requested a review from a team as a code owner January 1, 2024 18:20
BeryJu added 3 commits January 1, 2024 19:25
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu force-pushed the tests/locally-runnable branch from 53f0de4 to df317f9 Compare January 1, 2024 18:51
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 1, 2024

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-tests-locally-runnable-1704136806-df317f9
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

For arm64, use these values:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-tests-locally-runnable-1704136806-df317f9-arm64
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
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-tests-locally-runnable-1704136806-df317f9

For arm64, use these values:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-tests-locally-runnable-1704136806-df317f9-arm64

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

@BeryJu BeryJu merged commit b84facb into main Jan 1, 2024
@BeryJu BeryJu deleted the tests/locally-runnable branch January 1, 2024 20:08
kensternberg-authentik added a commit that referenced this pull request Jan 2, 2024
* main: (30 commits)
  outposts/proxy: better Redis error message (#8044)
  translate: Updates for file web/xliff/en.xlf in fr (#8046)
  web: bump the eslint group in /tests/wdio with 2 updates (#8041)
  web: bump the storybook group in /web with 7 updates (#8042)
  web: bump the eslint group in /web with 2 updates (#8043)
  web: bump @types/guacamole-common-js from 1.3.2 to 1.5.2 in /web (#8030)
  translate: Updates for file web/xliff/en.xlf in zh_CN (#8038)
  translate: Updates for file web/xliff/en.xlf in zh-Hans (#8039)
  website: bump clsx from 2.0.0 to 2.1.0 in /website (#8033)
  core: bump golang from 1.21.3-bookworm to 1.21.5-bookworm (#8027)
  web: bump the babel group in /web with 4 updates (#8028)
  web: bump the esbuild group in /web with 2 updates (#8029)
  web: bump rollup from 4.9.1 to 4.9.2 in /web (#8031)
  tests/e2e: fix tests to work without docker network_mode host (#8035)
  website/docs: fix typo (#8015)
  web: bump API Client version (#8025)
  enterprise/providers: Add RAC [AUTH-15] (#7291)
  outposts: disable deployment and secret reconciler for embedded outpost in code instead of in config (#8021)
  providers/proxy: use access token (#8022)
  website/integrations: Add custom Group/Role mapping documentation for Grafana (#7453)
  ...
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