Commit graph

40 commits

Author SHA1 Message Date
7620f1d4b7 rename table 2023-12-12 11:09:39 +01:00
1160f769fc add assert message 2023-12-11 23:11:27 +01:00
d3e25c5052 simpolify default path 2023-12-11 22:44:55 +01:00
a9dbd16901 log results table 2023-12-11 15:05:37 +01:00
1e66766973 add TestResult, all test executions return TestResult 2023-12-11 14:29:18 +01:00
2b8ba3f9c4 make load_test_credentials a staticmethod 2023-12-11 13:59:53 +01:00
d7b3373145 adjust arguments 2023-12-11 12:55:05 +01:00
016d0e6b18 add --session_id and get_session_id 2023-12-11 12:43:29 +01:00
131477557d more refactoring 2023-12-11 12:03:31 +01:00
a4d99a2e7d change dir order 2023-12-11 12:02:39 +01:00
0c8999b070 huge refactor of runner functions 2023-12-11 11:51:32 +01:00
dd5fe859e8 rename _execute_tests_list 2023-12-11 11:34:05 +01:00
db70a49bad add file exists check to load_json_to_environ 2023-12-11 11:32:30 +01:00
cd00de6d01 change discvoery mask 2023-12-11 02:24:34 +01:00
019d2c028c fixup 2023-12-11 02:06:43 +01:00
cf4cfdc4c9 improve imports 2023-12-11 02:05:29 +01:00
ba33d97c53 fix type and config for tests 2023-12-11 01:44:02 +01:00
4d8033ca9d fix type 2023-12-11 01:14:44 +01:00
7c1f1ff5d4 records -> results 2023-12-11 00:43:12 +01:00
093818bc81 results to status 2023-12-11 00:41:07 +01:00
27a0ff8a2e add load_test_credentials 2023-12-11 00:20:49 +01:00
f49029aeed add docstring 2023-12-11 00:14:13 +01:00
2f6d0c47e5 add load_json_to_environ 2023-12-11 00:12:51 +01:00
fed7d27136 add example 2023-12-11 00:09:28 +01:00
744a017eed unique check no longer necessary 2023-12-11 00:08:25 +01:00
de6a71b9c8 fixup 2023-12-11 00:07:53 +01:00
edc8c9a2f5 remove RunnerMeta, save path to class var instead 2023-12-11 00:00:16 +01:00
7ec75cd6a0 Use RunnerMeta to save path along with Runner subclass 2023-12-10 23:53:49 +01:00
4f8bceb587 rename functions 2023-12-10 23:20:06 +01:00
fec4e0a6ea add todo 2023-12-10 18:01:42 +01:00
a8479a56e3 add generate_random_string 2023-12-10 18:00:52 +01:00
ebac7f49fd add todos 2023-12-10 18:00:44 +01:00
3ffa2f8ecd turn create_result_file into classmethod 2023-12-10 18:00:36 +01:00
016b88a68d testing-html-merge (#15)
* add tests for merge_html_reports function

Reviewed-on: local-it-infrastructure/e2e_tests#15
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-09 15:28:48 +01:00
873bf73ae8 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>
2023-12-09 12:34:25 +01:00
d1ff1183a5 refactoring (#13)
* general project refactoring

* various small improvements

* improve imap fixture with helper functions and typing

* add wordpress send email setup

* add wordpress receive email test

* add various documentation

Reviewed-on: local-it-infrastructure/e2e_tests#13
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-08 18:17:31 +01:00
41a042f07d add-resume (#12)
* add functionality to --resume flag. latest test will resume by running failed tests again

* fix nextcloud setup -> all tests passing

* fix expect timeout by moving it to its own fixture

Reviewed-on: local-it-infrastructure/e2e_tests#12
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-07 19:38:17 +01:00
0b4e0a0c16 remove-pythonpath-requirement (#11)
Before, recipes_dir had to be present in the importable paths of the python interpreter. This was solved by adding it to the PYTHONPATH env var. Now, abratest handles this by itself.

Reviewed-on: local-it-infrastructure/e2e_tests#11
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-07 17:21:19 +01:00
d2cfc089c3 fix-docker (#10)
* fix docker
-> use "pip install -e ." in installation
-> add symlinks in docker image
-> docker / non docker execution can run same main.py + cli

* remove sh scripts

* remove requirements.txt

Reviewed-on: local-it-infrastructure/e2e_tests#10
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-07 13:02:39 +01:00
8685688698 installable package (#9)
* turn repo into installable package (pip install -e .)

* add hatchling build packend

* call it pytest-abra

* add pytest entrypoint, so that it gets loaded automatically if installed (and pytest is run)

* make fixtures optional, so that pytest can still be used in other context

* add cli script -> you can now directly run "pytest-abra" in console

Reviewed-on: local-it-infrastructure/e2e_tests#9
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-07 11:32:01 +01:00