diff --git a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Hijack_Http_Tests.robot b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Hijack_Http_Tests.robot index 0c7640b..a7936a3 100644 --- a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Hijack_Http_Tests.robot +++ b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Hijack_Http_Tests.robot @@ -16,7 +16,7 @@ ${profiledId} ${EMPTY} *** Test Cases *** ProxyPolicy-Hijack-Http-00001 - [Tags] selfserver ip http Hijack + [Tags] selfserver http hijack ip+url Comment 创建目标IP ${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=CIDR|192.168.100.5|32|0/0 ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -55,7 +55,7 @@ ProxyPolicy-Hijack-Http-00001 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00002 - [Tags] selfserver ip+fqdn完整匹配 http Hijack + [Tags] selfserver http hijack ip+fqdn完整匹配+url Comment 创建fqdn ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -94,7 +94,7 @@ ProxyPolicy-Hijack-Http-00002 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00003 - [Tags] selfserver ip+cat右匹配 http Hijack + [Tags] selfserver http hijack ip+cat右匹配+url Comment 创建cat ${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*node.com ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -133,7 +133,7 @@ ProxyPolicy-Hijack-Http-00003 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00004 - [Tags] selfserver http Hijack ip+url右匹配 + [Tags] selfserver http hijack ip+url右匹配 Comment 创建url ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*xiaozhu.html ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -168,7 +168,7 @@ ProxyPolicy-Hijack-Http-00004 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00005 - [Tags] selfserver http Hijack ip+url字串匹配 + [Tags] selfserver http hijack ip+url字串匹配 Comment 创建url ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=test ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -203,7 +203,7 @@ ProxyPolicy-Hijack-Http-00005 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00006 - [Tags] selfserver http Hijack ip+url完整匹配 + [Tags] selfserver http hijack ip+url完整匹配 Comment 创建url ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$open.node.com/test/nationalbank/nationalbank.html ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -238,7 +238,7 @@ ProxyPolicy-Hijack-Http-00006 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00007 - [Tags] selfserver http Hijack ip+url左匹配 + [Tags] selfserver http hijack ip+url左匹配 Comment 创建url ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=open.node* ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -273,7 +273,7 @@ ProxyPolicy-Hijack-Http-00007 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00008 - [Tags] selfserver http Hijack ip+请求头右匹配 + [Tags] selfserver http hijack ip+请求头右匹配+url Comment 创建请求头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -312,7 +312,7 @@ ProxyPolicy-Hijack-Http-00008 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00009 - [Tags] selfserver http Hijack ip+请求头字串匹配 + [Tags] selfserver http hijack ip+请求头字串匹配+url Comment 创建请求头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Chrome|User-Agent ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -351,7 +351,7 @@ ProxyPolicy-Hijack-Http-00009 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00010 - [Tags] selfserver http Hijack ip+请求头完整匹配 + [Tags] selfserver http hijack ip+请求头完整匹配+url Comment 创建请求头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36|User-Agent ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -390,7 +390,7 @@ ProxyPolicy-Hijack-Http-00010 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00011 - [Tags] selfserver http Hijack ip+请求头左匹配 + [Tags] selfserver http hijack ip+请求头左匹配+url Comment 创建请求头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -429,7 +429,7 @@ ProxyPolicy-Hijack-Http-00011 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00012 - [Tags] selfserver http Hijack ip+cookie字串匹配 + [Tags] selfserver http hijack ip+cookie字串匹配+url Comment 创建cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -468,7 +468,7 @@ ProxyPolicy-Hijack-Http-00012 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00013 - [Tags] selfserver http Hijack ip+应答头右匹配 + [Tags] selfserver http hijack ip+应答头右匹配+url Comment 创建应答头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*charset=UTF-8|Content-Type ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -507,7 +507,7 @@ ProxyPolicy-Hijack-Http-00013 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00014 - [Tags] selfserver http Hijack ip+应答头字串匹配 + [Tags] selfserver http hijack ip+应答头字串匹配+url Comment 创建应答头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -546,7 +546,7 @@ ProxyPolicy-Hijack-Http-00014 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00015 - [Tags] selfserver http Hijack ip+应答头完整匹配 + [Tags] selfserver http hijack ip+应答头完整匹配+url Comment 创建应答头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html; charset=UTF-8|Content-Type ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -585,7 +585,7 @@ ProxyPolicy-Hijack-Http-00015 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00016 - [Tags] selfserver http Hijack ip+应答头左匹配 + [Tags] selfserver http hijack ip+应答头左匹配+url Comment 创建应答头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text/html*|Content-Type ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -624,7 +624,7 @@ ProxyPolicy-Hijack-Http-00016 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00017 - [Tags] selfserver http Hijack ip+set-cookie右匹配 + [Tags] selfserver http hijack ip+set-cookie右匹配+url Comment 创建set-cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*HttpOnly|Set-Cookie ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -663,7 +663,7 @@ ProxyPolicy-Hijack-Http-00017 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00018 - [Tags] selfserver http Hijack ip+set-cookie字串匹配 + [Tags] selfserver http hijack ip+set-cookie字串匹配+url Comment 创建set-cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Path=/tsgInterface|Set-Cookie ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -702,7 +702,7 @@ ProxyPolicy-Hijack-Http-00018 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00019 - [Tags] selfserver http Hijack ip+set-cookie完整匹配 + [Tags] selfserver http hijack ip+set-cookie完整匹配+url Comment 创建set-cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$12345678|Set-Cookie ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -741,7 +741,7 @@ ProxyPolicy-Hijack-Http-00019 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00020 - [Tags] selfserver http Hijack ip+set-cookie左匹配 + [Tags] selfserver http hijack ip+set-cookie左匹配+url Comment 创建set-cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=JSESSIONID*|Set-Cookie ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -780,7 +780,7 @@ ProxyPolicy-Hijack-Http-00020 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Hijack-Http-00021 - [Tags] selfserver 最大组合 http Hijack + [Tags] selfserver 最大组合 http hijack Comment 创建目标IP ${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=CIDR|192.168.100.5|32|0/0 ${rescode} ${objectId} AddObject2 ${1} ${objectDict}