mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-07 16:06:14 +00:00
start.sh generated wrong config key for folder id and wrong datatypes for folder type and flags. This has been corrected both there and in the automated tests.
79 lines
3.3 KiB
YAML
79 lines
3.3 KiB
YAML
tests:
|
|
start-service script:
|
|
command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.0='echo php-fpm7.0'; . /kopano/start.sh"
|
|
exit-code: 0
|
|
stdout:
|
|
not-contains:
|
|
- "Reading package lists..."
|
|
start-service script (installing new package):
|
|
command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.0='echo php-fpm7.0'; . /kopano/start.sh"
|
|
exit-code: 0
|
|
stdout:
|
|
contains:
|
|
- "Setting up nano"
|
|
config:
|
|
env:
|
|
ADDITIONAL_KOPANO_PACKAGES: "nano"
|
|
start-service script (installing existing package):
|
|
command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.0='echo php-fpm7.0'; . /kopano/start.sh"
|
|
exit-code: 0
|
|
stdout:
|
|
contains:
|
|
- "INFO: z-push-kopano is already installed"
|
|
config:
|
|
env:
|
|
ADDITIONAL_KOPANO_PACKAGES: "z-push-kopano"
|
|
start-service script (z-push configuration):
|
|
command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.0='echo php-fpm7.0'; . /kopano/start.sh" && cat /etc/z-push/z-push.conf.php
|
|
exit-code: 0
|
|
stdout:
|
|
contains:
|
|
- "define('USE_CUSTOM_REMOTE_IP_HEADER', 'HTTP_X_FORWARDED_FOR');"
|
|
start-service script (configuring gabsync):
|
|
command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.0='echo php-fpm7.0'; . /kopano/start.sh" && cat /etc/z-push/gabsync.conf.php
|
|
exit-code: 0
|
|
stdout:
|
|
contains:
|
|
- "define('USERNAME', 'SYSTEM');"
|
|
start-service script (no additional folders):
|
|
command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.0='echo php-fpm7.0'; . /kopano/start.sh" && cat /etc/z-push/z-push.conf.php
|
|
exit-code: 0
|
|
stdout:
|
|
contains:
|
|
- " $additionalFolders = array(\n );"
|
|
not-contains: # default entry
|
|
- "\t$additionalFolders = array("
|
|
- "\t);"
|
|
start-service script (empty additional folders):
|
|
command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.0='echo php-fpm7.0'; . /kopano/start.sh" && cat /etc/z-push/z-push.conf.php
|
|
exit-code: 0
|
|
stdout:
|
|
contains:
|
|
- " $additionalFolders = array(\n );"
|
|
not-contains: # default entry
|
|
- "\t$additionalFolders = array("
|
|
- "\t);"
|
|
config:
|
|
env:
|
|
ZPUSH_ADDITIONAL_FOLDERS: "[]"
|
|
start-service script (set additional folders):
|
|
command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.0='echo php-fpm7.0'; . /kopano/start.sh" && cat /etc/z-push/z-push.conf.php
|
|
exit-code: 0
|
|
stdout:
|
|
contains:
|
|
- " $additionalFolders = array(\n array('store' => \"SYSTEM\", 'folderid' => \"42\", 'name' => \"Calendar\", 'type' => SYNC_FOLDER_TYPE_USER_APPOINTMENT, 'flags' => 4),\n array('store' => \"SYSTEM\", 'folderid' => \"21\", 'name' => \"Mail\", 'type' => SYNC_FOLDER_TYPE_USER_MAIL, 'flags' => 0),\n );"
|
|
not-contains: # default entry
|
|
- "\t$additionalFolders = array("
|
|
- "\t);"
|
|
config:
|
|
env:
|
|
ZPUSH_ADDITIONAL_FOLDERS: "[{\"name\":\"Calendar\",\"id\":\"42\",\"type\":\"SYNC_FOLDER_TYPE_USER_APPOINTMENT\",\"flags\":\"4\"},{\"name\":\"Mail\",\"id\":\"21\",\"type\":\"SYNC_FOLDER_TYPE_USER_MAIL\",\"flags\":\"0\"}]"
|
|
|
|
|
|
config:
|
|
env:
|
|
DEBUG: ${DEBUG}
|
|
LANG: ${LANG}
|
|
PATH: ${PATH}
|
|
TZ: ${TZ}
|