diff options
author | Leonardo Bellini <leonardo.bellini@att.com> | 2018-03-09 07:34:07 -0600 |
---|---|---|
committer | Leonardo Bellini <leonardo.bellini@att.com> | 2018-03-12 04:50:43 -0500 |
commit | 293263e2d78c373ebb219744830f4989e330e224 (patch) | |
tree | 327d1ab55442617af63fe33cfa6a7b64df2f003c /test/csit/plans/music/music-test-plan | |
parent | 320b3de582bfdde19ce9da087d26d3032e84a46b (diff) |
correction to pass 1 failed CSIT test
Issue-ID: MUSIC-52
Change-Id: I789055f770d73a2d2d3c551e6457f57a659231a7
Signed-off-by: Leonardo Bellini <leonardo.bellini@att.com>
Diffstat (limited to 'test/csit/plans/music/music-test-plan')
-rwxr-xr-x | test/csit/plans/music/music-test-plan/setup.sh | 6 | ||||
-rwxr-xr-x | test/csit/plans/music/music-test-plan/teardown.sh | 21 |
2 files changed, 20 insertions, 7 deletions
diff --git a/test/csit/plans/music/music-test-plan/setup.sh b/test/csit/plans/music/music-test-plan/setup.sh index 228aa1f2f..900ccf660 100755 --- a/test/csit/plans/music/music-test-plan/setup.sh +++ b/test/csit/plans/music/music-test-plan/setup.sh @@ -46,7 +46,7 @@ cp ${MUSIC_SOURCE_PROPERTIES}/* ${MUSIC_PROPERTIES} echo "# music docker containers spinoff"; -docker volume create music-vol +docker volume create --name music-vol docker run -d --name music-war -v music-vol:/app nexus3.onap.org:10001/onap/music/music:latest docker run -d --name music-db -p 7000:7000 -p 7001:7001 -p 7199:7199 -p 9042:9042 -p 9160:9160 nexus3.onap.org:10001/onap/music/cassandra_music:latest docker run -d --name music-zk -p 2181:2181 -p 2888:2888 -p 3888:3888 nexus3.onap.org:10001/library/zookeeper:3.4 @@ -61,10 +61,12 @@ echo "ZOOKEEPER_IP=${ZOO_IP}" ${WORKSPACE}/test/csit/scripts/music/music-scripts/wait_for_port.sh ${CASSA_IP} 9042 docker run -d --name music-tomcat -p 8080:8080 -v music-vol:/usr/local/tomcat/webapps -v ${MUSIC_PROPERTIES}:/opt/app/music/etc:ro -v ${MUSIC_LOGS}:/opt/app/music/logs nexus3.onap.org:10001/library/tomcat:8.0 +sleep 10 TOMCAT_IP=`docker inspect --format '{{ .NetworkSettings.Networks.bridge.IPAddress}}' music-tomcat` echo "TOMCAT_IP=${TOMCAT_IP}" +${WORKSPACE}/test/csit/scripts/music/music-scripts/wait_for_port.sh ${TOMCAT_IP} 8080 --- old part: it will be removed @@ -80,7 +82,7 @@ echo "TOMCAT_IP=${TOMCAT_IP}" # add here all ROBOT_VARIABLES settings # echo "# music robot variables settings"; -ROBOT_VARIABLES="-v MUSIC_HOSTNAME:http://localhost -v MUSIC_PORT:8080 -v COND_HOSTNAME:http://localhost -v COND_PORT:8091" +ROBOT_VARIABLES="-v MUSIC_HOSTNAME:http://${TOMCAT_IP} -v MUSIC_PORT:8080 -v COND_HOSTNAME:http://localhost -v COND_PORT:8091" echo ${ROBOT_VARIABLES} diff --git a/test/csit/plans/music/music-test-plan/teardown.sh b/test/csit/plans/music/music-test-plan/teardown.sh index 0806eb273..315be04a8 100755 --- a/test/csit/plans/music/music-test-plan/teardown.sh +++ b/test/csit/plans/music/music-test-plan/teardown.sh @@ -24,13 +24,24 @@ echo "#"; echo "# music scripts docker containers killing"; echo "#"; echo "##########################################################"; -kill-instance.sh music-tomcat -kill-instance.sh music-war -kill-instance.sh music-zk -kill-instance.sh music-db +docker stop music-tomcat +docker stop music-war +docker stop music-zk +docker stop music-db + +docker rm music-zk +docker rm music-tomcat +docker rm music-war +docker rm music-db + docker volume rm music-vol -rm -Rf /tmp/music +echo "dump music.log files" +ls -alF /tmp/music +ls -alF /tmp/music/properties +cat /tmp/music/logs/MUSIC/music.log + +#rm -Rf /tmp/music |