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>
This commit is contained in:
parent
d3dc0f942a
commit
3fa10aaa69
18 changed files with 264 additions and 198 deletions
16
src/runner_dict.py
Normal file
16
src/runner_dict.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from typing import TYPE_CHECKING
|
||||
|
||||
from src.tests_authentik.runner_authentik import RunnerAuthentik
|
||||
from src.tests_nextcloud.runner_nextcloud import RunnerNextcloud
|
||||
from src.tests_wordpress.runner_wordpress import RunnerWordpress
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from src.runner import Runner
|
||||
|
||||
# Register all runners here. Each .env file with TYPE=authentik will be run with RunnerAuthentik
|
||||
|
||||
RUNNER_DICT: dict[str, type["Runner"]] = {
|
||||
"authentik": RunnerAuthentik,
|
||||
"wordpress": RunnerWordpress,
|
||||
"nextcloud": RunnerNextcloud,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue