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:
@ -7,8 +7,8 @@ staticClients:
|
|||||||
- id: example-app
|
- id: example-app
|
||||||
name: Example App
|
name: Example App
|
||||||
redirectURIs:
|
redirectURIs:
|
||||||
- {{ .Env.AK_REDIRECT_URL }}
|
- "{{ .Env.AK_REDIRECT_URL }}"
|
||||||
secret: {{ .Env.AK_CLIENT_SECRET }}
|
secret: "{{ .Env.AK_CLIENT_SECRET }}"
|
||||||
staticPasswords:
|
staticPasswords:
|
||||||
- email: admin@example.com
|
- email: admin@example.com
|
||||||
# hash for 'password', for testing
|
# hash for 'password', for testing
|
||||||
|
|||||||
@ -13,7 +13,7 @@ from selenium.webdriver.support.wait import WebDriverWait
|
|||||||
from authentik.blueprints.tests import apply_blueprint
|
from authentik.blueprints.tests import apply_blueprint
|
||||||
from authentik.core.models import User
|
from authentik.core.models import User
|
||||||
from authentik.flows.models import Flow
|
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.sources.oauth.models import OAuthSource
|
||||||
from authentik.stages.identification.models import IdentificationStage
|
from authentik.stages.identification.models import IdentificationStage
|
||||||
from tests.e2e.utils import SeleniumTestCase, retry
|
from tests.e2e.utils import SeleniumTestCase, retry
|
||||||
@ -23,7 +23,7 @@ class TestSourceOAuth2(SeleniumTestCase):
|
|||||||
"""test OAuth Source flow"""
|
"""test OAuth Source flow"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.client_secret = generate_key()
|
self.client_secret = generate_id()
|
||||||
self.slug = generate_id()
|
self.slug = generate_id()
|
||||||
super().setUp()
|
super().setUp()
|
||||||
self.run_container(
|
self.run_container(
|
||||||
|
|||||||
Reference in New Issue
Block a user