mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-21 13:23:09 +00:00
improve config options for grapi (#269)
* make it possible to configure grapi through its cfg * add test for config setting in grapi * add volume for persistent data * chown and add tests for dir
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
tests:
|
||||
start-service script:
|
||||
command: bash -c "shopt -s expand_aliases; alias exec='echo'; . /kopano/start-service.sh && env"
|
||||
exit-code: 0
|
||||
stdout:
|
||||
contains:
|
||||
- enable_experimental_endpoints=true
|
||||
config:
|
||||
env:
|
||||
KCCONF_GRAPI_ENABLE_EXPERIMENTAL_ENDPOINTS: true
|
||||
config:
|
||||
env:
|
||||
DEBUG: ${DEBUG}
|
||||
GRAPI_BACKEND: ${GRAPI_BACKEND}
|
||||
LANG: ${LANG}
|
||||
SERVICE_TO_START: ${SERVICE_TO_START}
|
||||
PATH: ${PATH}
|
||||
@@ -1,7 +1,10 @@
|
||||
tests:
|
||||
test sending mail:
|
||||
command: apt update && apt install -y swaks netbase && dockerize -wait tcp://"$KCCONF_SPOOLER_SMTP_SERVER":25 -timeout 1080s swaks --to user1@kopano.demo --server $KCCONF_SPOOLER_SMTP_SERVER
|
||||
command: apt update && apt install -y swaks netbase && dockerize -wait tcp://"$KCCONF_SPOOLER_SMTP_SERVER":25 -timeout 1080s && swaks --to user1@kopano.demo --server $KCCONF_SPOOLER_SMTP_SERVER
|
||||
exit-code: 0
|
||||
stdout:
|
||||
contains:
|
||||
- "250 2.0.0 Ok: queued as"
|
||||
|
||||
config:
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user