5 SorryServer1=SorryServer1
6 SorryServer1_ADDR=127.0.0.1
7 SorryServer1_PORT=50001
8 start_lighttpd -s $SorryServer1 -a $SorryServer1_ADDR -p $SorryServer1_PORT
11 echo "Test failed: start_lighttpd SorryServer1"
15 RealServer1=RealServer1
16 RealServer1_ADDR=127.0.0.1
17 RealServer1_PORT=50002
18 start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
21 echo "Test failed: start_lighttpd RealServer1"
29 echo "Test failed: $L7VSD"
34 $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -u 1
37 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -u 4"
41 $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT}
44 echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT}"
49 EXPECT="Layer-7 Virtual Server version 3.0.0
53 l7vsd_network_qos warn
54 l7vsd_network_bandwidth warn
55 l7vsd_network_num_connection warn
56 l7vsd_network_access warn
58 l7vsd_virtualservice warn
59 l7vsd_virtualservice_thread warn
61 l7vsd_session_thread warn
63 l7vsd_sorryserver warn
65 l7vsd_replication warn
66 l7vsd_replication_sendthread warn
72 l7vsd_system_memory warn
73 l7vsd_system_endpoint warn
74 l7vsd_system_signal warn
75 l7vsd_system_environment warn
87 cache update interval none
89 last request date none
91 total GET requests none
92 total SET requests none
93 total trap counts none
95 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
96 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
97 TCP localhost:40001 sessionless rr --sorry-uri '/' --statistic 0
98 -> localhost:50002 Masq 1 0 0
100 Sorry Server localhost:50001 Masq
108 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
110 TCP_DEFER_ACCEPT disable
115 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
116 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
118 HTTP Total Requests 0
120 HTTP POST Requests 0"
121 if [ "${RET}" != "${EXPECT}" ]
123 echo "Test failed: $L7VSADM -V"
127 $TEST_CLIENT 127.0.0.1 40001 &
132 RET=`$WGET -t 1 -qO- http://127.0.0.1:40001/`
133 if [ "${RET}" != "${SorryServer1}" ]
135 echo "Test failed: $WGET -t 1 -qO- http://127.0.0.1:40001/"
139 # kill active connect
143 echo "Test failed: kill ${CONNECT1}"
147 stop_lighttpd $RealServer1
148 stop_lighttpd $SorryServer1