解决这些用例未通过,原因拦截新增失败、引用文件失败
This commit is contained in:
@@ -776,7 +776,7 @@ ProxyPolicy-Hijack-Ssl-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-Hijack-Ssl-00021
|
ProxyPolicy-Hijack-Ssl-00021
|
||||||
[Tags] selfserver 最大组合
|
[Tags] selfserver 最大组合
|
||||||
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}
|
||||||
@@ -824,6 +824,7 @@ ProxyPolicy-Hijack-Ssl-00021
|
|||||||
#日志验证
|
#日志验证
|
||||||
${s} Convert to String ${policyId3}
|
${s} Convert to String ${policyId3}
|
||||||
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-Hijack-Ssl-00022
|
ProxyPolicy-Hijack-Ssl-00022
|
||||||
[Tags] selfserver 修改
|
[Tags] selfserver 修改
|
||||||
Comment 创建set-cookie
|
Comment 创建set-cookie
|
||||||
@@ -842,7 +843,7 @@ ProxyPolicy-Hijack-Ssl-00022
|
|||||||
${rescode} ${object_rq_Id} AddObject2 ${1} ${objectDict}
|
${rescode} ${object_rq_Id} AddObject2 ${1} ${objectDict}
|
||||||
${objectids} Catenate SEPARATOR=, ${objectids} ${object_rq_Id}
|
${objectids} Catenate SEPARATOR=, ${objectids} ${object_rq_Id}
|
||||||
Comment 创建安全策略
|
Comment 创建安全策略
|
||||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest userTags= action=intercept effectiveRange= userRegion={"protocol":"SSL","keyring":1,"decryption":109,"decrypt_mirror":{"enable":0,"mirror_profile":null}} referenceObject= isValid=${1} appObjectIdArray=3
|
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest userTags= action=intercept effectiveRange= userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} isValid=${1} appObjectIdArray=3
|
||||||
${rescode} ${policyId} AddPolicy2 ${1} ${policyDict}
|
${rescode} ${policyId} AddPolicy2 ${1} ${policyDict}
|
||||||
#删除策略
|
#删除策略
|
||||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
||||||
@@ -879,5 +880,3 @@ ProxyPolicy-Hijack-Ssl-00022
|
|||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
#日志验证
|
#日志验证
|
||||||
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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ ${objectids} ${EMPTY}
|
|||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
ProxyPolicy-Monitor-Http-00001
|
ProxyPolicy-Monitor-Http-00001
|
||||||
[Tags] selfserver ip
|
[Tags] selfserver ip
|
||||||
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}
|
||||||
@@ -46,7 +46,7 @@ ProxyPolicy-Monitor-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-Monitor-Http-00002
|
ProxyPolicy-Monitor-Http-00002
|
||||||
[Tags] selfserver ip+fqdn完整匹配
|
[Tags] selfserver ip+fqdn完整匹配
|
||||||
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} ${objectId} AddObject2 ${1} ${objectDict}
|
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||||
@@ -78,7 +78,7 @@ ProxyPolicy-Monitor-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-Monitor-Http-00003
|
ProxyPolicy-Monitor-Http-00003
|
||||||
[Tags] selfserver ip+cat右匹配
|
[Tags] selfserver ip+cat右匹配
|
||||||
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} ${objectId} AddObject2 ${1} ${objectDict}
|
${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
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||||
|
|
||||||
ProxyPolicy-Monitor-Http-00023
|
ProxyPolicy-Monitor-Http-00023
|
||||||
[Tags] selfserver 最大组合
|
[Tags] selfserver 最大组合
|
||||||
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}
|
||||||
@@ -764,6 +764,7 @@ ProxyPolicy-Monitor-Http-00023
|
|||||||
#日志验证
|
#日志验证
|
||||||
${s} Convert to String ${policyId3}
|
${s} Convert to String ${policyId3}
|
||||||
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-Monitor-Http-00024
|
ProxyPolicy-Monitor-Http-00024
|
||||||
[Tags] selfserver 修改
|
[Tags] selfserver 修改
|
||||||
Comment 创建url
|
Comment 创建url
|
||||||
@@ -813,6 +814,7 @@ ProxyPolicy-Monitor-Http-00024
|
|||||||
Sleep ${policyLogVerificationSleepSeconds}s
|
Sleep ${policyLogVerificationSleepSeconds}s
|
||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
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-Monitor-Http-00025
|
ProxyPolicy-Monitor-Http-00025
|
||||||
[Tags] selfserver ip+请求体and关系
|
[Tags] selfserver ip+请求体and关系
|
||||||
Comment 创建请求体
|
Comment 创建请求体
|
||||||
@@ -832,7 +834,7 @@ ProxyPolicy-Monitor-Http-00025
|
|||||||
${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-Redircet-HTTP-0024.bat
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/ProxyPolicy-Redirect-HTTP-0024.bat
|
||||||
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=jwctest123&setCookie=12345678&contentType=content-type&resBody=Response Body" -kv http://open.node.com/action
|
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=jwctest123&setCookie=12345678&contentType=content-type&resBody=Response Body" -kv http://open.node.com/action
|
||||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List jwctest
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List jwctest
|
||||||
... ELSE Create List jwctest
|
... ELSE Create List jwctest
|
||||||
@@ -864,7 +866,7 @@ ProxyPolicy-Monitor-Http-00026
|
|||||||
${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-Redircet-HTTP-0024.bat
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/ProxyPolicy-Redirect-HTTP-0024.bat
|
||||||
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=jwctest123&setCookie=12345678&contentType=content-type&resBody=Response Body" -kv http://open.node.com/action
|
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=jwctest123&setCookie=12345678&contentType=content-type&resBody=Response Body" -kv http://open.node.com/action
|
||||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List jwctest
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List jwctest
|
||||||
... ELSE Create List jwctest
|
... ELSE Create List jwctest
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ ${objectids} ${EMPTY}
|
|||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
ProxyPolicy-Monitor-Ssl-00001
|
ProxyPolicy-Monitor-Ssl-00001
|
||||||
[Tags] selfserver ip
|
[Tags] selfserver ip
|
||||||
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}
|
||||||
@@ -46,7 +46,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00002
|
ProxyPolicy-Monitor-Ssl-00002
|
||||||
[Tags] selfserver ip+fqdn完整匹配
|
[Tags] selfserver ip+fqdn完整匹配
|
||||||
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} ${objectId} AddObject2 ${1} ${objectDict}
|
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||||
@@ -78,7 +78,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00003
|
ProxyPolicy-Monitor-Ssl-00003
|
||||||
[Tags] selfserver ip+cat右匹配
|
[Tags] selfserver ip+cat右匹配
|
||||||
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} ${objectId} AddObject2 ${1} ${objectDict}
|
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||||
@@ -110,7 +110,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00004
|
ProxyPolicy-Monitor-Ssl-00004
|
||||||
[Tags] selfserver ip+url右匹配
|
[Tags] selfserver ip+url右匹配
|
||||||
Comment 创建url
|
Comment 创建url
|
||||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*rutube.html
|
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*rutube.html
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||||
@@ -142,7 +142,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00005
|
ProxyPolicy-Monitor-Ssl-00005
|
||||||
[Tags] selfserver ip+url字串匹配
|
[Tags] selfserver 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}
|
||||||
@@ -174,7 +174,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00006
|
ProxyPolicy-Monitor-Ssl-00006
|
||||||
[Tags] selfserver ip+url完整匹配
|
[Tags] selfserver ip+url完整匹配
|
||||||
Comment 创建url
|
Comment 创建url
|
||||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$open.node.com/test/bytedance/bytedance.html
|
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$open.node.com/test/bytedance/bytedance.html
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||||
@@ -206,7 +206,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00007
|
ProxyPolicy-Monitor-Ssl-00007
|
||||||
[Tags] selfserver ip+url左匹配
|
[Tags] selfserver 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}
|
||||||
@@ -270,7 +270,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00009
|
ProxyPolicy-Monitor-Ssl-00009
|
||||||
[Tags] selfserver ip+请求头字串匹配
|
[Tags] selfserver 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}
|
||||||
@@ -302,7 +302,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00010
|
ProxyPolicy-Monitor-Ssl-00010
|
||||||
[Tags] selfserver ip+请求头完整匹配
|
[Tags] selfserver 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}
|
||||||
@@ -334,7 +334,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00011
|
ProxyPolicy-Monitor-Ssl-00011
|
||||||
[Tags] selfserver ip+请求头左匹配
|
[Tags] selfserver 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}
|
||||||
@@ -366,7 +366,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00012
|
ProxyPolicy-Monitor-Ssl-00012
|
||||||
[Tags] selfserver ip+cookie字串匹配
|
[Tags] selfserver 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}
|
||||||
@@ -398,7 +398,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00013
|
ProxyPolicy-Monitor-Ssl-00013
|
||||||
[Tags] selfserver ip+应答头右匹配
|
[Tags] selfserver 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}
|
||||||
@@ -430,7 +430,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00014
|
ProxyPolicy-Monitor-Ssl-00014
|
||||||
[Tags] selfserver ip+应答头字串匹配
|
[Tags] selfserver 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}
|
||||||
@@ -462,7 +462,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00015
|
ProxyPolicy-Monitor-Ssl-00015
|
||||||
[Tags] selfserver ip+应答头完整匹配
|
[Tags] selfserver 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}
|
||||||
@@ -494,7 +494,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00016
|
ProxyPolicy-Monitor-Ssl-00016
|
||||||
[Tags] selfserver ip+应答头左匹配
|
[Tags] selfserver 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}
|
||||||
@@ -526,7 +526,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00017
|
ProxyPolicy-Monitor-Ssl-00017
|
||||||
[Tags] selfserver ip+set-cookie右匹配
|
[Tags] selfserver 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}
|
||||||
@@ -558,7 +558,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00018
|
ProxyPolicy-Monitor-Ssl-00018
|
||||||
[Tags] selfserver ip+set-cookie字串匹配
|
[Tags] selfserver 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}
|
||||||
@@ -590,7 +590,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00019
|
ProxyPolicy-Monitor-Ssl-00019
|
||||||
[Tags] selfserver ip+set-cookie完整匹配
|
[Tags] selfserver 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}
|
||||||
@@ -622,7 +622,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00020
|
ProxyPolicy-Monitor-Ssl-00020
|
||||||
[Tags] selfserver ip+set-cookie左匹配
|
[Tags] selfserver 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}
|
||||||
@@ -654,7 +654,7 @@ ProxyPolicy-Monitor-Ssl-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-Monitor-Ssl-00021
|
ProxyPolicy-Monitor-Ssl-00021
|
||||||
[Tags] selfserver ip+请求体字串匹配
|
[Tags] selfserver ip+请求体字串匹配
|
||||||
Comment 创建请求体
|
Comment 创建请求体
|
||||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=test
|
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=test
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||||
@@ -686,7 +686,7 @@ ProxyPolicy-Monitor-Ssl-00021
|
|||||||
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-Monitor-Ssl-00022
|
ProxyPolicy-Monitor-Ssl-00022
|
||||||
[Tags] selfserver ip+应答体字串匹配
|
[Tags] selfserver ip+应答体字串匹配
|
||||||
Comment 创建应答体
|
Comment 创建应答体
|
||||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Response Body
|
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Response Body
|
||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||||
@@ -718,7 +718,7 @@ ProxyPolicy-Monitor-Ssl-00022
|
|||||||
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-Monitor-Ssl-00023
|
ProxyPolicy-Monitor-Ssl-00023
|
||||||
[Tags] selfserver 最大组合
|
[Tags] selfserver 最大组合
|
||||||
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}
|
||||||
@@ -764,6 +764,7 @@ ProxyPolicy-Monitor-Ssl-00023
|
|||||||
#日志验证
|
#日志验证
|
||||||
${s} Convert to String ${policyId3}
|
${s} Convert to String ${policyId3}
|
||||||
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-Monitor-Ssl-00024
|
ProxyPolicy-Monitor-Ssl-00024
|
||||||
[Tags] selfserver 修改
|
[Tags] selfserver 修改
|
||||||
Comment 创建请求头
|
Comment 创建请求头
|
||||||
@@ -813,6 +814,7 @@ ProxyPolicy-Monitor-Ssl-00024
|
|||||||
Sleep ${policyLogVerificationSleepSeconds}s
|
Sleep ${policyLogVerificationSleepSeconds}s
|
||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
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-Monitor-Ssl-00026
|
ProxyPolicy-Monitor-Ssl-00026
|
||||||
[Tags] selfserver ip+请求体或关系
|
[Tags] selfserver ip+请求体或关系
|
||||||
Comment 创建请求体
|
Comment 创建请求体
|
||||||
@@ -852,7 +854,7 @@ ProxyPolicy-Monitor-Ssl-00027
|
|||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||||
${objectids} set Variable ${objectId}
|
${objectids} set Variable ${objectId}
|
||||||
Comment 创建安全策略
|
Comment 创建安全策略
|
||||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest userTags= action=intercept effectiveRange= userRegion={"protocol":"SSL","keyring":1,"decryption":109,"decrypt_mirror":{"enable":0,"mirror_profile":null}} referenceObject= isValid=${1} appObjectIdArray=3
|
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest userTags= action=intercept effectiveRange= userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} referenceObject= isValid=${1} appObjectIdArray=3
|
||||||
${rescode} ${policyId} AddPolicy2 ${1} ${policyDict}
|
${rescode} ${policyId} AddPolicy2 ${1} ${policyDict}
|
||||||
#删除策略
|
#删除策略
|
||||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
||||||
@@ -884,7 +886,7 @@ ProxyPolicy-Monitor-Ssl-00028
|
|||||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||||
${objectids} set Variable ${objectId}
|
${objectids} set Variable ${objectId}
|
||||||
Comment 创建安全策略
|
Comment 创建安全策略
|
||||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest userTags= action=intercept effectiveRange= userRegion={"protocol":"SSL","keyring":1,"decryption":109,"decrypt_mirror":{"enable":0,"mirror_profile":null}} referenceObject= isValid=${1} appObjectIdArray=3
|
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest userTags= action=intercept effectiveRange= userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} referenceObject= isValid=${1} appObjectIdArray=3
|
||||||
${rescode} ${policyId} AddPolicy2 ${1} ${policyDict}
|
${rescode} ${policyId} AddPolicy2 ${1} ${policyDict}
|
||||||
#删除策略
|
#删除策略
|
||||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
||||||
|
|||||||
@@ -750,7 +750,7 @@ ProxyPolicy-Redirect-Http-00021
|
|||||||
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-Redirect-Http-00022
|
ProxyPolicy-Redirect-Http-00022
|
||||||
[Tags] selfserver 最大组合
|
[Tags] selfserver 最大组合
|
||||||
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}
|
||||||
@@ -800,6 +800,7 @@ ProxyPolicy-Redirect-Http-00022
|
|||||||
#日志验证
|
#日志验证
|
||||||
${s} Convert to String ${policyId3}
|
${s} Convert to String ${policyId3}
|
||||||
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-Redirect-Http-00023
|
ProxyPolicy-Redirect-Http-00023
|
||||||
[Tags] selfserver 修改
|
[Tags] selfserver 修改
|
||||||
Comment 创建url
|
Comment 创建url
|
||||||
@@ -849,6 +850,7 @@ ProxyPolicy-Redirect-Http-00023
|
|||||||
Sleep ${policyLogVerificationSleepSeconds}s
|
Sleep ${policyLogVerificationSleepSeconds}s
|
||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
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-Redirect-Http-00024
|
ProxyPolicy-Redirect-Http-00024
|
||||||
[Tags] selfserver ip+请求体and关系+url
|
[Tags] selfserver ip+请求体and关系+url
|
||||||
Comment 创建请求体
|
Comment 创建请求体
|
||||||
@@ -872,7 +874,7 @@ ProxyPolicy-Redirect-Http-00024
|
|||||||
${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-Redircet-HTTP-0024.bat
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/ProxyPolicy-Redirect-HTTP-0024.bat
|
||||||
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=jwctest123&setCookie=12345678&contentType=content-type&resBody=Response Body" -kv http://open.node.com/action
|
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=jwctest123&setCookie=12345678&contentType=content-type&resBody=Response Body" -kv http://open.node.com/action
|
||||||
@{stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.cmbchina.com/ 301 X-TG-Construct-By
|
@{stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.cmbchina.com/ 301 X-TG-Construct-By
|
||||||
... ELSE Create List http://www.cmbchina.com/ 301 X-TG-Construct-By
|
... ELSE Create List http://www.cmbchina.com/ 301 X-TG-Construct-By
|
||||||
@@ -908,7 +910,7 @@ ProxyPolicy-Redirect-Http-00025
|
|||||||
${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-Redircet-HTTP-0024.bat
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/ProxyPolicy-Redirect-HTTP-0024.bat
|
||||||
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=jwctest123&setCookie=12345678&contentType=content-type&resBody=Response Body" -kv http://open.node.com/action
|
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=jwctest123&setCookie=12345678&contentType=content-type&resBody=Response Body" -kv http://open.node.com/action
|
||||||
@{stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.cmbchina.com/ 301 X-TG-Construct-By
|
@{stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.cmbchina.com/ 301 X-TG-Construct-By
|
||||||
... ELSE Create List http://www.cmbchina.com/ 301 X-TG-Construct-By
|
... ELSE Create List http://www.cmbchina.com/ 301 X-TG-Construct-By
|
||||||
|
|||||||
@@ -750,7 +750,7 @@ ProxyPolicy-Redirect-Ssl-00021
|
|||||||
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-Redirect-Ssl-00022
|
ProxyPolicy-Redirect-Ssl-00022
|
||||||
[Tags] selfserver 最大组合
|
[Tags] selfserver 最大组合
|
||||||
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}
|
||||||
@@ -800,6 +800,7 @@ ProxyPolicy-Redirect-Ssl-00022
|
|||||||
#日志验证
|
#日志验证
|
||||||
${s} Convert to String ${policyId3}
|
${s} Convert to String ${policyId3}
|
||||||
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-Redirect-Ssl-00023
|
ProxyPolicy-Redirect-Ssl-00023
|
||||||
[Tags] selfserver 修改
|
[Tags] selfserver 修改
|
||||||
Comment 创建cookie
|
Comment 创建cookie
|
||||||
@@ -814,7 +815,7 @@ ProxyPolicy-Redirect-Ssl-00023
|
|||||||
${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}
|
||||||
${objectids} Catenate SEPARATOR=, ${objectids} ${object_cat_Id}
|
${objectids} Catenate SEPARATOR=, ${objectids} ${object_cat_Id}
|
||||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest userTags= action=intercept effectiveRange= userRegion={"protocol":"SSL","keyring":1,"decryption":109,"decrypt_mirror":{"enable":0,"mirror_profile":null}} referenceObject= isValid=${1} appObjectIdArray=3
|
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest userTags= action=intercept effectiveRange= userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} referenceObject= isValid=${1} appObjectIdArray=3
|
||||||
${rescode} ${policyId} AddPolicy2 ${1} ${policyDict}
|
${rescode} ${policyId} AddPolicy2 ${1} ${policyDict}
|
||||||
#删除策略
|
#删除策略
|
||||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
||||||
@@ -853,6 +854,7 @@ ProxyPolicy-Redirect-Ssl-00023
|
|||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
#日志验证
|
#日志验证
|
||||||
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-Redirect-Ssl-00024
|
ProxyPolicy-Redirect-Ssl-00024
|
||||||
[Tags] selfserver ip+请求体and关系+url
|
[Tags] selfserver ip+请求体and关系+url
|
||||||
Comment 创建请求体
|
Comment 创建请求体
|
||||||
|
|||||||
@@ -714,7 +714,7 @@ ProxyPolicy-Replace-Ssl-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-Replace-Ssl-00021
|
ProxyPolicy-Replace-Ssl-00021
|
||||||
[Tags] selfserver 最大组合
|
[Tags] selfserver 最大组合
|
||||||
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}
|
||||||
@@ -759,6 +759,7 @@ ProxyPolicy-Replace-Ssl-00021
|
|||||||
#日志验证
|
#日志验证
|
||||||
${s} Convert to String ${policyId3}
|
${s} Convert to String ${policyId3}
|
||||||
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-Replace-Ssl-00022
|
ProxyPolicy-Replace-Ssl-00022
|
||||||
[Tags] selfserver 修改
|
[Tags] selfserver 修改
|
||||||
Comment 创建url
|
Comment 创建url
|
||||||
@@ -774,7 +775,7 @@ ProxyPolicy-Replace-Ssl-00022
|
|||||||
${rescode} ${object_rq_Id} AddObject2 ${1} ${objectDict}
|
${rescode} ${object_rq_Id} AddObject2 ${1} ${objectDict}
|
||||||
${objectids} Catenate SEPARATOR=, ${objectids} ${object_rq_Id}
|
${objectids} Catenate SEPARATOR=, ${objectids} ${object_rq_Id}
|
||||||
Comment 创建安全策略
|
Comment 创建安全策略
|
||||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest userTags= action=intercept effectiveRange= userRegion={"protocol":"SSL","keyring":1,"decryption":109,"decrypt_mirror":{"enable":0,"mirror_profile":null}} referenceObject= isValid=${1} appObjectIdArray=3
|
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest userTags= action=intercept effectiveRange= userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} referenceObject= isValid=${1} appObjectIdArray=3
|
||||||
${rescode} ${policyId} AddPolicy2 ${1} ${policyDict}
|
${rescode} ${policyId} AddPolicy2 ${1} ${policyDict}
|
||||||
#删除策略
|
#删除策略
|
||||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
||||||
@@ -812,4 +813,4 @@ ProxyPolicy-Replace-Ssl-00022
|
|||||||
Sleep ${policyLogVerificationSleepSeconds}s
|
Sleep ${policyLogVerificationSleepSeconds}s
|
||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
#日志验证
|
#日志验证
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user