3 \cp ./materials/l7directord-4-4-21-l7directord.cf ${L7DIRECTORD_CONF_DIR}/l7directord.cf
6 RealServer1=RealServer1
7 RealServer1_ADDR=127.0.0.1
9 start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT -S
12 echo "Test failed: start_lighttpd RealServer1"
16 RealServer2=RealServer2
17 RealServer2_ADDR=127.0.0.1
18 RealServer2_PORT=50002
19 start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT -S
22 echo "Test failed: start_lighttpd RealServer2"
30 echo "Test failed: $L7VSD"
36 $INIT_L7DIRECTORD start
39 echo "Test failed: $INIT_L7DIRECTORD start"
45 EXPECT="Layer-7 Virtual Server version 3.0.0
46 Prot LocalAddress:Port ProtoMod Scheduler
47 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
48 TCP 127.0.0.1:50000 sessionless rr
49 -> 127.0.0.1:50001 Masq 1 0 0
50 -> 127.0.0.1:50002 Masq 1 0 0 "
51 if [ "${RET}" != "${EXPECT}" ]
53 echo "Test failed: $L7VSADM -l -n"
57 echo "hoge" > ${TMP_DIR}/index.html
58 set_lighttpd_content $RealServer1 ${TMP_DIR}/index.html
59 set_lighttpd_content $RealServer2 ${TMP_DIR}/index.html
64 EXPECT="Layer-7 Virtual Server version 3.0.0
65 Prot LocalAddress:Port ProtoMod Scheduler
66 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
67 TCP 127.0.0.1:50000 sessionless rr
68 -> 127.0.0.1:50001 Masq 0 0 0
69 -> 127.0.0.1:50002 Masq 0 0 0 "
70 if [ "${RET}" != "${EXPECT}" ]
72 echo "Test failed: $L7VSADM -l -n"
76 echo "$RealServer1" > ${TMP_DIR}/index.html
77 set_lighttpd_content $RealServer1 ${TMP_DIR}/index.html
78 echo "$RealServer2" > ${TMP_DIR}/index.html
79 set_lighttpd_content $RealServer2 ${TMP_DIR}/index.html
84 EXPECT="Layer-7 Virtual Server version 3.0.0
85 Prot LocalAddress:Port ProtoMod Scheduler
86 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
87 TCP 127.0.0.1:50000 sessionless rr
88 -> 127.0.0.1:50001 Masq 1 0 0
89 -> 127.0.0.1:50002 Masq 1 0 0 "
90 if [ "${RET}" != "${EXPECT}" ]
92 echo "Test failed: $L7VSADM -l -n"