1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-11 16:32:59 +00:00

Specify config location through KOPANO_CONFIG_PATH env variable (#352)

* Specify config location through KOPANO_CONFIG_PATH env variable
* add commander test to verify config is honoured by cli programs
* remove wrappers other than kopano-cli as it cannot make use of KOPANO_CONFIG_PATH

Fixes: https://github.com/zokradonh/kopano-docker/issues/351
This commit is contained in:
Felix Bartels
2020-03-05 14:35:05 +01:00
committed by GitHub
parent 5d4fabf280
commit 43928e538c
7 changed files with 31 additions and 33 deletions
+12 -8
View File
@@ -30,14 +30,18 @@ tests:
- "Drafts"
contains:
- "Postvak IN"
# test renaming of folders:
# command: docker exec kopano_server env KCCONF_ADMIN_DEFAULT_STORE_LOCALE=de_DE.UTF-8 /usr/bin/python3 /kopano/server.py && docker exec kopano_server kopano-storeadm -Y -n user12
# exit-code: 0
# stderr:
# contains:
# - The -l option was not specified; "de_DE.UTF-8" will be used as language
# - Posteingang
# - Entwürfe
test renaming of folders:
command: docker exec kopano_server env KCCONF_ADMIN_DEFAULT_STORE_LOCALE=de_DE.UTF-8 /usr/bin/python3 /kopano/server.py && docker exec kopano_server kopano-storeadm -Y -n user13
exit-code: 0
stdout:
not-contains:
- "Inbox"
- "Drafts"
contains:
- "Posteingang"
stderr:
contains:
- The -l option was not specified; "de_DE.UTF-8" will be used as language
config:
env:
PATH: ${PATH}