Skip to content

Commit

Permalink
tests/e2e: fix dex tests failing (goauthentik#11761)
Browse files Browse the repository at this point in the history
* tests/e2e: fix dex tests failing

Signed-off-by: Jens Langhammer <[email protected]>

* force no special chars

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
  • Loading branch information
BeryJu authored Oct 21, 2024
1 parent af4a1e4 commit 2fa50de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/sources_oauth2_dex/dex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ staticClients:
- id: example-app
name: Example App
redirectURIs:
- {{ .Env.AK_REDIRECT_URL }}
secret: {{ .Env.AK_CLIENT_SECRET }}
- "{{ .Env.AK_REDIRECT_URL }}"
secret: "{{ .Env.AK_CLIENT_SECRET }}"
staticPasswords:
- email: [email protected]
# hash for 'password', for testing
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/test_source_oauth_oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from authentik.blueprints.tests import apply_blueprint
from authentik.core.models import User
from authentik.flows.models import Flow
from authentik.lib.generators import generate_id, generate_key
from authentik.lib.generators import generate_id
from authentik.sources.oauth.models import OAuthSource
from authentik.stages.identification.models import IdentificationStage
from tests.e2e.utils import SeleniumTestCase, retry
Expand All @@ -23,7 +23,7 @@ class TestSourceOAuth2(SeleniumTestCase):
"""test OAuth Source flow"""

def setUp(self):
self.client_secret = generate_key()
self.client_secret = generate_id()
self.slug = generate_id()
super().setUp()
self.run_container(
Expand Down

0 comments on commit 2fa50de

Please sign in to comment.