tests/e2e: fix blueprint paths

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-08-16 16:12:21 +02:00
parent e8b30b75d2
commit ef5407be33
13 changed files with 159 additions and 159 deletions

View File

@ -26,8 +26,8 @@ class TestFlowsAuthenticator(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
def test_totp_validate(self): def test_totp_validate(self):
"""test flow with otp stages""" """test flow with otp stages"""
@ -52,8 +52,8 @@ class TestFlowsAuthenticator(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint("default/20-flow-default-authenticator-totp-setup.yaml") @apply_blueprint("default/20-flow-default-authenticator-totp-setup.yaml")
def test_totp_setup(self): def test_totp_setup(self):
@ -98,8 +98,8 @@ class TestFlowsAuthenticator(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint("default/20-flow-default-authenticator-static-setup.yaml") @apply_blueprint("default/20-flow-default-authenticator-static-setup.yaml")
def test_static_setup(self): def test_static_setup(self):

View File

@ -41,8 +41,8 @@ class TestFlowsEnroll(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
def test_enroll_2_step(self): def test_enroll_2_step(self):
"""Test 2-step enroll flow""" """Test 2-step enroll flow"""
@ -107,8 +107,8 @@ class TestFlowsEnroll(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
def test_enroll_email(self): def test_enroll_email(self):
"""Test enroll with Email verification""" """Test enroll with Email verification"""

View File

@ -12,8 +12,8 @@ class TestFlowsLogin(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
def test_login(self): def test_login(self):
"""test default login flow""" """test default login flow"""

View File

@ -20,8 +20,8 @@ class TestFlowsStageSetup(SeleniumTestCase):
@retry() @retry()
@apply_blueprint("default/0-flow-password-change.yaml") @apply_blueprint("default/0-flow-password-change.yaml")
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
def test_password_change(self): def test_password_change(self):
"""test password change flow""" """test password change flow"""

View File

@ -83,8 +83,8 @@ class TestProviderLDAP(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
def test_ldap_bind_success(self): def test_ldap_bind_success(self):
"""Test simple bind""" """Test simple bind"""
@ -110,8 +110,8 @@ class TestProviderLDAP(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
def test_ldap_bind_success_ssl(self): def test_ldap_bind_success_ssl(self):
"""Test simple bind with ssl""" """Test simple bind with ssl"""
@ -137,8 +137,8 @@ class TestProviderLDAP(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
def test_ldap_bind_fail(self): def test_ldap_bind_fail(self):
"""Test simple bind (failed)""" """Test simple bind (failed)"""
@ -162,8 +162,8 @@ class TestProviderLDAP(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@reconcile_app("authentik_outposts") @reconcile_app("authentik_outposts")
def test_ldap_bind_search(self): def test_ldap_bind_search(self):

View File

@ -58,15 +58,15 @@ class TestProviderOAuth2Github(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/system/providers-oauth2.yaml", "system/providers-oauth2.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_authorization_consent_implied(self): def test_authorization_consent_implied(self):
@ -114,15 +114,15 @@ class TestProviderOAuth2Github(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/system/providers-oauth2.yaml", "system/providers-oauth2.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_authorization_consent_explicit(self): def test_authorization_consent_explicit(self):
@ -189,12 +189,12 @@ class TestProviderOAuth2Github(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_denied(self): def test_denied(self):

View File

@ -67,15 +67,15 @@ class TestProviderOAuth2OAuth(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/system/providers-oauth2.yaml", "system/providers-oauth2.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_redirect_uri_error(self): def test_redirect_uri_error(self):
@ -116,15 +116,15 @@ class TestProviderOAuth2OAuth(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/system/providers-oauth2.yaml", "system/providers-oauth2.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_authorization_consent_implied(self): def test_authorization_consent_implied(self):
@ -178,15 +178,15 @@ class TestProviderOAuth2OAuth(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/system/providers-oauth2.yaml", "system/providers-oauth2.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_authorization_logout(self): def test_authorization_logout(self):
@ -249,15 +249,15 @@ class TestProviderOAuth2OAuth(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/system/providers-oauth2.yaml", "system/providers-oauth2.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_authorization_consent_explicit(self): def test_authorization_consent_explicit(self):
@ -329,15 +329,15 @@ class TestProviderOAuth2OAuth(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/system/providers-oauth2.yaml", "system/providers-oauth2.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_authorization_denied(self): def test_authorization_denied(self):

View File

@ -66,12 +66,12 @@ class TestProviderOAuth2OIDC(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_redirect_uri_error(self): def test_redirect_uri_error(self):
@ -112,12 +112,12 @@ class TestProviderOAuth2OIDC(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
@apply_blueprint("system/providers-oauth2.yaml") @apply_blueprint("system/providers-oauth2.yaml")
@ -167,12 +167,12 @@ class TestProviderOAuth2OIDC(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
@apply_blueprint("system/providers-oauth2.yaml") @apply_blueprint("system/providers-oauth2.yaml")
@ -237,12 +237,12 @@ class TestProviderOAuth2OIDC(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_authorization_denied(self): def test_authorization_denied(self):

View File

@ -66,12 +66,12 @@ class TestProviderOAuth2OIDCImplicit(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_redirect_uri_error(self): def test_redirect_uri_error(self):
@ -112,12 +112,12 @@ class TestProviderOAuth2OIDCImplicit(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
@apply_blueprint("system/providers-oauth2.yaml") @apply_blueprint("system/providers-oauth2.yaml")
@ -162,12 +162,12 @@ class TestProviderOAuth2OIDCImplicit(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
@apply_blueprint("system/providers-oauth2.yaml") @apply_blueprint("system/providers-oauth2.yaml")
@ -228,12 +228,12 @@ class TestProviderOAuth2OIDCImplicit(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_authorization_denied(self): def test_authorization_denied(self):

View File

@ -55,16 +55,16 @@ class TestProviderProxy(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/system/providers-oauth2.yaml", "system/providers-oauth2.yaml",
"blueprints/system/providers-proxy.yaml", "system/providers-proxy.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_proxy_simple(self): def test_proxy_simple(self):
@ -126,12 +126,12 @@ class TestProviderProxyConnect(ChannelsLiveServerTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_proxy_connectivity(self): def test_proxy_connectivity(self):

View File

@ -65,15 +65,15 @@ class TestProviderSAML(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/system/providers-saml.yaml", "system/providers-saml.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_sp_initiated_implicit(self): def test_sp_initiated_implicit(self):
@ -134,15 +134,15 @@ class TestProviderSAML(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/system/providers-saml.yaml", "system/providers-saml.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_sp_initiated_explicit(self): def test_sp_initiated_explicit(self):
@ -218,15 +218,15 @@ class TestProviderSAML(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/system/providers-saml.yaml", "system/providers-saml.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_sp_initiated_explicit_post(self): def test_sp_initiated_explicit_post(self):
@ -302,15 +302,15 @@ class TestProviderSAML(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/system/providers-saml.yaml", "system/providers-saml.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_idp_initiated_implicit(self): def test_idp_initiated_implicit(self):
@ -377,15 +377,15 @@ class TestProviderSAML(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/system/providers-saml.yaml", "system/providers-saml.yaml",
) )
@reconcile_app("authentik_crypto") @reconcile_app("authentik_crypto")
def test_sp_initiated_denied(self): def test_sp_initiated_denied(self):

View File

@ -143,17 +143,17 @@ class TestSourceOAuth2(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-source-authentication.yaml", "default/20-flow-default-source-authentication.yaml",
"blueprints/default/20-flow-default-source-enrollment.yaml", "default/20-flow-default-source-enrollment.yaml",
"blueprints/default/20-flow-default-source-pre-authentication.yaml", "default/20-flow-default-source-pre-authentication.yaml",
) )
def test_oauth_enroll(self): def test_oauth_enroll(self):
"""test OAuth Source With With OIDC""" """test OAuth Source With With OIDC"""
@ -200,12 +200,12 @@ class TestSourceOAuth2(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-provider-authorization-explicit-consent.yaml", "default/20-flow-default-provider-authorization-explicit-consent.yaml",
"blueprints/default/20-flow-default-provider-authorization-implicit-consent.yaml", "default/20-flow-default-provider-authorization-implicit-consent.yaml",
) )
def test_oauth_enroll_auth(self): def test_oauth_enroll_auth(self):
"""test OAuth Source With With OIDC (enroll and authenticate again)""" """test OAuth Source With With OIDC (enroll and authenticate again)"""
@ -292,13 +292,13 @@ class TestSourceOAuth1(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-source-authentication.yaml", "default/20-flow-default-source-authentication.yaml",
"blueprints/default/20-flow-default-source-enrollment.yaml", "default/20-flow-default-source-enrollment.yaml",
"blueprints/default/20-flow-default-source-pre-authentication.yaml", "default/20-flow-default-source-pre-authentication.yaml",
) )
def test_oauth_enroll(self): def test_oauth_enroll(self):
"""test OAuth Source With With OIDC""" """test OAuth Source With With OIDC"""

View File

@ -96,13 +96,13 @@ class TestSourceSAML(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-source-authentication.yaml", "default/20-flow-default-source-authentication.yaml",
"blueprints/default/20-flow-default-source-enrollment.yaml", "default/20-flow-default-source-enrollment.yaml",
"blueprints/default/20-flow-default-source-pre-authentication.yaml", "default/20-flow-default-source-pre-authentication.yaml",
) )
def test_idp_redirect(self): def test_idp_redirect(self):
"""test SAML Source With redirect binding""" """test SAML Source With redirect binding"""
@ -166,13 +166,13 @@ class TestSourceSAML(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-source-authentication.yaml", "default/20-flow-default-source-authentication.yaml",
"blueprints/default/20-flow-default-source-enrollment.yaml", "default/20-flow-default-source-enrollment.yaml",
"blueprints/default/20-flow-default-source-pre-authentication.yaml", "default/20-flow-default-source-pre-authentication.yaml",
) )
def test_idp_post(self): def test_idp_post(self):
"""test SAML Source With post binding""" """test SAML Source With post binding"""
@ -249,13 +249,13 @@ class TestSourceSAML(SeleniumTestCase):
@retry() @retry()
@apply_blueprint( @apply_blueprint(
"blueprints/default/10-flow-default-authentication-flow.yaml", "default/10-flow-default-authentication-flow.yaml",
"blueprints/default/10-flow-default-invalidation-flow.yaml", "default/10-flow-default-invalidation-flow.yaml",
) )
@apply_blueprint( @apply_blueprint(
"blueprints/default/20-flow-default-source-authentication.yaml", "default/20-flow-default-source-authentication.yaml",
"blueprints/default/20-flow-default-source-enrollment.yaml", "default/20-flow-default-source-enrollment.yaml",
"blueprints/default/20-flow-default-source-pre-authentication.yaml", "default/20-flow-default-source-pre-authentication.yaml",
) )
def test_idp_post_auto(self): def test_idp_post_auto(self):
"""test SAML Source With post binding (auto redirect)""" """test SAML Source With post binding (auto redirect)"""