The test suite we use to indicate functional acceptance of a machine instance
3 files modified
16 ■■■■ changed files
tests/p_tomcat/1-config_tomcat.sh 2 ●●● patch | view | raw | blame | history
tests/p_tomcat/tomcat_manager_test.sh 8 ●●●● patch | view | raw | blame | history
tests/p_tomcat/tomcat_test.sh 6 ●●●●● patch | view | raw | blame | history
tests/p_tomcat/1-config_tomcat.sh
@@ -24,7 +24,7 @@
service $TOMCAT_SRV_NAME restart
# we need extra sec for tomcat (and even more time for armhfp)
if [ "$uname_arch" == "armv7l" ]; then
if [ "$uname_arch" == "armv7l" ] ; then
  sleep_time="300"
else
  sleep_time="10"
tests/p_tomcat/tomcat_manager_test.sh
@@ -1,8 +1,12 @@
#!/bin/sh
# Author: Athmane Madjoudj <athmanem@gmail.com>
uname_arch=$(uname -m)
if [ "$uname_arch" == "i686" ] ; then
t_Log "Skipping $0 on $uname_arch"
exit 0
else
t_Log "Running $0 - Tomcat Web Application Manager test."
fi
curl -u admin:admin -s http://localhost:8080/manager/html | grep "Tomcat Web Application Manager"  >/dev/null 2>&1
t_CheckExitStatus $?
tests/p_tomcat/tomcat_test.sh
@@ -1,7 +1,13 @@
#!/bin/sh
# Author: Athmane Madjoudj <athmanem@gmail.com>
uname_arch=$(uname -m)
if [ "$uname_arch" == "i686" ] ; then
t_Log "Skipping $0 on $uname_arch"
exit 0
else
t_Log "Running $0 - Tomcat basic test."
fi
if [ "$centos_ver" = "7" ] ; then
 string_tosearch="you've successfully installed Tomcat. Congratulations!"