OSDN Git Service

Bug fix. (Line 162: /usr/sbin/l7vsd -b => /usr/sbin/l7vsd)
[ultramonkey-l7/ultramonkey-l7-v3.git] / test / script / l7vsadm / l7vsadm-4-1-9-2.sh
1 #!/bin/bash
2
3 . ${SET_DEFAULT_CONF}
4
5 #Add Service
6 $L7VSD
7 if [ $? -ne 0 ]
8 then
9         echo "Test failed: $L7VSD"
10         exit 1
11 fi
12 usleep 100000
13
14 RET=`$L7VSADM -A -t 333.333.333.333:3333 -m ip 2>&1 | grep "PARSE ERROR:"`
15 EXPECT="PARSE ERROR: target endpoint parse error(--tcp-service): invalid endpoint:Host not found (authoritative):333.333.333.333:3333"
16 if [ "$RET" != "$EXPECT" ]
17 then
18         echo "Test failed: $L7VSADM -A -t 333.333.333.333:3333 -m ip"
19         exit 1
20 fi
21
22 exit 0
23