authentik setup and tracing (#2)

* authentik sessions created successfully during setup without breaking tracing

* setup works on EN and DE localization by using regex patterns

* automated tracing with pytest --trace option, manual hook no longer needed

Reviewed-on: local-it-infrastructure/e2e_tests#2
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
This commit is contained in:
Daniel 2023-11-27 17:01:45 +01:00 committed by dan
parent 97ed87c79f
commit d2cd6ba47f
22 changed files with 519 additions and 304 deletions

View file

@ -1,6 +1,6 @@
from pathlib import Path
from runner import Runner, SubTest
from src.runner import Runner, SubTest
def condition_always_true(dotenv_path: Path) -> bool:
@ -12,9 +12,10 @@ def condition_always_false(dotenv_path: Path) -> bool:
class RunnerWordpress(Runner):
name = "wordpress"
test_dir_name = "tests_wordpress"
# main_test_name = "test_wordpress.py"
sub_tests = [
SubTest(condition=condition_always_false, test_file="test_wordpress_feature1.py"),
SubTest(condition=condition_always_true, test_file="conftest.py"),
SubTest(condition=condition_always_true, test_file="test_wordpress_feature1.py"),
]
dependencies: list[str] = ["authentik"]