diff options
author | eh552t <eh552t@intl.att.com> | 2018-07-04 14:43:49 +0200 |
---|---|---|
committer | eh552t <eh552t@intl.att.com> | 2018-07-04 16:02:11 +0200 |
commit | bc1d800f3ddce555de9c17518ef7e74126fb028f (patch) | |
tree | 217152e788f2cf7b5e3f401dc346cbb50355b6d3 /test/csit/scripts/clamp/start_clamp_containers.sh | |
parent | bc76450dfae26da5364b4ef79535314598e04a1c (diff) |
Fix https issue + create session globally
Change-Id: I94ef9a15a04f969ae036794f99d44c9d3d57564a
Signed-off-by: eh552t <eh552t@intl.att.com>
Issue-ID: CLAMP-194
Diffstat (limited to 'test/csit/scripts/clamp/start_clamp_containers.sh')
-rwxr-xr-x | test/csit/scripts/clamp/start_clamp_containers.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/csit/scripts/clamp/start_clamp_containers.sh b/test/csit/scripts/clamp/start_clamp_containers.sh index 11ddda1e4..dc0b4fe41 100755 --- a/test/csit/scripts/clamp/start_clamp_containers.sh +++ b/test/csit/scripts/clamp/start_clamp_containers.sh @@ -28,11 +28,11 @@ echo "This is ${WORKSPACE}/test/csit/scripts/clamp/start_clamp_containers.sh" docker-compose up -d # WAIT 5 minutes maximum and test every 5 seconds if Clamp up using HealthCheck API -TIME_OUT=1200 +TIME_OUT=600 INTERVAL=5 TIME=0 while [ "$TIME" -lt "$TIME_OUT" ]; do - response=$(curl --write-out '%{http_code}' --silent --output /dev/null http://localhost:8080/restservices/clds/v1/clds/healthcheck); echo $response + response=$(curl --write-out '%{http_code}' --silent --output /dev/null -vk --key config/org.onap.clamp.keyfile https://localhost:8443/restservices/clds/v1/clds/healthcheck); echo $response if [ "$response" == "200" ]; then echo Clamp and its database well started in $TIME seconds @@ -46,12 +46,13 @@ done if [ "$TIME" -ge "$TIME_OUT" ]; then echo TIME OUT: Docker containers not started in $TIME_OUT seconds... Could cause problems for tests... + exit 1; fi # To avoid some problem because templates not yet read TIME=0 while [ "$TIME" -lt "$TIME_OUT" ]; do - response=$(curl --write-out '%{http_code}' --silent --output /dev/null -u admin:password http://localhost:8080/restservices/clds/v1/cldsTempate/template-names); echo $response + response=$(curl --write-out '%{http_code}' --silent --output /dev/null -u admin:password -vk --key config/org.onap.clamp.keyfile https://localhost:8443/restservices/clds/v1/cldsTempate/template-names); echo $response if [ "$response" == "200" ]; then echo Templates well available @@ -65,4 +66,5 @@ done if [ "$TIME" -ge "$TIME_OUT" ]; then echo TIME OUT: Templates not available in $TIME_OUT seconds... Could cause problems for tests... + exit 1; fi |