3 \cp ./materials/l7directord-4-4-27-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 -l ${L7VS_LOG_DIR}/l7directord-4-4-27-real1-access.log -S
13 echo "Test failed: start_lighttpd RealServer1"
17 RealServer2=RealServer2
18 RealServer2_ADDR=127.0.0.1
19 RealServer2_PORT=50002
20 start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT -l ${L7VS_LOG_DIR}/l7directord-4-4-27-real2-access.log -S
24 echo "Test failed: start_lighttpd RealServer2"
28 echo "test" > ${TMP_DIR}/100M.dat
29 set_lighttpd_content $RealServer1 ${TMP_DIR}/100M.dat
30 set_lighttpd_content $RealServer2 ${TMP_DIR}/100M.dat
36 echo "Test failed: $L7VSD"
42 $INIT_L7DIRECTORD start
45 echo "Test failed: $INIT_L7DIRECTORD start"
50 dd if=/dev/zero of=${TMP_DIR}/100M.dat bs=1024 count=102400
51 set_lighttpd_content $RealServer1 ${TMP_DIR}/100M.dat
52 set_lighttpd_content $RealServer2 ${TMP_DIR}/100M.dat
55 $INIT_L7DIRECTORD stop
58 echo "Test failed: $INIT_L7DIRECTORD stop"
62 RET=`cat ${L7VS_LOG_DIR}/l7directord.log | grep "\[WRN1102\] Service check NG. HTTP response is not ok. Response status line is .500 SSL read timeout: ' (real - .127.0.0.1:50001')"`
65 echo "Test failed: ${L7VS_LOG_DIR}/l7directord.log"
69 RET=`cat ${L7VS_LOG_DIR}/l7directord.log | grep "\[WRN1102\] Service check NG. HTTP response is not ok. Response status line is .500 SSL read timeout: ' (real - .127.0.0.1:50002')"`
72 echo "Test failed: ${L7VS_LOG_DIR}/l7directord.log"