tests/e2e: use example blueprints for testing (#4805)

* tests/e2e: use blueprints for testing

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

* add identification stage assignment

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

* add recovery flow tests

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

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2023-02-27 22:42:36 +01:00
committed by GitHub
parent 118765ab30
commit 980320e24b
4 changed files with 144 additions and 124 deletions

View File

@ -79,15 +79,6 @@ entries:
model: authentik_stages_email.emailstage
attrs:
use_global_settings: true
host: localhost
port: 25
username: ""
use_tls: false
use_ssl: false
timeout: 10
from_address: system@authentik.local
token_expiry: 30
subject: authentik
template: email/account_confirmation.html
activate_user_on_success: true
- identifiers:

View File

@ -43,7 +43,7 @@ entries:
model: authentik_policies_expression.expressionpolicy
attrs:
expression: |
return request.context.get('is_restored', False)
return bool(request.context.get('is_restored', True))
- identifiers:
name: default-recovery-email
id: default-recovery-email