From c21eb1a40d5884812a20a1b7295722e903cd9b62 Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Thu, 4 Mar 2021 13:04:54 -0500 Subject: Update tests to use new netconf sim Updated netconf TLS tests to use new netconf simulator. Change-Id: I9c6706222bf0b7223c3cfe6416dee085fae9df6b Issue-ID: SDNC-1500 Signed-off-by: Dan Timoney --- plans/sdnc/sdnc_netconf_tls_post_deploy/setup.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'plans/sdnc') diff --git a/plans/sdnc/sdnc_netconf_tls_post_deploy/setup.sh b/plans/sdnc/sdnc_netconf_tls_post_deploy/setup.sh index e712ee1c..6f4e547e 100644 --- a/plans/sdnc/sdnc_netconf_tls_post_deploy/setup.sh +++ b/plans/sdnc/sdnc_netconf_tls_post_deploy/setup.sh @@ -151,6 +151,29 @@ if [ "$TIME" -ge "$TIME_OUT" ]; then exit 1; fi +# Check if certificate installation is done +TIME_OUT=300 +INTERVAL=10 +TIME=0 +while [ "$TIME" -lt "$TIME_OUT" ]; do + + docker-compose -f "${SCRIPTS}"/sdnc/sdnc/docker-compose.yml logs sdnc | grep 'Everything OK in Certificate Installation' + + if [ $? == 0 ] ; then + echo SDNC karaf started in $TIME seconds + break; + fi + + echo Sleep: $INTERVAL seconds before testing if SDNC is up. Total wait time up now is: $TIME seconds. Timeout is: $TIME_OUT seconds + sleep $INTERVAL + TIME=$(($TIME+$INTERVAL)) +done + +if [ "$TIME" -ge "$TIME_OUT" ]; then + echo TIME OUT: karaf session not started in $TIME_OUT seconds, setup failed + exit 1; +fi + # Update default Networking bridge IP in mount.json file sed -i "s/pnfaddr/${LOCAL_IP}/g" "${REQUEST_DATA_PATH}"/mount.xml -- cgit 1.2.3-korg