添加俄文验证,修改大小写标签
This commit is contained in:
@@ -14,7 +14,7 @@ ${objectids} ${EMPTY}
|
|||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
ProxyPolicy-Allow-Http-00001
|
ProxyPolicy-Allow-Http-00001
|
||||||
[Tags] selfserver ip http Allow
|
[Tags] selfserver ip http allow
|
||||||
Comment 创建url
|
Comment 创建url
|
||||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*xiaozhu.html
|
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*xiaozhu.html
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00002
|
ProxyPolicy-Allow-Http-00002
|
||||||
[Tags] selfserver ip+fqdn完整匹配 http Allow
|
[Tags] selfserver ip+fqdn完整匹配 http allow
|
||||||
Comment 创建fqdn
|
Comment 创建fqdn
|
||||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com
|
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com
|
||||||
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00003
|
ProxyPolicy-Allow-Http-00003
|
||||||
[Tags] selfserver ip+cat右匹配 http Allow
|
[Tags] selfserver ip+cat右匹配 http allow
|
||||||
Comment 创建cat
|
Comment 创建cat
|
||||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*node.com
|
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*node.com
|
||||||
${rescode} ${object_cat_Id} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00004
|
ProxyPolicy-Allow-Http-00004
|
||||||
[Tags] selfserver http Allow ip+url右匹配
|
[Tags] selfserver http allow ip+url右匹配
|
||||||
Comment 创建url
|
Comment 创建url
|
||||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*xiaozhu.html
|
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*xiaozhu.html
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00005
|
ProxyPolicy-Allow-Http-00005
|
||||||
[Tags] selfserver http Allow ip+url字串匹配
|
[Tags] selfserver http allow ip+url字串匹配
|
||||||
Comment 创建url
|
Comment 创建url
|
||||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=test
|
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=test
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00006
|
ProxyPolicy-Allow-Http-00006
|
||||||
[Tags] selfserver http Allow ip+url完整匹配
|
[Tags] selfserver http allow ip+url完整匹配
|
||||||
Comment 创建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}
|
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||||
${objectids} set Variable ${objectId}
|
${objectids} set Variable ${objectId}
|
||||||
Comment 创建安全策略
|
Comment 创建安全策略
|
||||||
@@ -200,10 +200,10 @@ ProxyPolicy-Allow-Http-00006
|
|||||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${policyId3}]}
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${policyId3}]}
|
||||||
${policyIds} Create List ${policyId1} ${policyId2}
|
${policyIds} Create List ${policyId1} ${policyId2}
|
||||||
Comment 功能端验证HTTP验证
|
Comment 功能端验证HTTP验证
|
||||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/ProxyPolicy-Redirect-HTTP-0003.bat
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/ProxyPolicy-Allow-HTTP-0001.bat
|
||||||
... ELSE set variable curl -kv http://open.node.com/test/nationalbank/nationalbank.html
|
... ELSE set variable curl \ http://open.node.com/test/tengrinews/tengrinews.html
|
||||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List switch=kazakh
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List экономике
|
||||||
... ELSE Create List switch=kazakh
|
... ELSE Create List экономике
|
||||||
${starttime} Get Time
|
${starttime} Get Time
|
||||||
Sleep ${policyVerificationSleepSeconds}s
|
Sleep ${policyVerificationSleepSeconds}s
|
||||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00007
|
ProxyPolicy-Allow-Http-00007
|
||||||
[Tags] selfserver http Allow ip+url左匹配
|
[Tags] selfserver http allow ip+url左匹配
|
||||||
Comment 创建url
|
Comment 创建url
|
||||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=open.node*
|
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=open.node*
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00008
|
ProxyPolicy-Allow-Http-00008
|
||||||
[Tags] selfserver http Allow ip+请求头右匹配
|
[Tags] selfserver http allow ip+请求头右匹配
|
||||||
Comment 创建请求头
|
Comment 创建请求头
|
||||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
|
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00009
|
ProxyPolicy-Allow-Http-00009
|
||||||
[Tags] selfserver http Allow ip+请求头字串匹配
|
[Tags] selfserver http allow ip+请求头字串匹配
|
||||||
Comment 创建请求头
|
Comment 创建请求头
|
||||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Chrome|User-Agent
|
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Chrome|User-Agent
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00010
|
ProxyPolicy-Allow-Http-00010
|
||||||
[Tags] selfserver http Allow ip+请求头完整匹配
|
[Tags] selfserver http allow ip+请求头完整匹配
|
||||||
Comment 创建请求头
|
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
|
${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}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00011
|
ProxyPolicy-Allow-Http-00011
|
||||||
[Tags] selfserver http Allow ip+请求头左匹配
|
[Tags] selfserver http allow ip+请求头左匹配
|
||||||
Comment 创建请求头
|
Comment 创建请求头
|
||||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
|
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00012
|
ProxyPolicy-Allow-Http-00012
|
||||||
[Tags] selfserver http Allow ip+cookie字串匹配
|
[Tags] selfserver http allow ip+cookie字串匹配
|
||||||
Comment 创建cookie
|
Comment 创建cookie
|
||||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie
|
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00013
|
ProxyPolicy-Allow-Http-00013
|
||||||
[Tags] selfserver http Allow ip+应答头右匹配
|
[Tags] selfserver http allow ip+应答头右匹配
|
||||||
Comment 创建应答头
|
Comment 创建应答头
|
||||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*charset=UTF-8|Content-Type
|
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*charset=UTF-8|Content-Type
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00014
|
ProxyPolicy-Allow-Http-00014
|
||||||
[Tags] selfserver http Allow ip+应答头字串匹配
|
[Tags] selfserver http allow ip+应答头字串匹配
|
||||||
Comment 创建应答头
|
Comment 创建应答头
|
||||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type
|
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00015
|
ProxyPolicy-Allow-Http-00015
|
||||||
[Tags] selfserver http Allow ip+应答头完整匹配
|
[Tags] selfserver http allow ip+应答头完整匹配
|
||||||
Comment 创建应答头
|
Comment 创建应答头
|
||||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html; charset=utf-8|Content-Type
|
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html; charset=utf-8|Content-Type
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00016
|
ProxyPolicy-Allow-Http-00016
|
||||||
[Tags] selfserver http Allow ip+应答头左匹配
|
[Tags] selfserver http allow ip+应答头左匹配
|
||||||
Comment 创建应答头
|
Comment 创建应答头
|
||||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text/html*|Content-Type
|
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text/html*|Content-Type
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00017
|
ProxyPolicy-Allow-Http-00017
|
||||||
[Tags] selfserver http Allow ip+set-cookie右匹配
|
[Tags] selfserver http allow ip+set-cookie右匹配
|
||||||
Comment 创建set-cookie
|
Comment 创建set-cookie
|
||||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*HttpOnly|Set-Cookie
|
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*HttpOnly|Set-Cookie
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00018
|
ProxyPolicy-Allow-Http-00018
|
||||||
[Tags] selfserver http Allow ip+set-cookie字串匹配
|
[Tags] selfserver http allow ip+set-cookie字串匹配
|
||||||
Comment 创建set-cookie
|
Comment 创建set-cookie
|
||||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Path=/tsgInterface|Set-Cookie
|
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Path=/tsgInterface|Set-Cookie
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00019
|
ProxyPolicy-Allow-Http-00019
|
||||||
[Tags] selfserver http Allow ip+set-cookie完整匹配
|
[Tags] selfserver http allow ip+set-cookie完整匹配
|
||||||
Comment 创建set-cookie
|
Comment 创建set-cookie
|
||||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$12345678|Set-Cookie
|
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$12345678|Set-Cookie
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00020
|
ProxyPolicy-Allow-Http-00020
|
||||||
[Tags] selfserver http Allow ip+set-cookie左匹配
|
[Tags] selfserver http allow ip+set-cookie左匹配
|
||||||
Comment 创建set-cookie
|
Comment 创建set-cookie
|
||||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=JSESSIONID*|Set-Cookie
|
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=JSESSIONID*|Set-Cookie
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Allow-Http-00021
|
ProxyPolicy-Allow-Http-00021
|
||||||
[Tags] selfserver 最大组合 http Allow
|
[Tags] selfserver 最大组合 http allow
|
||||||
Comment 创建目标IP
|
Comment 创建目标IP
|
||||||
${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=CIDR|192.168.100.5|32|0/0
|
${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=CIDR|192.168.100.5|32|0/0
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||||
|
|||||||
Reference in New Issue
Block a user