diff options
Diffstat (limited to 'test/csit/plans/sdnc/healthcheck/setup.sh')
-rw-r--r-- | test/csit/plans/sdnc/healthcheck/setup.sh | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/test/csit/plans/sdnc/healthcheck/setup.sh b/test/csit/plans/sdnc/healthcheck/setup.sh index 5e51b0e6a..3ffed5d26 100644 --- a/test/csit/plans/sdnc/healthcheck/setup.sh +++ b/test/csit/plans/sdnc/healthcheck/setup.sh @@ -37,7 +37,7 @@ fi # Clone SDNC repo to get docker-compose for SDNC mkdir -p $WORKSPACE/archives/sdnc cd $WORKSPACE/archives -git clone -b master --single-branch http://gerrit.onap.org/r/sdnc/oam.git sdnc +git clone -b master --single-branch --depth=1 http://gerrit.onap.org/r/sdnc/oam.git sdnc cd $WORKSPACE/archives/sdnc git pull unset http_proxy https_proxy @@ -55,13 +55,21 @@ docker tag $NEXUS_DOCKER_REPO/onap/ccsdk-dgbuilder-image:$CCSDK_DOCKER_IMAGE_VER docker pull $NEXUS_DOCKER_REPO/onap/admportal-sdnc-image:$DOCKER_IMAGE_VERSION docker tag $NEXUS_DOCKER_REPO/onap/admportal-sdnc-image:$DOCKER_IMAGE_VERSION onap/admportal-sdnc-image:latest +docker pull $NEXUS_DOCKER_REPO/onap/sdnc-ueb-listener-image:$DOCKER_IMAGE_VERSION +docker tag $NEXUS_DOCKER_REPO/onap/sdnc-ueb-listener-image:$DOCKER_IMAGE_VERSION onap/sdnc-ueb-listener-image:latest + +docker pull $NEXUS_DOCKER_REPO/onap/sdnc-dmaap-listener-image:$DOCKER_IMAGE_VERSION + +docker tag $NEXUS_DOCKER_REPO/onap/sdnc-dmaap-listener-image:$DOCKER_IMAGE_VERSION onap/sdnc-dmaap-listener-image:latest + + # start SDNC containers with docker compose and configuration from docker-compose.yml curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > docker-compose chmod +x docker-compose ./docker-compose up -d -# WAIT 5 minutes maximum and test every 5 seconds if SDNC is up using HealthCheck API -TIME_OUT=500 +# WAIT 10 minutes maximum and test every 5 seconds if SDNC is up using HealthCheck API +TIME_OUT=1000 INTERVAL=30 TIME=0 while [ "$TIME" -lt "$TIME_OUT" ]; do @@ -120,8 +128,8 @@ if [ "$num_failed_bundles" -ge 1 ]; then echo " $failed_bundles" fi -# Sleep additional 120 to give application time to finish -sleep 120 +# Sleep additional 5 minutes (300 secs) to give application time to finish +sleep 300 # Pass any variables required by Robot test suites in ROBOT_VARIABLES ROBOT_VARIABLES="-v SCRIPTS:${SCRIPTS}" |