mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-22 05:42:54 +00:00
experiment with overriding exec to test bash script functions (#254)
* experiment with overriding exec to test bash script functions Signed-off-by: Felix Bartels <felix@host-consultants.de> * refine tests Signed-off-by: Felix Bartels <felix@host-consultants.de> * test installation of packages Signed-off-by: Felix Bartels <felix@host-consultants.de> * make sure package list is not updated when there are not additional packages * basic commander tests for webapp Signed-off-by: Felix Bartels <felix@host-consultants.de> * add webapp commander to makefile Signed-off-by: Felix Bartels <felix@host-consultants.de> * basic tests for webapp Signed-off-by: Felix Bartels <felix@host-consultants.de> * check webapp config.php Signed-off-by: Felix Bartels <felix@host-consultants.de> * add tests for z-push Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
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');"
|
||||
config:
|
||||
env:
|
||||
DEBUG: ${DEBUG}
|
||||
LANG: ${LANG}
|
||||
PATH: ${PATH}
|
||||
TZ: ${TZ}
|
||||
Reference in New Issue
Block a user