@@ -35,6 +35,7 @@ function generic_wait_for_log () {
return 1
}
functionwait_for_log_message () {
generic_wait_for_log $1"$2""log message""log message has not appeared"
}
@@ -44,6 +45,29 @@ function wait_for_midpoint_start () {
generic_wait_for_log $1"INFO (com.evolveum.midpoint.web.boot.MidPointSpringApplication): Started MidPointSpringApplication in""midPoint to start""midPoint did not start"$2
}
# Waits until Shibboleth IDP starts ... TODO refactor using generic waiting function
functionwait_for_shibboleth_idp_start () {
CONTAINER_NAME=$1
ATTEMPT=0
MAX_ATTEMPTS=20
DELAY=10
until [[ $ATTEMPT=$MAX_ATTEMPTS ]];do
ATTEMPT=$((ATTEMPT+1))
echo"Waiting $DELAY seconds for Shibboleth IDP to start (attempt $ATTEMPT) ..."