@@ -29,12 +29,12 @@ docker cp MODCLUSTER-640/webapp1 tomcat2:/usr/local/tomcat/webapps/webapp1
2929sleep 12
3030
3131# test the URL
32- code=$( /usr/bin/curl -o /dev/null -s -m 20 --write-out ' %{http_code}' http://localhost:8000 /webapp1/index.html)
32+ code=$( /usr/bin/curl -o /dev/null -s -m 20 --write-out ' %{http_code}' http://localhost:8090 /webapp1/index.html)
3333if [ " ${code} " != " 200" ]; then
34- echo " nocanon test failed, we get ${code} on http://localhost:8000 /webapp1/index.html"
34+ echo " nocanon test failed, we get ${code} on http://localhost:8090 /webapp1/index.html"
3535 exit 1
3636fi
37- curl -v -m 20 " http://localhost:8000 /webapp1/jsr%3aroot/toto" | grep " jsr:root"
37+ curl -v -m 20 " http://localhost:8090 /webapp1/jsr%3aroot/toto" | grep " jsr:root"
3838if [ $? -eq 0 ]; then
3939 echo " nocanon test failed, we get \" jsr:root\" !!!"
4040 exit 1
@@ -49,12 +49,12 @@ docker exec MODCLUSTER-640 /usr/local/apache2/bin/apachectl restart
4949tomcat_wait_for_n_nodes 2
5050
5151# test the URL
52- code=$( /usr/bin/curl -o /dev/null -s -m 20 --write-out ' %{http_code}' http://localhost:8000 /webapp1/index.html)
52+ code=$( /usr/bin/curl -o /dev/null -s -m 20 --write-out ' %{http_code}' http://localhost:8090 /webapp1/index.html)
5353if [ " ${code} " != " 200" ]; then
54- echo " nocanon test failed, we get ${code} on http://localhost:8000 /webapp1/index.html"
54+ echo " nocanon test failed, we get ${code} on http://localhost:8090 /webapp1/index.html"
5555 exit 1
5656fi
57- curl -v -m 20 " http://localhost:8000 /webapp1/jsr%3aroot/toto" | grep " jsr:root"
57+ curl -v -m 20 " http://localhost:8090 /webapp1/jsr%3aroot/toto" | grep " jsr:root"
5858if [ $? -ne 0 ]; then
5959 echo " NO nocanon test failed, we don't get \" jsr:root\" !!!"
6060 exit 1
@@ -68,12 +68,12 @@ docker exec MODCLUSTER-640 /usr/local/apache2/bin/apachectl restart
6868tomcat_wait_for_n_nodes 2
6969
7070# test the URL
71- code=$( /usr/bin/curl -o /dev/null -s -m 20 --write-out ' %{http_code}' http://localhost:8000 /webapp1/index.html)
71+ code=$( /usr/bin/curl -o /dev/null -s -m 20 --write-out ' %{http_code}' http://localhost:8090 /webapp1/index.html)
7272if [ " ${code} " != " 200" ]; then
73- echo " nocanon test failed, we get ${code} on http://localhost:8000 /webapp1/index.html"
73+ echo " nocanon test failed, we get ${code} on http://localhost:8090 /webapp1/index.html"
7474 exit 1
7575fi
76- curl -v -m 20 " http://localhost:8000 /webapp1/jsr%3aroot/toto" | grep " jsr:root"
76+ curl -v -m 20 " http://localhost:8090 /webapp1/jsr%3aroot/toto" | grep " jsr:root"
7777if [ $? -eq 0 ]; then
7878 echo " nocanon test failed, we get \" jsr:root\" !!!"
7979 tomcat_all_remove
0 commit comments