5 # Run sorryserver (send in 5 sec)
6 PATH=$PATH:$COMMON_SCRIPT_DIR
7 test_server -p 20000 -t 5 ./materials/virtualservice-36-response.txt &
10 tmp_file="/tmp/`uuidgen`.log"
21 $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b 127.0.0.1:20000
24 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b 127.0.0.1:20000"
28 test_client2 -p 40001 > $tmp_file &
32 $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r 127.0.0.1:30000
35 echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r 127.0.0.1:30000"
41 # sorry server connection must be left
42 ps aux | grep "test_client2" | grep -v grep > /dev/null 2>&1
45 echo "Test failed: sorry server connection not found."
51 diff $tmp_file ./materials/virtualservice-36-response.txt > /dev/null 2>&1
54 echo "Test failed: Mismatch sorryserver response."