tests/e2e: fix dex tests failing (#11761)

* tests/e2e: fix dex tests failing

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

* force no special chars

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

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2024-10-22 01:52:16 +02:00
committed by GitHub
parent af4a1e4576
commit 2fa50de470
2 changed files with 4 additions and 4 deletions

View File

@ -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: admin@example.com
# hash for 'password', for testing

View File

@ -13,7 +13,7 @@ from selenium.webdriver.support.wait import WebDriverWait
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
@ -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(