Commit graph

52 commits

Author SHA1 Message Date
cf3672ef4b fix setup_nextcloud_admin_session 2023-12-05 19:34:21 +01:00
3e82936616 increase timeout 2023-12-05 19:32:57 +01:00
ba060b7b8b update readme 2023-12-05 19:27:24 +01:00
0ecc5a0787 update norecursedirs so everything works again 2023-12-05 19:21:39 +01:00
ed1ac0b088 update 2023-12-05 19:18:54 +01:00
01c294d44b rename src to abratest 2023-12-05 19:18:17 +01:00
d2f50fb791 move all test files into their own folder, as if this were an authentik recipe repo 2023-12-05 19:03:28 +01:00
3841658e4e rename testing dir to recipes 2023-12-05 19:02:24 +01:00
659093f6aa reorganize 2023-12-05 19:01:10 +01:00
52922a5be3 add recipes dir to dir manager 2023-12-05 18:58:51 +01:00
c05f79e36c make test more robust 2023-12-05 18:56:01 +01:00
177c2228a1 remove dir in import 2023-12-05 18:36:33 +01:00
8ec64db3df rename again 2023-12-05 18:10:26 +01:00
71c38e0a50 rename conftest so it can be imported as plugin 2023-12-05 18:10:01 +01:00
52c5e24f7a fix plugins dir 2023-12-05 18:08:34 +01:00
15190508ec remove norecursedirs 2023-12-05 18:08:02 +01:00
b09d781321 fix plugin 2023-12-05 18:07:54 +01:00
eee64f4542 fix dependency types 2023-12-05 17:04:58 +01:00
f0bf98f613 WIP 2023-12-05 17:04:24 +01:00
db8d9f6298 remove prevent_skip 2023-12-05 16:57:38 +01:00
ce76e14358 move all tests to their own dir 2023-12-05 16:52:23 +01:00
d38808ac65 fixup 2023-12-05 16:50:30 +01:00
24dae132a1 turn dependencies into strings 2023-12-05 16:50:17 +01:00
97fb896c43 turn each test dir into a package 2023-12-05 16:42:01 +01:00
be722938c8 Merge commit '8f720f889b' into nextcloud 2023-12-05 16:13:02 +01:00
8f720f889b initial commit 2023-12-04 23:42:12 +01:00
6da13d1120 fix credentials 2023-12-04 23:34:19 +01:00
f911e8aacd add imbox 2023-12-04 23:31:47 +01:00
8b1b30d907 use URL fixture 2023-12-04 22:04:37 +01:00
e98f93557b increase timeout to 15s 2023-12-04 22:03:45 +01:00
e94be119d5 use nextcloud setup and tests 2023-12-04 21:48:34 +01:00
a4391ad985 simplify fixture with baseurl 2023-12-04 21:48:22 +01:00
7f37b1a8b0 implement test_nextcloud_quota 2023-12-04 21:48:06 +01:00
2958b95c65 use url fixture in setup_nextcloud_admin_session, cleanup 2023-12-04 19:57:01 +01:00
5220336eff add global URL fixture 2023-12-04 19:54:02 +01:00
164503f408 add BaseUrl test cases 2023-12-04 19:36:06 +01:00
fb864659d8 add BaseUrl 2023-12-04 19:35:54 +01:00
ae0c90cb8a remove prototype 2023-12-04 19:34:25 +01:00
6f51dc6766 use Path directly in storage_state 2023-12-04 19:08:36 +01:00
e33dc95632 use Path directly in storage_state 2023-12-04 19:07:58 +01:00
c02af669fe fix nextcloud setup 2023-12-04 19:04:30 +01:00
8118aac5a8 implement nextcloud fixtures 2023-12-04 19:04:21 +01:00
ba7f7ac8c8 add nextcloud to ENV_FILES 2023-12-04 17:19:20 +01:00
3fa10aaa69 implement env manager (#6)
* add EnvManager class

* holds all functions that are env file related

* integrates runner dependency resolution

* add integration and unit tests for EnvManager

Reviewed-on: local-it-infrastructure/e2e_tests#6
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-04 17:09:01 +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