aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Brady <patrick.brady@att.com>2019-03-19 11:24:55 -0700
committerPatrick Brady <patrick.brady@att.com>2019-03-19 18:28:09 +0000
commit78e9b949505245ad8efcdc319107039e333da573 (patch)
treee7940327a355b2ba4465d4f86f464942dc71564d
parent80c7ca3eb3509163ebf5a4f94a7fdc37fc4fc16a (diff)
Test for working karaf
Check if the karaf client can be run, and if it doesn not return the expected echo value, fail the build since the installs will not work in this state. Change-Id: I4b6b4ad4a3197ad0c56e1bf4c33acf061630ba33 Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1549
-rw-r--r--installation/appc/src/main/scripts/dockerInstall.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/installation/appc/src/main/scripts/dockerInstall.sh b/installation/appc/src/main/scripts/dockerInstall.sh
index a183155..264e8d9 100644
--- a/installation/appc/src/main/scripts/dockerInstall.sh
+++ b/installation/appc/src/main/scripts/dockerInstall.sh
@@ -40,6 +40,15 @@ ${ODL_HOME}/bin/start
echo "Waiting ${SLEEP_TIME} seconds for OpenDaylight to initialize"
sleep ${SLEEP_TIME}
+echo "Checking that Karaf can be accessed"
+clientOutput=$(${ODL_HOME}/bin/client shell:echo KarafLoginCheckIsWorking)
+if echo "$clientOutput" | grep -q "KarafLoginCheckIsWorking"; then
+echo "Karaf login succeeded"
+else
+echo "Error during Karaf login"
+exit 1
+fi
+
echo "Copying a working version of the logging configuration into the opendaylight etc folder"
cp ${APPC_HOME}/data/org.ops4j.pax.logging.cfg ${ODL_HOME}/etc/org.ops4j.pax.logging.cfg
echo "Copying a new version of aaf cadi shiro into the opendaylight deploy folder"