add api testing (#14)
* add fixture to make api calls with authentification * add authentik test that checks the status of all blueprints * add option to append any kind of data to html report Reviewed-on: local-it-infrastructure/e2e_tests#14 Co-authored-by: Daniel <d.brummerloh@gmail.com> Co-committed-by: Daniel <d.brummerloh@gmail.com>
This commit is contained in:
parent
d1ff1183a5
commit
873bf73ae8
8 changed files with 89 additions and 19 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING, Callable, NamedTuple
|
||||
|
|
@ -134,7 +135,6 @@ class Runner:
|
|||
# command_arguments.append("--traceconfig")
|
||||
|
||||
command_arguments.append("-v")
|
||||
# command_arguments.append("-rx")
|
||||
command_arguments.append(str(full_test_path))
|
||||
|
||||
command_arguments.append("--runner_index")
|
||||
|
|
@ -158,12 +158,13 @@ class Runner:
|
|||
command_arguments.append(str(self.DIR.RECORDS / "traces" / full_test_path.stem))
|
||||
|
||||
# tracing
|
||||
command_arguments.append("--tracing")
|
||||
command_arguments.append("--tracing") # "on", "off", "retain-on-failure"
|
||||
command_arguments.append("retain-on-failure")
|
||||
# command_arguments.append("on")
|
||||
|
||||
# Disable capturing. With -s set, prints will go to console as if pytest is not there.
|
||||
# command_arguments.append("-s")
|
||||
if os.environ.get("PWDEBUG") == "1":
|
||||
command_arguments.append("-s")
|
||||
command_arguments.append("-s")
|
||||
|
||||
# headed
|
||||
# command_arguments.append("--headed")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue