Merge branch 'develop' of https://git.mesalab.cn/dongxiaoyan/tsg_autotest.git into develop
This commit is contained in:
@@ -14,7 +14,7 @@ ${objectids} ${EMPTY}
|
||||
|
||||
*** Test Cases ***
|
||||
ProxyPolicy-Allow-Http-00001
|
||||
[Tags] selfserver ip http Allow
|
||||
[Tags] selfserver ip http allow
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*xiaozhu.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -46,7 +46,7 @@ ProxyPolicy-Allow-Http-00001
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00002
|
||||
[Tags] selfserver ip+fqdn完整匹配 http Allow
|
||||
[Tags] selfserver ip+fqdn完整匹配 http allow
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com
|
||||
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
||||
@@ -82,7 +82,7 @@ ProxyPolicy-Allow-Http-00002
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00003
|
||||
[Tags] selfserver ip+cat右匹配 http Allow
|
||||
[Tags] selfserver ip+cat右匹配 http allow
|
||||
Comment 创建cat
|
||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*node.com
|
||||
${rescode} ${object_cat_Id} AddObject2 ${1} ${objectDict}
|
||||
@@ -118,7 +118,7 @@ ProxyPolicy-Allow-Http-00003
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00004
|
||||
[Tags] selfserver http Allow ip+url右匹配
|
||||
[Tags] selfserver http allow ip+url右匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*xiaozhu.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -150,7 +150,7 @@ ProxyPolicy-Allow-Http-00004
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00005
|
||||
[Tags] selfserver http Allow ip+url字串匹配
|
||||
[Tags] selfserver http allow ip+url字串匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=test
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -182,9 +182,9 @@ ProxyPolicy-Allow-Http-00005
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00006
|
||||
[Tags] selfserver http Allow ip+url完整匹配
|
||||
[Tags] selfserver http allow ip+url完整匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$open.node.com/test/nationalbank/nationalbank.html
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$open.node.com/test/tengrinews/tengrinews.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
${objectids} set Variable ${objectId}
|
||||
Comment 创建安全策略
|
||||
@@ -200,10 +200,10 @@ ProxyPolicy-Allow-Http-00006
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${policyId3}]}
|
||||
${policyIds} Create List ${policyId1} ${policyId2}
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/ProxyPolicy-Redirect-HTTP-0003.bat
|
||||
... ELSE set variable curl -kv http://open.node.com/test/nationalbank/nationalbank.html
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List switch=kazakh
|
||||
... ELSE Create List switch=kazakh
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/ProxyPolicy-Allow-HTTP-0001.bat
|
||||
... ELSE set variable curl \ http://open.node.com/test/tengrinews/tengrinews.html
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List экономике
|
||||
... ELSE Create List экономике
|
||||
${starttime} Get Time
|
||||
Sleep ${policyVerificationSleepSeconds}s
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
@@ -214,7 +214,7 @@ ProxyPolicy-Allow-Http-00006
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00007
|
||||
[Tags] selfserver http Allow ip+url左匹配
|
||||
[Tags] selfserver http allow ip+url左匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=open.node*
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -246,7 +246,7 @@ ProxyPolicy-Allow-Http-00007
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00008
|
||||
[Tags] selfserver http Allow ip+请求头右匹配
|
||||
[Tags] selfserver http allow ip+请求头右匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -282,7 +282,7 @@ ProxyPolicy-Allow-Http-00008
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00009
|
||||
[Tags] selfserver http Allow ip+请求头字串匹配
|
||||
[Tags] selfserver http allow ip+请求头字串匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Chrome|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -318,7 +318,7 @@ ProxyPolicy-Allow-Http-00009
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00010
|
||||
[Tags] selfserver http Allow ip+请求头完整匹配
|
||||
[Tags] selfserver http allow ip+请求头完整匹配
|
||||
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}
|
||||
@@ -354,7 +354,7 @@ ProxyPolicy-Allow-Http-00010
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00011
|
||||
[Tags] selfserver http Allow ip+请求头左匹配
|
||||
[Tags] selfserver http allow ip+请求头左匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -390,7 +390,7 @@ ProxyPolicy-Allow-Http-00011
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00012
|
||||
[Tags] selfserver http Allow ip+cookie字串匹配
|
||||
[Tags] selfserver http allow ip+cookie字串匹配
|
||||
Comment 创建cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -426,7 +426,7 @@ ProxyPolicy-Allow-Http-00012
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00013
|
||||
[Tags] selfserver http Allow ip+应答头右匹配
|
||||
[Tags] selfserver http allow ip+应答头右匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*charset=UTF-8|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -462,7 +462,7 @@ ProxyPolicy-Allow-Http-00013
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00014
|
||||
[Tags] selfserver http Allow ip+应答头字串匹配
|
||||
[Tags] selfserver http allow ip+应答头字串匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -498,7 +498,7 @@ ProxyPolicy-Allow-Http-00014
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00015
|
||||
[Tags] selfserver http Allow ip+应答头完整匹配
|
||||
[Tags] selfserver http allow ip+应答头完整匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html; charset=utf-8|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -534,7 +534,7 @@ ProxyPolicy-Allow-Http-00015
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00016
|
||||
[Tags] selfserver http Allow ip+应答头左匹配
|
||||
[Tags] selfserver http allow ip+应答头左匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text/html*|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -570,7 +570,7 @@ ProxyPolicy-Allow-Http-00016
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00017
|
||||
[Tags] selfserver http Allow ip+set-cookie右匹配
|
||||
[Tags] selfserver http allow ip+set-cookie右匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*HttpOnly|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -606,7 +606,7 @@ ProxyPolicy-Allow-Http-00017
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00018
|
||||
[Tags] selfserver http Allow ip+set-cookie字串匹配
|
||||
[Tags] selfserver http allow ip+set-cookie字串匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Path=/tsgInterface|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -642,7 +642,7 @@ ProxyPolicy-Allow-Http-00018
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00019
|
||||
[Tags] selfserver http Allow ip+set-cookie完整匹配
|
||||
[Tags] selfserver http allow ip+set-cookie完整匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$12345678|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -678,7 +678,7 @@ ProxyPolicy-Allow-Http-00019
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00020
|
||||
[Tags] selfserver http Allow ip+set-cookie左匹配
|
||||
[Tags] selfserver http allow ip+set-cookie左匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=JSESSIONID*|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -714,7 +714,7 @@ ProxyPolicy-Allow-Http-00020
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Http-00021
|
||||
[Tags] selfserver 最大组合 http Allow
|
||||
[Tags] selfserver 最大组合 http allow
|
||||
Comment 创建目标IP
|
||||
${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=CIDR|192.168.100.5|32|0/0
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
|
||||
@@ -14,7 +14,7 @@ ${objectids} ${EMPTY}
|
||||
|
||||
*** Test Cases ***
|
||||
ProxyPolicy-Allow-Ssl-00001
|
||||
[Tags] selfserver ip ssl Allow
|
||||
[Tags] selfserver ip ssl allow
|
||||
Comment 创建目标IP
|
||||
${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=CIDR|192.168.100.5|32|0/0
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -46,7 +46,7 @@ ProxyPolicy-Allow-Ssl-00001
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00002
|
||||
[Tags] selfserver ip+fqdn完整匹配 ssl Allow
|
||||
[Tags] selfserver ip+fqdn完整匹配 ssl allow
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com
|
||||
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
||||
@@ -82,7 +82,7 @@ ProxyPolicy-Allow-Ssl-00002
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00003
|
||||
[Tags] selfserver ip+cat右匹配 ssl Allow
|
||||
[Tags] selfserver ip+cat右匹配 ssl allow
|
||||
Comment 创建cat
|
||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*node.com
|
||||
${rescode} ${object_cat_Id} AddObject2 ${1} ${objectDict}
|
||||
@@ -118,7 +118,7 @@ ProxyPolicy-Allow-Ssl-00003
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00004
|
||||
[Tags] selfserver ssl Allow ip+url右匹配
|
||||
[Tags] selfserver ssl allow ip+url右匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*rutube.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -150,7 +150,7 @@ ProxyPolicy-Allow-Ssl-00004
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00005
|
||||
[Tags] selfserver ssl Allow ip+url字串匹配
|
||||
[Tags] selfserver ssl allow ip+url字串匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=test
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -182,7 +182,7 @@ ProxyPolicy-Allow-Ssl-00005
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00006
|
||||
[Tags] selfserver ssl Allow ip+url完整匹配
|
||||
[Tags] selfserver ssl allow ip+url完整匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$open.node.com/test/bytedance/bytedance.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -214,7 +214,7 @@ ProxyPolicy-Allow-Ssl-00006
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00007
|
||||
[Tags] selfserver ssl Allow ip+url左匹配
|
||||
[Tags] selfserver ssl allow ip+url左匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=open.node*
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -246,7 +246,7 @@ ProxyPolicy-Allow-Ssl-00007
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00008
|
||||
[Tags] selfserver ssl Allow ip+请求头右匹配
|
||||
[Tags] selfserver ssl allow ip+请求头右匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -282,7 +282,7 @@ ProxyPolicy-Allow-Ssl-00008
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00009
|
||||
[Tags] selfserver ssl Allow ip+请求头字串匹配
|
||||
[Tags] selfserver ssl allow ip+请求头字串匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Chrome|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -318,7 +318,7 @@ ProxyPolicy-Allow-Ssl-00009
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00010
|
||||
[Tags] selfserver ssl Allow ip+请求头完整匹配
|
||||
[Tags] selfserver ssl allow ip+请求头完整匹配
|
||||
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}
|
||||
@@ -354,7 +354,7 @@ ProxyPolicy-Allow-Ssl-00010
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00011
|
||||
[Tags] selfserver ssl Allow ip+请求头左匹配
|
||||
[Tags] selfserver ssl allow ip+请求头左匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -390,7 +390,7 @@ ProxyPolicy-Allow-Ssl-00011
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00012
|
||||
[Tags] selfserver ssl Allow ip+cookie字串匹配
|
||||
[Tags] selfserver ssl allow ip+cookie字串匹配
|
||||
Comment 创建cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -426,7 +426,7 @@ ProxyPolicy-Allow-Ssl-00012
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00013
|
||||
[Tags] selfserver ssl Allow ip+应答头右匹配
|
||||
[Tags] selfserver ssl allow ip+应答头右匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -462,7 +462,7 @@ ProxyPolicy-Allow-Ssl-00013
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00014
|
||||
[Tags] selfserver ssl Allow ip+应答头字串匹配
|
||||
[Tags] selfserver ssl allow ip+应答头字串匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -498,7 +498,7 @@ ProxyPolicy-Allow-Ssl-00014
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00015
|
||||
[Tags] selfserver ssl Allow ip+应答头完整匹配
|
||||
[Tags] selfserver ssl allow ip+应答头完整匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -534,7 +534,7 @@ ProxyPolicy-Allow-Ssl-00015
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00016
|
||||
[Tags] selfserver ssl Allow ip+应答头左匹配
|
||||
[Tags] selfserver ssl allow ip+应答头左匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text/html*|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -570,7 +570,7 @@ ProxyPolicy-Allow-Ssl-00016
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00017
|
||||
[Tags] selfserver ssl Allow ip+set-cookie右匹配
|
||||
[Tags] selfserver ssl allow ip+set-cookie右匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*HttpOnly|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -606,7 +606,7 @@ ProxyPolicy-Allow-Ssl-00017
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00018
|
||||
[Tags] selfserver ssl Allow ip+set-cookie字串匹配
|
||||
[Tags] selfserver ssl allow ip+set-cookie字串匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Path=/tsgInterface|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -642,7 +642,7 @@ ProxyPolicy-Allow-Ssl-00018
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00019
|
||||
[Tags] selfserver ssl Allow ip+set-cookie完整匹配
|
||||
[Tags] selfserver ssl allow ip+set-cookie完整匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$12345678|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -678,7 +678,7 @@ ProxyPolicy-Allow-Ssl-00019
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00020
|
||||
[Tags] selfserver ssl Allow ip+set-cookie左匹配
|
||||
[Tags] selfserver ssl allow ip+set-cookie左匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=JSESSIONID*|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -714,7 +714,7 @@ ProxyPolicy-Allow-Ssl-00020
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Allow-Ssl-00021
|
||||
[Tags] selfserver 最大组合 ssl Allow
|
||||
[Tags] selfserver 最大组合 ssl allow
|
||||
Comment 创建目标IP
|
||||
${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=CIDR|192.168.100.5|32|0/0
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -16,7 +16,7 @@ ${profiledId} ${EMPTY}
|
||||
|
||||
*** Test Cases ***
|
||||
ProxyPolicy-Hijack-Ssl-00001
|
||||
[Tags] selfserver ip ssl Hijack
|
||||
[Tags] selfserver ssl hijack ip+url
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*rutube.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -51,7 +51,7 @@ ProxyPolicy-Hijack-Ssl-00001
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00002
|
||||
[Tags] selfserver ip+fqdn完整匹配 ssl Hijack
|
||||
[Tags] selfserver ssl hijack ip+fqdn完整匹配+url
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com
|
||||
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
||||
@@ -90,7 +90,7 @@ ProxyPolicy-Hijack-Ssl-00002
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00003
|
||||
[Tags] selfserver ip+cat右匹配 ssl Hijack
|
||||
[Tags] selfserver ssl hijack ip+cat右匹配+url
|
||||
Comment 创建cat
|
||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*node.com
|
||||
${rescode} ${object_cat_Id} AddObject2 ${1} ${objectDict}
|
||||
@@ -129,7 +129,7 @@ ProxyPolicy-Hijack-Ssl-00003
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00004
|
||||
[Tags] selfserver ssl Hijack ip+url右匹配
|
||||
[Tags] selfserver ssl hijack ip+url右匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*rutube.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -164,7 +164,7 @@ ProxyPolicy-Hijack-Ssl-00004
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00005
|
||||
[Tags] selfserver ssl Hijack ip+url字串匹配
|
||||
[Tags] selfserver ssl hijack ip+url字串匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=test
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -199,7 +199,7 @@ ProxyPolicy-Hijack-Ssl-00005
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00006
|
||||
[Tags] selfserver ssl Hijack ip+url完整匹配
|
||||
[Tags] selfserver ssl hijack ip+url完整匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$open.node.com/test/bytedance/bytedance.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -234,7 +234,7 @@ ProxyPolicy-Hijack-Ssl-00006
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00007
|
||||
[Tags] selfserver ssl Hijack ip+url左匹配
|
||||
[Tags] selfserver ssl hijack ip+url左匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=open.node*
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -269,7 +269,7 @@ ProxyPolicy-Hijack-Ssl-00007
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00008
|
||||
[Tags] selfserver ssl Hijack ip+请求头右匹配
|
||||
[Tags] selfserver ssl hijack ip+请求头右匹配+url
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -308,7 +308,7 @@ ProxyPolicy-Hijack-Ssl-00008
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00009
|
||||
[Tags] selfserver ssl Hijack ip+请求头字串匹配
|
||||
[Tags] selfserver ssl hijack ip+请求头字串匹配+url
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Chrome|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -347,7 +347,7 @@ ProxyPolicy-Hijack-Ssl-00009
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00010
|
||||
[Tags] selfserver ssl Hijack ip+请求头完整匹配
|
||||
[Tags] selfserver ssl 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}
|
||||
@@ -386,7 +386,7 @@ ProxyPolicy-Hijack-Ssl-00010
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00011
|
||||
[Tags] selfserver ssl Hijack ip+请求头左匹配
|
||||
[Tags] selfserver ssl hijack ip+请求头左匹配+url
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -425,7 +425,7 @@ ProxyPolicy-Hijack-Ssl-00011
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00012
|
||||
[Tags] selfserver ssl Hijack ip+cookie字串匹配
|
||||
[Tags] selfserver ssl hijack ip+cookie字串匹配+url
|
||||
Comment 创建cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -464,7 +464,7 @@ ProxyPolicy-Hijack-Ssl-00012
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00013
|
||||
[Tags] selfserver ssl Hijack ip+应答头右匹配
|
||||
[Tags] selfserver ssl hijack ip+应答头右匹配+url
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -503,7 +503,7 @@ ProxyPolicy-Hijack-Ssl-00013
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00014
|
||||
[Tags] selfserver ssl Hijack ip+应答头字串匹配
|
||||
[Tags] selfserver ssl hijack ip+应答头字串匹配+url
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -542,7 +542,7 @@ ProxyPolicy-Hijack-Ssl-00014
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00015
|
||||
[Tags] selfserver ssl Hijack ip+应答头完整匹配
|
||||
[Tags] selfserver ssl hijack ip+应答头完整匹配+url
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -581,7 +581,7 @@ ProxyPolicy-Hijack-Ssl-00015
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00016
|
||||
[Tags] selfserver ssl Hijack ip+应答头左匹配
|
||||
[Tags] selfserver ssl hijack ip+应答头左匹配+url
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text/html*|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -620,7 +620,7 @@ ProxyPolicy-Hijack-Ssl-00016
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00017
|
||||
[Tags] selfserver ssl Hijack ip+set-cookie右匹配
|
||||
[Tags] selfserver ssl 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}
|
||||
@@ -659,7 +659,7 @@ ProxyPolicy-Hijack-Ssl-00017
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00018
|
||||
[Tags] selfserver ssl Hijack ip+set-cookie字串匹配
|
||||
[Tags] selfserver ssl 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}
|
||||
@@ -698,7 +698,7 @@ ProxyPolicy-Hijack-Ssl-00018
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00019
|
||||
[Tags] selfserver ssl Hijack ip+set-cookie完整匹配
|
||||
[Tags] selfserver ssl 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}
|
||||
@@ -737,7 +737,7 @@ ProxyPolicy-Hijack-Ssl-00019
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00020
|
||||
[Tags] selfserver ssl Hijack ip+set-cookie左匹配
|
||||
[Tags] selfserver ssl 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}
|
||||
@@ -776,7 +776,7 @@ ProxyPolicy-Hijack-Ssl-00020
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Hijack-Ssl-00021
|
||||
[Tags] selfserver 最大组合 ssl Hijack
|
||||
[Tags] selfserver 最大组合 ssl hijack
|
||||
Comment 创建目标IP
|
||||
${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=CIDR|192.168.100.5|32|0/0
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
|
||||
@@ -14,7 +14,7 @@ ${objectids} ${EMPTY}
|
||||
|
||||
*** Test Cases ***
|
||||
ProxyPolicy-Monitor-Http-00001
|
||||
[Tags] selfserver ip http Monitor
|
||||
[Tags] selfserver ip http monitor
|
||||
Comment 创建目标IP
|
||||
${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=CIDR|192.168.100.5|32|0/0
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -26,7 +26,7 @@ ProxyPolicy-Monitor-Http-00001
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
||||
${policyIds} Create List ${policyId1}
|
||||
Comment 创建管控策略
|
||||
${policyDict} Create Dictionary policyName=proxyPolicy-Monitor-HTTP-00001 policyType=pxy_manipulation policyDesc=autotest userTags= action=monitor effectiveRange= userRegion={"protocol":"HTTP"} isValid=${1} appObjectIdArray=2 referenceObject=${objectId}|TSG_SECURITY_DESTINATION_ADDR
|
||||
${policyDict} Create Dictionary policyName=proxyPolicy-Monitor-HTTP-00001 policyType=pxy_manipulation policyDesc=autotest userTags= action=monitor effectiveRange= userRegion={"method":"monitor","protocol":"HTTP"} isValid=${1} appObjectIdArray=2 referenceObject=${objectId}|TSG_SECURITY_DESTINATION_ADDR
|
||||
${rescode} ${policyId3} AddPolicy2 ${1} ${policyDict}
|
||||
#删除策略
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${policyId3}]}
|
||||
@@ -46,7 +46,7 @@ ProxyPolicy-Monitor-Http-00001
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00002
|
||||
[Tags] selfserver ip+fqdn完整匹配 http Monitor
|
||||
[Tags] selfserver ip+fqdn完整匹配 http monitor
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -58,7 +58,7 @@ ProxyPolicy-Monitor-Http-00002
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
||||
${policyIds} Create List ${policyId1}
|
||||
Comment 创建管控策略
|
||||
${policyDict} Create Dictionary policyName=proxyPolicy-Monitor-HTTP-00002 policyType=pxy_manipulation policyDesc=autotest userTags= action=monitor effectiveRange= userRegion={"protocol":"HTTP"} isValid=${1} appObjectIdArray=2 referenceObject=${objectId}|TSG_FIELD_HTTP_HOST
|
||||
${policyDict} Create Dictionary policyName=proxyPolicy-Monitor-HTTP-00002 policyType=pxy_manipulation policyDesc=autotest userTags= action=monitor effectiveRange= userRegion={"method":"monitor","protocol":"HTTP"} isValid=${1} appObjectIdArray=2 referenceObject=${objectId}|TSG_FIELD_HTTP_HOST
|
||||
${rescode} ${policyId3} AddPolicy2 ${1} ${policyDict}
|
||||
#删除策略
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${policyId3}]}
|
||||
@@ -78,7 +78,7 @@ ProxyPolicy-Monitor-Http-00002
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00003
|
||||
[Tags] selfserver ip+cat右匹配 http Monitor
|
||||
[Tags] selfserver ip+cat右匹配 http monitor
|
||||
Comment 创建cat
|
||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*node.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -90,7 +90,7 @@ ProxyPolicy-Monitor-Http-00003
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
||||
${policyIds} Create List ${policyId1}
|
||||
Comment 创建管控策略
|
||||
${policyDict} Create Dictionary policyName=proxyPolicy-Monitor-HTTP-00003 policyType=pxy_manipulation policyDesc=autotest userTags= action=monitor effectiveRange= userRegion={"protocol":"HTTP"} isValid=${1} appObjectIdArray=2 referenceObject=${objectId}|TSG_FIELD_HTTP_HOST
|
||||
${policyDict} Create Dictionary policyName=proxyPolicy-Monitor-HTTP-00003 policyType=pxy_manipulation policyDesc=autotest userTags= action=monitor effectiveRange= userRegion={"method":"monitor","protocol":"HTTP"} isValid=${1} appObjectIdArray=2 referenceObject=${objectId}|TSG_FIELD_HTTP_HOST
|
||||
${rescode} ${policyId3} AddPolicy2 ${1} ${policyDict}
|
||||
#删除策略
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${policyId3}]}
|
||||
@@ -110,7 +110,7 @@ ProxyPolicy-Monitor-Http-00003
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00004
|
||||
[Tags] selfserver http Monitor ip+url右匹配
|
||||
[Tags] selfserver http monitor ip+url右匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*xiaozhu.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -122,7 +122,7 @@ ProxyPolicy-Monitor-Http-00004
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
||||
${policyIds} Create List ${policyId1}
|
||||
Comment 创建管控策略
|
||||
${policyDict} Create Dictionary policyName=proxyPolicy-Monitor-HTTP-00004 policyType=pxy_manipulation policyDesc=autotest userTags= action=monitor effectiveRange= userRegion={"protocol":"HTTP"} isValid=${1} appObjectIdArray=2 referenceObject=${objectId}|TSG_FIELD_HTTP_URL
|
||||
${policyDict} Create Dictionary policyName=proxyPolicy-Monitor-HTTP-00004 policyType=pxy_manipulation policyDesc=autotest userTags= action=monitor effectiveRange= userRegion={"method":"monitor","protocol":"HTTP"} isValid=${1} appObjectIdArray=2 referenceObject=${objectId}|TSG_FIELD_HTTP_URL
|
||||
${rescode} ${policyId3} AddPolicy2 ${1} ${policyDict}
|
||||
#删除策略
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${policyId3}]}
|
||||
@@ -142,7 +142,7 @@ ProxyPolicy-Monitor-Http-00004
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00005
|
||||
[Tags] selfserver http Monitor ip+url字串匹配
|
||||
[Tags] selfserver http monitor ip+url字串匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=test
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -174,7 +174,7 @@ ProxyPolicy-Monitor-Http-00005
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00006
|
||||
[Tags] selfserver http Monitor ip+url完整匹配
|
||||
[Tags] selfserver http monitor ip+url完整匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$open.node.com/test/nationalbank/nationalbank.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -192,10 +192,10 @@ ProxyPolicy-Monitor-Http-00006
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${policyId3}]}
|
||||
${policyIds} Create List ${policyId1} ${policyId2}
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Intercept-HTTP-0003.bat
|
||||
... ELSE set variable curl http://open.node.com/test/nationalbank/nationalbank.html
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List switch=kazakh
|
||||
... ELSE Create List switch=kazakh
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/ProxyPolicy-Allow-HTTP-0001.bat
|
||||
... ELSE set variable curl \ http://open.node.com/test/tengrinews/tengrinews.html
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List экономике
|
||||
... ELSE Create List экономике
|
||||
${starttime} Get Time
|
||||
Sleep ${policyVerificationSleepSeconds}s
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
@@ -206,7 +206,7 @@ ProxyPolicy-Monitor-Http-00006
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00007
|
||||
[Tags] selfserver http Monitor ip+url左匹配
|
||||
[Tags] selfserver http monitor ip+url左匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=open.node*
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -238,7 +238,7 @@ ProxyPolicy-Monitor-Http-00007
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00008
|
||||
[Tags] selfserver http Monitor ip+请求头右匹配
|
||||
[Tags] selfserver http monitor ip+请求头右匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -270,7 +270,7 @@ ProxyPolicy-Monitor-Http-00008
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00009
|
||||
[Tags] selfserver http Monitor ip+请求头字串匹配
|
||||
[Tags] selfserver http monitor ip+请求头字串匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Chrome|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -302,7 +302,7 @@ ProxyPolicy-Monitor-Http-00009
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00010
|
||||
[Tags] selfserver http Monitor ip+请求头完整匹配
|
||||
[Tags] selfserver http monitor ip+请求头完整匹配
|
||||
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}
|
||||
@@ -334,7 +334,7 @@ ProxyPolicy-Monitor-Http-00010
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00011
|
||||
[Tags] selfserver http Monitor ip+请求头左匹配
|
||||
[Tags] selfserver http monitor ip+请求头左匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -366,7 +366,7 @@ ProxyPolicy-Monitor-Http-00011
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00012
|
||||
[Tags] selfserver http Monitor ip+cookie字串匹配
|
||||
[Tags] selfserver http monitor ip+cookie字串匹配
|
||||
Comment 创建cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -398,7 +398,7 @@ ProxyPolicy-Monitor-Http-00012
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00013
|
||||
[Tags] selfserver http Monitor ip+应答头右匹配
|
||||
[Tags] selfserver http monitor ip+应答头右匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*charset=UTF-8|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -430,7 +430,7 @@ ProxyPolicy-Monitor-Http-00013
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00014
|
||||
[Tags] selfserver http Monitor ip+应答头字串匹配
|
||||
[Tags] selfserver http monitor ip+应答头字串匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -462,7 +462,7 @@ ProxyPolicy-Monitor-Http-00014
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00015
|
||||
[Tags] selfserver http Monitor ip+应答头完整匹配
|
||||
[Tags] selfserver http monitor ip+应答头完整匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html; charset=UTF-8|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -494,7 +494,7 @@ ProxyPolicy-Monitor-Http-00015
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00016
|
||||
[Tags] selfserver http Monitor ip+应答头左匹配
|
||||
[Tags] selfserver http monitor ip+应答头左匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text/html*|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -526,7 +526,7 @@ ProxyPolicy-Monitor-Http-00016
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00017
|
||||
[Tags] selfserver http Monitor ip+set-cookie右匹配
|
||||
[Tags] selfserver http monitor ip+set-cookie右匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*HttpOnly|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -558,7 +558,7 @@ ProxyPolicy-Monitor-Http-00017
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00018
|
||||
[Tags] selfserver http Monitor ip+set-cookie字串匹配
|
||||
[Tags] selfserver http monitor ip+set-cookie字串匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Path=/tsgInterface|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -590,7 +590,7 @@ ProxyPolicy-Monitor-Http-00018
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00019
|
||||
[Tags] selfserver http Monitor ip+set-cookie完整匹配
|
||||
[Tags] selfserver http monitor ip+set-cookie完整匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$12345678|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -622,7 +622,7 @@ ProxyPolicy-Monitor-Http-00019
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00020
|
||||
[Tags] selfserver http Monitor ip+set-cookie左匹配
|
||||
[Tags] selfserver http monitor ip+set-cookie左匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=JSESSIONID*|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -654,7 +654,7 @@ ProxyPolicy-Monitor-Http-00020
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00021
|
||||
[Tags] selfserver http Monitor ip+请求体字串匹配
|
||||
[Tags] selfserver http monitor ip+请求体字串匹配
|
||||
Comment 创建请求体
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=test
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -686,7 +686,7 @@ ProxyPolicy-Monitor-Http-00021
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00022
|
||||
[Tags] selfserver http Monitor ip+应答体字串匹配
|
||||
[Tags] selfserver http monitor ip+应答体字串匹配
|
||||
Comment 创建应答体
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Response Body
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -718,7 +718,7 @@ ProxyPolicy-Monitor-Http-00022
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Monitor-Http-00023
|
||||
[Tags] selfserver 最大组合 http Monitor
|
||||
[Tags] selfserver 最大组合 http monitor
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com
|
||||
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -14,7 +14,7 @@ ${objectids} ${EMPTY}
|
||||
|
||||
*** Test Cases ***
|
||||
ProxyPolicy-Redirect-Http-00001
|
||||
[Tags] selfserver ip http Redirect
|
||||
[Tags] selfserver ip http redirect
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*xiaozhu.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -46,7 +46,7 @@ ProxyPolicy-Redirect-Http-00001
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00002
|
||||
[Tags] selfserver ip+fqdn完整匹配 http Redirect
|
||||
[Tags] selfserver ip+fqdn完整匹配 http redirect
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com
|
||||
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
||||
@@ -82,7 +82,7 @@ ProxyPolicy-Redirect-Http-00002
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00003
|
||||
[Tags] selfserver ip+cat右匹配 http Redirect
|
||||
[Tags] selfserver ip+cat右匹配 http redirect
|
||||
Comment 创建cat
|
||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*node.com
|
||||
${rescode} ${object_cat_Id} AddObject2 ${1} ${objectDict}
|
||||
@@ -118,7 +118,7 @@ ProxyPolicy-Redirect-Http-00003
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00004
|
||||
[Tags] selfserver http Redirect ip+url右匹配
|
||||
[Tags] selfserver http redirect ip+url右匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*xiaozhu.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -150,7 +150,7 @@ ProxyPolicy-Redirect-Http-00004
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00005
|
||||
[Tags] selfserver http Redirect ip+url字串匹配
|
||||
[Tags] selfserver http redirect ip+url字串匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=test
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -182,7 +182,7 @@ ProxyPolicy-Redirect-Http-00005
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00006
|
||||
[Tags] selfserver http Redirect ip+url完整匹配
|
||||
[Tags] selfserver http redirect ip+url完整匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$open.node.com/test/nationalbank/nationalbank.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -214,7 +214,7 @@ ProxyPolicy-Redirect-Http-00006
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00007
|
||||
[Tags] selfserver http Redirect ip+url左匹配
|
||||
[Tags] selfserver http redirect ip+url左匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=open.node*
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -246,7 +246,7 @@ ProxyPolicy-Redirect-Http-00007
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00008
|
||||
[Tags] selfserver http Redirect ip+请求头右匹配
|
||||
[Tags] selfserver http redirect ip+请求头右匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -282,7 +282,7 @@ ProxyPolicy-Redirect-Http-00008
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00009
|
||||
[Tags] selfserver http Redirect ip+请求头字串匹配
|
||||
[Tags] selfserver http redirect ip+请求头字串匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Chrome|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -318,7 +318,7 @@ ProxyPolicy-Redirect-Http-00009
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00010
|
||||
[Tags] selfserver http Redirect ip+请求头完整匹配
|
||||
[Tags] selfserver http redirect ip+请求头完整匹配
|
||||
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}
|
||||
@@ -354,7 +354,7 @@ ProxyPolicy-Redirect-Http-00010
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00011
|
||||
[Tags] selfserver http Redirect ip+请求头左匹配
|
||||
[Tags] selfserver http redirect ip+请求头左匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -390,7 +390,7 @@ ProxyPolicy-Redirect-Http-00011
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00012
|
||||
[Tags] selfserver http Redirect ip+cookie字串匹配
|
||||
[Tags] selfserver http redirect ip+cookie字串匹配
|
||||
Comment 创建cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -426,7 +426,7 @@ ProxyPolicy-Redirect-Http-00012
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00013
|
||||
[Tags] selfserver http Redirect ip+应答头右匹配
|
||||
[Tags] selfserver http redirect ip+应答头右匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*charset=UTF-8|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -462,7 +462,7 @@ ProxyPolicy-Redirect-Http-00013
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00014
|
||||
[Tags] selfserver http Redirect ip+应答头字串匹配
|
||||
[Tags] selfserver http redirect ip+应答头字串匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -498,7 +498,7 @@ ProxyPolicy-Redirect-Http-00014
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00015
|
||||
[Tags] selfserver http Redirect ip+应答头完整匹配
|
||||
[Tags] selfserver http redirect ip+应答头完整匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html; charset=UTF-8|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -534,7 +534,7 @@ ProxyPolicy-Redirect-Http-00015
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00016
|
||||
[Tags] selfserver http Redirect ip+应答头左匹配
|
||||
[Tags] selfserver http redirect ip+应答头左匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text/html*|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -570,7 +570,7 @@ ProxyPolicy-Redirect-Http-00016
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00017
|
||||
[Tags] selfserver http Redirect ip+set-cookie右匹配
|
||||
[Tags] selfserver http redirect ip+set-cookie右匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*HttpOnly|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -606,7 +606,7 @@ ProxyPolicy-Redirect-Http-00017
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00018
|
||||
[Tags] selfserver http Redirect ip+set-cookie字串匹配
|
||||
[Tags] selfserver http redirect ip+set-cookie字串匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Path=/tsgInterface|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -642,7 +642,7 @@ ProxyPolicy-Redirect-Http-00018
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00019
|
||||
[Tags] selfserver http Redirect ip+set-cookie完整匹配
|
||||
[Tags] selfserver http redirect ip+set-cookie完整匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$12345678|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -678,7 +678,7 @@ ProxyPolicy-Redirect-Http-00019
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00020
|
||||
[Tags] selfserver http Redirect ip+set-cookie左匹配
|
||||
[Tags] selfserver http redirect ip+set-cookie左匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=JSESSIONID*|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -714,7 +714,7 @@ ProxyPolicy-Redirect-Http-00020
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00021
|
||||
[Tags] selfserver http Redirect ip+请求体字串匹配
|
||||
[Tags] selfserver http redirect ip+请求体字串匹配
|
||||
Comment 创建请求体
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=test
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -750,7 +750,7 @@ ProxyPolicy-Redirect-Http-00021
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Http-00022
|
||||
[Tags] selfserver 最大组合 http Redirect
|
||||
[Tags] selfserver 最大组合 http redirect
|
||||
Comment 创建目标IP
|
||||
${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=CIDR|192.168.100.5|32|0/0
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
|
||||
@@ -14,7 +14,7 @@ ${objectids} ${EMPTY}
|
||||
|
||||
*** Test Cases ***
|
||||
ProxyPolicy-Redirect-Ssl-00001
|
||||
[Tags] selfserver ip ssl Redirect
|
||||
[Tags] selfserver ip ssl redirect
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*rutube.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -46,7 +46,7 @@ ProxyPolicy-Redirect-Ssl-00001
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00002
|
||||
[Tags] selfserver ip+fqdn完整匹配 ssl Redirect
|
||||
[Tags] selfserver ip+fqdn完整匹配 ssl redirect
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com
|
||||
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
||||
@@ -82,7 +82,7 @@ ProxyPolicy-Redirect-Ssl-00002
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00003
|
||||
[Tags] selfserver ip+cat右匹配 ssl Redirect
|
||||
[Tags] selfserver ip+cat右匹配 ssl redirect
|
||||
Comment 创建cat
|
||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*node.com
|
||||
${rescode} ${object_cat_Id} AddObject2 ${1} ${objectDict}
|
||||
@@ -118,7 +118,7 @@ ProxyPolicy-Redirect-Ssl-00003
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00004
|
||||
[Tags] selfserver ssl Redirect ip+url右匹配
|
||||
[Tags] selfserver ssl redirect ip+url右匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*rutube.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -150,7 +150,7 @@ ProxyPolicy-Redirect-Ssl-00004
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00005
|
||||
[Tags] selfserver ssl Redirect ip+url字串匹配
|
||||
[Tags] selfserver ssl redirect ip+url字串匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=test
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -182,7 +182,7 @@ ProxyPolicy-Redirect-Ssl-00005
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00006
|
||||
[Tags] selfserver ssl Redirect ip+url完整匹配
|
||||
[Tags] selfserver ssl redirect ip+url完整匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$open.node.com/test/bytedance/bytedance.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -214,7 +214,7 @@ ProxyPolicy-Redirect-Ssl-00006
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00007
|
||||
[Tags] selfserver ssl Redirect ip+url左匹配
|
||||
[Tags] selfserver ssl redirect ip+url左匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=open.node*
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -246,7 +246,7 @@ ProxyPolicy-Redirect-Ssl-00007
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00008
|
||||
[Tags] selfserver ssl Redirect ip+请求头右匹配
|
||||
[Tags] selfserver ssl redirect ip+请求头右匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -282,7 +282,7 @@ ProxyPolicy-Redirect-Ssl-00008
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00009
|
||||
[Tags] selfserver ssl Redirect ip+请求头字串匹配
|
||||
[Tags] selfserver ssl redirect ip+请求头字串匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Chrome|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -318,7 +318,7 @@ ProxyPolicy-Redirect-Ssl-00009
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00010
|
||||
[Tags] selfserver ssl Redirect ip+请求头完整匹配
|
||||
[Tags] selfserver ssl redirect ip+请求头完整匹配
|
||||
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}
|
||||
@@ -354,7 +354,7 @@ ProxyPolicy-Redirect-Ssl-00010
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00011
|
||||
[Tags] selfserver ssl Redirect ip+请求头左匹配
|
||||
[Tags] selfserver ssl redirect ip+请求头左匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -390,7 +390,7 @@ ProxyPolicy-Redirect-Ssl-00011
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00012
|
||||
[Tags] selfserver ssl Redirect ip+cookie字串匹配
|
||||
[Tags] selfserver ssl redirect ip+cookie字串匹配
|
||||
Comment 创建cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -426,7 +426,7 @@ ProxyPolicy-Redirect-Ssl-00012
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00013
|
||||
[Tags] selfserver ssl Redirect ip+应答头右匹配
|
||||
[Tags] selfserver ssl redirect ip+应答头右匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -462,7 +462,7 @@ ProxyPolicy-Redirect-Ssl-00013
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00014
|
||||
[Tags] selfserver ssl Redirect ip+应答头字串匹配
|
||||
[Tags] selfserver ssl redirect ip+应答头字串匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -498,7 +498,7 @@ ProxyPolicy-Redirect-Ssl-00014
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00015
|
||||
[Tags] selfserver ssl Redirect ip+应答头完整匹配
|
||||
[Tags] selfserver ssl redirect ip+应答头完整匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -534,7 +534,7 @@ ProxyPolicy-Redirect-Ssl-00015
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00016
|
||||
[Tags] selfserver ssl Redirect ip+应答头左匹配
|
||||
[Tags] selfserver ssl redirect ip+应答头左匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text/html*|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -570,7 +570,7 @@ ProxyPolicy-Redirect-Ssl-00016
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00017
|
||||
[Tags] selfserver ssl Redirect ip+set-cookie右匹配
|
||||
[Tags] selfserver ssl redirect ip+set-cookie右匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*HttpOnly|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -606,7 +606,7 @@ ProxyPolicy-Redirect-Ssl-00017
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00018
|
||||
[Tags] selfserver ssl Redirect ip+set-cookie字串匹配
|
||||
[Tags] selfserver ssl redirect ip+set-cookie字串匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Path=/tsgInterface|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -642,7 +642,7 @@ ProxyPolicy-Redirect-Ssl-00018
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00019
|
||||
[Tags] selfserver ssl Redirect ip+set-cookie完整匹配
|
||||
[Tags] selfserver ssl redirect ip+set-cookie完整匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$12345678|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -678,7 +678,7 @@ ProxyPolicy-Redirect-Ssl-00019
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00020
|
||||
[Tags] selfserver ssl Redirect ip+set-cookie左匹配
|
||||
[Tags] selfserver ssl redirect ip+set-cookie左匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=JSESSIONID*|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -714,7 +714,7 @@ ProxyPolicy-Redirect-Ssl-00020
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00021
|
||||
[Tags] selfserver ssl Redirect ip+请求体字串匹配
|
||||
[Tags] selfserver ssl redirect ip+请求体字串匹配
|
||||
Comment 创建请求体
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=test
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -750,7 +750,7 @@ ProxyPolicy-Redirect-Ssl-00021
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Redirect-Ssl-00022
|
||||
[Tags] selfserver 最大组合 ssl Redirect
|
||||
[Tags] selfserver 最大组合 ssl redirect
|
||||
Comment 创建目标IP
|
||||
${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=CIDR|192.168.100.5|32|0/0
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -771,7 +771,7 @@ ProxyPolicy-Redirect-Ssl-00022
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=charset|Content-Type
|
||||
${rescode} ${object_re_Id} AddObject2 ${1} ${objectDict}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${object_re_Id}
|
||||
Comment 创建应答体
|
||||
Comment 创建请求体
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=test
|
||||
${rescode} ${object_by_Id} AddObject2 ${1} ${objectDict}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${object_by_Id}
|
||||
|
||||
@@ -14,7 +14,7 @@ ${objectids} ${EMPTY}
|
||||
|
||||
*** Test Cases ***
|
||||
ProxyPolicy-Replace-Http-00001
|
||||
[Tags] selfserver ip http Replace
|
||||
[Tags] selfserver ip http replace
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*xiaozhu.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -46,7 +46,7 @@ ProxyPolicy-Replace-Http-00001
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00002
|
||||
[Tags] selfserver ip+fqdn完整匹配 http Replace
|
||||
[Tags] selfserver ip+fqdn完整匹配 http replace
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com
|
||||
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
||||
@@ -82,7 +82,7 @@ ProxyPolicy-Replace-Http-00002
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00003
|
||||
[Tags] selfserver ip+cat右匹配 http Replace
|
||||
[Tags] selfserver ip+cat右匹配 http replace
|
||||
Comment 创建cat
|
||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*node.com
|
||||
${rescode} ${object_cat_Id} AddObject2 ${1} ${objectDict}
|
||||
@@ -118,7 +118,7 @@ ProxyPolicy-Replace-Http-00003
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00004
|
||||
[Tags] selfserver http Replace ip+url右匹配
|
||||
[Tags] selfserver http replace ip+url右匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*xiaozhu.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -150,7 +150,7 @@ ProxyPolicy-Replace-Http-00004
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00005
|
||||
[Tags] selfserver http Replace ip+url字串匹配
|
||||
[Tags] selfserver http replace ip+url字串匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=test
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -182,7 +182,7 @@ ProxyPolicy-Replace-Http-00005
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00006
|
||||
[Tags] selfserver http Replace ip+url完整匹配
|
||||
[Tags] selfserver http replace ip+url完整匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$open.node.com/test/nationalbank/nationalbank.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -214,7 +214,7 @@ ProxyPolicy-Replace-Http-00006
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00007
|
||||
[Tags] selfserver http Replace ip+url左匹配
|
||||
[Tags] selfserver http replace ip+url左匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=open.node*
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -246,7 +246,7 @@ ProxyPolicy-Replace-Http-00007
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00008
|
||||
[Tags] selfserver http Replace ip+请求头右匹配
|
||||
[Tags] selfserver http replace ip+请求头右匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -282,7 +282,7 @@ ProxyPolicy-Replace-Http-00008
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00009
|
||||
[Tags] selfserver http Replace ip+请求头字串匹配
|
||||
[Tags] selfserver http replace ip+请求头字串匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Chrome|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -318,7 +318,7 @@ ProxyPolicy-Replace-Http-00009
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00010
|
||||
[Tags] selfserver http Replace ip+请求头完整匹配
|
||||
[Tags] selfserver http replace ip+请求头完整匹配
|
||||
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}
|
||||
@@ -354,7 +354,7 @@ ProxyPolicy-Replace-Http-00010
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00011
|
||||
[Tags] selfserver http Replace ip+请求头左匹配
|
||||
[Tags] selfserver http replace ip+请求头左匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -390,7 +390,7 @@ ProxyPolicy-Replace-Http-00011
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00012
|
||||
[Tags] selfserver http Replace ip+cookie字串匹配
|
||||
[Tags] selfserver http replace ip+cookie字串匹配
|
||||
Comment 创建cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -426,7 +426,7 @@ ProxyPolicy-Replace-Http-00012
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00013
|
||||
[Tags] selfserver http Replace ip+应答头右匹配
|
||||
[Tags] selfserver http replace ip+应答头右匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*charset=UTF-8|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -462,7 +462,7 @@ ProxyPolicy-Replace-Http-00013
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00014
|
||||
[Tags] selfserver http Replace ip+应答头字串匹配
|
||||
[Tags] selfserver http replace ip+应答头字串匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -498,7 +498,7 @@ ProxyPolicy-Replace-Http-00014
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00015
|
||||
[Tags] selfserver http Replace ip+应答头完整匹配
|
||||
[Tags] selfserver http replace ip+应答头完整匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html; charset=utf-8|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -534,7 +534,7 @@ ProxyPolicy-Replace-Http-00015
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00016
|
||||
[Tags] selfserver http Replace ip+应答头左匹配
|
||||
[Tags] selfserver http replace ip+应答头左匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text/html*|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -570,7 +570,7 @@ ProxyPolicy-Replace-Http-00016
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00017
|
||||
[Tags] selfserver http Replace ip+set-cookie右匹配
|
||||
[Tags] selfserver http replace ip+set-cookie右匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*HttpOnly|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -606,7 +606,7 @@ ProxyPolicy-Replace-Http-00017
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00018
|
||||
[Tags] selfserver http Replace ip+set-cookie字串匹配
|
||||
[Tags] selfserver http replace ip+set-cookie字串匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Path=/tsgInterface|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -642,7 +642,7 @@ ProxyPolicy-Replace-Http-00018
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00019
|
||||
[Tags] selfserver http Replace ip+set-cookie完整匹配
|
||||
[Tags] selfserver http replace ip+set-cookie完整匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$12345678|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -678,7 +678,7 @@ ProxyPolicy-Replace-Http-00019
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00020
|
||||
[Tags] selfserver http Replace ip+set-cookie左匹配
|
||||
[Tags] selfserver http replace ip+set-cookie左匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=JSESSIONID*|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -714,7 +714,7 @@ ProxyPolicy-Replace-Http-00020
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Http-00021
|
||||
[Tags] selfserver 最大组合 http Replace
|
||||
[Tags] selfserver 最大组合 http replace
|
||||
Comment 创建目标IP
|
||||
${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=CIDR|192.168.100.5|32|0/0
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
|
||||
@@ -14,7 +14,7 @@ ${objectids} ${EMPTY}
|
||||
|
||||
*** Test Cases ***
|
||||
ProxyPolicy-Replace-Ssl-00001
|
||||
[Tags] selfserver ip ssl Replace
|
||||
[Tags] selfserver ip ssl replace
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*rutube.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -46,7 +46,7 @@ ProxyPolicy-Replace-Ssl-00001
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00002
|
||||
[Tags] selfserver ip+fqdn完整匹配 ssl Replace
|
||||
[Tags] selfserver ip+fqdn完整匹配 ssl replace
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com
|
||||
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
||||
@@ -82,7 +82,7 @@ ProxyPolicy-Replace-Ssl-00002
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00003
|
||||
[Tags] selfserver ip+cat右匹配 ssl Replace
|
||||
[Tags] selfserver ip+cat右匹配 ssl replace
|
||||
Comment 创建cat
|
||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*node.com
|
||||
${rescode} ${object_cat_Id} AddObject2 ${1} ${objectDict}
|
||||
@@ -118,7 +118,7 @@ ProxyPolicy-Replace-Ssl-00003
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00004
|
||||
[Tags] selfserver ssl Replace ip+url右匹配
|
||||
[Tags] selfserver ssl replace ip+url右匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*rutube.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -150,7 +150,7 @@ ProxyPolicy-Replace-Ssl-00004
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00005
|
||||
[Tags] selfserver ssl Replace ip+url字串匹配
|
||||
[Tags] selfserver ssl replace ip+url字串匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=test
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -182,7 +182,7 @@ ProxyPolicy-Replace-Ssl-00005
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00006
|
||||
[Tags] selfserver ssl Replace ip+url完整匹配
|
||||
[Tags] selfserver ssl replace ip+url完整匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$open.node.com/test/bytedance/bytedance.html
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -214,7 +214,7 @@ ProxyPolicy-Replace-Ssl-00006
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00007
|
||||
[Tags] selfserver ssl Replace ip+url左匹配
|
||||
[Tags] selfserver ssl replace ip+url左匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=open.node*
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -246,7 +246,7 @@ ProxyPolicy-Replace-Ssl-00007
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00008
|
||||
[Tags] selfserver ssl Replace ip+请求头右匹配
|
||||
[Tags] selfserver ssl replace ip+请求头右匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -282,7 +282,7 @@ ProxyPolicy-Replace-Ssl-00008
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00009
|
||||
[Tags] selfserver ssl Replace ip+请求头字串匹配
|
||||
[Tags] selfserver ssl replace ip+请求头字串匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Chrome|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -318,7 +318,7 @@ ProxyPolicy-Replace-Ssl-00009
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00010
|
||||
[Tags] selfserver ssl Replace ip+请求头完整匹配
|
||||
[Tags] selfserver ssl replace ip+请求头完整匹配
|
||||
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}
|
||||
@@ -354,7 +354,7 @@ ProxyPolicy-Replace-Ssl-00010
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00011
|
||||
[Tags] selfserver ssl Replace ip+请求头左匹配
|
||||
[Tags] selfserver ssl replace ip+请求头左匹配
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -390,7 +390,7 @@ ProxyPolicy-Replace-Ssl-00011
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00012
|
||||
[Tags] selfserver ssl Replace ip+cookie字串匹配
|
||||
[Tags] selfserver ssl replace ip+cookie字串匹配
|
||||
Comment 创建cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -426,7 +426,7 @@ ProxyPolicy-Replace-Ssl-00012
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00013
|
||||
[Tags] selfserver ssl Replace ip+应答头右匹配
|
||||
[Tags] selfserver ssl replace ip+应答头右匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -462,7 +462,7 @@ ProxyPolicy-Replace-Ssl-00013
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00014
|
||||
[Tags] selfserver ssl Replace ip+应答头字串匹配
|
||||
[Tags] selfserver ssl replace ip+应答头字串匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -498,7 +498,7 @@ ProxyPolicy-Replace-Ssl-00014
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00015
|
||||
[Tags] selfserver ssl Replace ip+应答头完整匹配
|
||||
[Tags] selfserver ssl replace ip+应答头完整匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -534,7 +534,7 @@ ProxyPolicy-Replace-Ssl-00015
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00016
|
||||
[Tags] selfserver ssl Replace ip+应答头左匹配
|
||||
[Tags] selfserver ssl replace ip+应答头左匹配
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text/html*|Content-Type
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -570,7 +570,7 @@ ProxyPolicy-Replace-Ssl-00016
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00017
|
||||
[Tags] selfserver ssl Replace ip+set-cookie右匹配
|
||||
[Tags] selfserver ssl replace ip+set-cookie右匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*HttpOnly|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -606,7 +606,7 @@ ProxyPolicy-Replace-Ssl-00017
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00018
|
||||
[Tags] selfserver ssl Replace ip+set-cookie字串匹配
|
||||
[Tags] selfserver ssl replace ip+set-cookie字串匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Path=/tsgInterface|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -642,7 +642,7 @@ ProxyPolicy-Replace-Ssl-00018
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00019
|
||||
[Tags] selfserver ssl Replace ip+set-cookie完整匹配
|
||||
[Tags] selfserver ssl replace ip+set-cookie完整匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$12345678|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -678,7 +678,7 @@ ProxyPolicy-Replace-Ssl-00019
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00020
|
||||
[Tags] selfserver ssl Replace ip+set-cookie左匹配
|
||||
[Tags] selfserver ssl replace ip+set-cookie左匹配
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=JSESSIONID*|Set-Cookie
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
@@ -714,7 +714,7 @@ ProxyPolicy-Replace-Ssl-00020
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
ProxyPolicy-Replace-Ssl-00021
|
||||
[Tags] selfserver 最大组合 ssl Replace
|
||||
[Tags] selfserver 最大组合 ssl replace
|
||||
Comment 创建目标IP
|
||||
${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=CIDR|192.168.100.5|32|0/0
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
|
||||
1
05-Other/curl/selfserver/ProxyPolicy-Allow-HTTP-0001.bat
Normal file
1
05-Other/curl/selfserver/ProxyPolicy-Allow-HTTP-0001.bat
Normal file
@@ -0,0 +1 @@
|
||||
curl http://open.node.com/test/tengrinews/tengrinews.html | iconv -f utf-8 -t gbk
|
||||
Reference in New Issue
Block a user