Commit graph

23 commits

Author SHA1 Message Date
a2f2876e45 put RUNNER_DICT in runner.py 2023-12-04 15:27:05 +01:00
8835243577 move stuff to Envmanager 2023-12-04 15:26:56 +01:00
d40ae79991 add circular import test 2023-12-04 14:44:40 +01:00
dc0e568c04 add error message to ValueError 2023-12-04 14:41:26 +01:00
82fcc0bafb add test cases 2023-12-04 14:38:22 +01:00
dc50a9d6f7 refactoring and improvement, sort_env_files_by_rule now passes more complex test case 2023-12-04 14:38:09 +01:00
2e988c6150 add comments and swap argument 2023-12-04 14:35:18 +01:00
abdbe35daf sort_env_files_by_rule now supports duplicate types 2023-12-04 14:30:51 +01:00
126873793c fix imports 2023-12-04 14:13:42 +01:00
6170840286 fix imports for /tests 2023-12-04 14:13:22 +01:00
7d7b871b17 use demo credentials from nextcloud conftest 2023-12-04 13:42:03 +01:00
e609394ac1 cleanup delete_nextcloud_user 2023-12-04 13:37:36 +01:00
c0605a155f add second test, cleanup 2023-12-04 13:32:56 +01:00
fad3395613 successful env file test via pytest 2023-12-04 13:26:31 +01:00
ab43b315d5 improve typing 2023-12-04 13:26:21 +01:00
d3dc0f942a new-features (#5)
* refactoring and rework: runner now has setups / tests / cleanups as lists
* add nextcloud runner
* add email testing prototype with imap fixture
* add dependency resolution (sort env files in input so that test order is correct)

Reviewed-on: local-it-infrastructure/e2e_tests#5
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-04 12:46:30 +01:00
2e33f8f014 make-all-env-files-available (#4)
Before, a test had only access to it's own env file / configuration (wordpress could see wordpress env file). Now, all env files are available. Wordpress test can also read authentik env file, for example to get the authentik domain.

Reviewed-on: local-it-infrastructure/e2e_tests#4
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-11-30 10:53:20 +01:00
8172f685de rework-output-and-test-logic (#3)
* fix flakey tests in authentik / wordpress

* make it possible to rerun tests partially -> passed will be skipped, failed will be repeated

* improve organization of all outputs (moving, renaming, keeping multiple versions etc.)

* add html reports, replace .txt tracebacks

* combine all html reports into one

* add demo runner with comments for documentation purposes

Reviewed-on: local-it-infrastructure/e2e_tests#3
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-11-29 14:14:46 +01:00
d2cd6ba47f 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>
2023-11-27 17:01:45 +01:00
97ed87c79f [WIP] Add new automated test framework (#1)
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-11-22 21:40:13 +01:00
859bd57006 test framework 2023-07-07 03:38:10 +02:00
5961516536 add config 2023-06-15 22:22:58 +02:00
6ec9b5df50 init 2023-06-15 21:53:12 +02:00