diff --git a/drydocker/guam/test_integration.sh b/drydocker/guam/test_integration.sh index 746dcfc..0f3c564 100755 --- a/drydocker/guam/test_integration.sh +++ b/drydocker/guam/test_integration.sh @@ -1,54 +1,56 @@ #!/bin/bash source /srv/stick.git/drydocker/generic_integration.sh # This installs Kolab Groupware retval=$(_shell generic_integration_install) # This sets up Kolab Groupware retval=$(_shell generic_integration_setup) set -x if [ ! -f "/etc/pki/tls/private/localhost.pem" ]; then pushd /etc/pki/tls/certs/ ./make-dummy-cert ../private/localhost.pem popd fi ( sleep 1; echo "1"; echo ""; echo "John"; echo "Doe"; echo ""; ) | kolab add-user -while [ $(timeout 10s kolab lm user/john.doe*@example.org 2>/dev/null | wc -l) -le 15 ]; do +while [ $(timeout 10s kolab lm user/john.doe*@example.org 2>/dev/null | wc -l) -lt 15 ]; do echo "Waiting for folders to be created ..." >&3 sleep 10 done sed -e 's/:993/:9993/g' \ /etc/kolab/kolab.conf > /etc/kolab/kolab.guam.conf guam start sleep 10 retval=0 echo ". LIST \"\" \"*\"" | timeout 10s imtest -t "" -u cyrus-admin -a cyrus-admin -w $(grep ^admin_password /etc/kolab/kolab.conf | awk '{print $3}') -p 9143 localhost ; retval=$(( ${retval} + $? )) echo ". LIST \"\" \"*\"" | timeout 10s imtest -s -u cyrus-admin -a cyrus-admin -w $(grep ^admin_password /etc/kolab/kolab.conf | awk '{print $3}') -p 9993 localhost ; retval=$(( ${retval} + $? )) guam stop +echo "uid=doe,ou=People,dc=example,dc=org" | ldapdelete -x -h localhost -D "cn=Directory Manager" -w Welcome2KolabSystems + set - -x if [ ${retval} -ne 0 ]; then exit ${retval} fi popd