Skip to content

Commit

Permalink
Add debug prints into JBCS-1236 test (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
jajik committed Jul 18, 2023
1 parent 674c627 commit 526f029
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions test/JBCS-1236/testit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,49 @@ runjbcs1236() {
fi
# cycle the tomcats
runtomcatbatch
echo "##########"
echo "After tomcatbacth"
echo "Nodes are:"
for d in $(docker ps --format {{.Names}}); do echo " $d"; done
echo "##########"
sleep 20

if [ $? -ne 0 ]; then
echo "runtomcatbatch: runjbcs1236 Failed!"
clean_and_exit
fi
tomcat_shutdown 2 0

echo "##########"
echo "After tomcat2 shutdown"
echo "Nodes are:"
for d in $(docker ps --format {{.Names}}); do echo " $d"; done
echo "##########"
sleep 20

tomcat_wait_for_n_nodes 2
if [ $? -ne 0 ]; then
echo "tomcat_wait_for_n_nodes 2: runjbcs1236 Failed!"
clean_and_exit
fi
tomcat_remove 2

echo "##########"
echo "Sleep I before starting tomcat5"
echo "Nodes are:"
for d in $(docker ps --format {{.Names}}); do echo " $d"; done
echo "##########"
sleep 20

tomcat_start 5 0

echo "##########"
echo "After tomcat5 is started"
echo "Nodes are:"
for d in $(docker ps --format {{.Names}}); do echo " $d"; done
echo "##########"
sleep 20

tomcat_wait_for_n_nodes 3
if [ $? -ne 0 ]; then
echo "tomcat_wait_for_n_nodes 3: runjbcs1236 Failed!"
Expand Down Expand Up @@ -254,16 +285,33 @@ runjbcs1236() {
echo "tomcat_test_app 2: runjbcs1236 Failed!"
clean_and_exit
fi

echo "##########"
echo "Sleep II before shutting down tomcat5"
echo "Nodes are:"
for d in $(docker ps --format {{.Names}}); do echo " $d"; done
echo "##########"
sleep 20

# we have 5 3 4 2 in shared memory
# if something was wrong 2 points to 5
tomcat_shutdown 5 0
echo "##########"
echo "Nodes after shutdown:"
for d in $(docker ps --format {{.Names}}); do echo " $d"; done
echo "##########"
tomcat_wait_for_n_nodes 3
if [ $? -ne 0 ]; then
echo "tomcat_wait_for_n_nodes 3: runjbcs1236 Failed!"
clean_and_exit
fi
tomcat_remove 5

echo "##########"
echo "After tomcat5 removal before 2, 3, 4 tests; NODEs are:"
for d in $(docker ps --format {{.Names}}); do echo " $d"; done
echo "##########"

tomcat_test_app 2
if [ $? -ne 0 ]; then
echo "tomcat_test_app 2: runjbcs1236 Failed!"
Expand Down

0 comments on commit 526f029

Please sign in to comment.