6 RealServer1=RealServer1
7 RealServer1_ADDR=127.0.0.1
9 start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
13 echo "Test failed: start_lighttpd RealServer1"
21 echo "Test failed: $L7VSD"
26 $L7VSADM -A -t 127.0.0.1:40001 -m ip
29 echo "Test failed: $L7VSADM -A -t localhost:40001 -m ip"
33 $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}
36 echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}"
40 RET=`wget -t 1 -qO- http://127.0.0.1:40001/`
41 if [ "${RET}" != "${RealServer1}" ]
43 echo "Test failed: wget -t 1 -qO- http://127.0.0.1:40001/"
47 $L7VSADM -d -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}
50 echo "Test failed: $L7VSADM -d -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}"
54 RET=`wget -t 1 -qO- http://127.0.0.1:40001/`
57 echo "Test failed: wget -t 1 -qO- http://127.0.0.1:40001/"
62 if [ "${RET}" = "${RealServer1}" ]
64 echo "Test failed: wget -t 1 -qO- http://127.0.0.1:40001/"