3 \cp ./materials/l7directord-4-4-17-l7directord.cf ${L7DIRECTORD_CONF_DIR}/l7directord.cf
5 # Run server (sleep 0 sec. 200 OK)
6 PATH=$PATH:$COMMON_SCRIPT_DIR
7 test_server -p 20000 ./materials/l7directord-4-4-17-response.txt &
26 # [WRN0203] Service check OK. HTTP response is valid. HTTP response status line is `200 OK'
27 grep "WRN0203.*200 OK" ${L7VS_LOG_DIR}/l7directord.log > /dev/null 2>&1
30 echo "Test failed: Cannot find '200 OK' health check log"
34 # Run server (spend 5 sec. 200 OK)
35 test_server -p 20000 -t 5 ./materials/l7directord-4-4-17-response.txt &
39 # [WRN1102] Service check NG. HTTP response is not ok. Response status line is ...
40 grep "WRN1102" ${L7VS_LOG_DIR}/l7directord.log > /dev/null 2>&1
43 echo "Test failed: Cannot find health check timeout log"
48 stop_l7directord || exit 1