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 SorryServer2=SorryServer2
16 SorryServer2_ADDR=[::1]
17 SorryServer2_PORT=50002
18 start_lighttpd -s $SorryServer2 -a $SorryServer2_ADDR -p $SorryServer2_PORT -i
21 echo "Test failed: start_lighttpd SorryServer2"
29 echo "Test failed: $L7VSD"
34 $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M
37 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M"
41 $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --masq
44 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --masq"
48 $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M
51 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M"
55 $L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq
58 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --masq"
63 EXPECT="Layer-7 Virtual Server version 3.0.0
67 l7vsd_network_qos warn
68 l7vsd_network_bandwidth warn
69 l7vsd_network_num_connection warn
70 l7vsd_network_access warn
72 l7vsd_virtualservice warn
73 l7vsd_virtualservice_thread warn
75 l7vsd_session_thread warn
77 l7vsd_sorryserver warn
79 l7vsd_replication warn
80 l7vsd_replication_sendthread warn
86 l7vsd_system_memory warn
87 l7vsd_system_endpoint warn
88 l7vsd_system_signal warn
89 l7vsd_system_environment warn
101 cache update interval none
103 last request date none
105 total GET requests none
106 total SET requests none
107 total trap counts none
109 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
110 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
111 TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0
113 Sorry Server 127.0.0.1:50001 Masq
121 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
123 TCP_DEFER_ACCEPT disable
128 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
129 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
131 HTTP Total Requests 0
134 TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
136 Sorry Server 127.0.0.1:50001 Masq
144 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
146 TCP_DEFER_ACCEPT disable
151 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
152 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
154 HTTP Total Requests 0
157 TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0
159 Sorry Server [::1]:50002 Masq
167 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
169 TCP_DEFER_ACCEPT disable
174 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
175 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
177 HTTP Total Requests 0
180 TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0
182 Sorry Server [::1]:50002 Masq
190 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
192 TCP_DEFER_ACCEPT disable
197 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
198 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
200 HTTP Total Requests 0
202 HTTP POST Requests 0"
203 if [ "${RET}" != "${EXPECT}" ]
205 echo "Test failed: $L7VSADM -V -n"