Update Deny_Http_Tests.robot

This commit is contained in:
姬巍川
2020-04-27 14:12:51 +08:00
parent 7030aaf732
commit 6e784b136d

View File

@@ -742,23 +742,23 @@ ProxyPolicy-Deny-Http-00023
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
${objectids} set Variable ${object_fqdn_Id}
${objectids} Catenate SEPARATOR=, ${object_fqdn_Id}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*xiaozhu.html
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
${objectids} set Variable ${object_url_Id}
${objectids} Catenate SEPARATOR=, ${object_fqdn_Id} ${object_url_Id}
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
${rescode} ${object_rq_Id} AddObject2 ${1} ${objectDict}
${objectids} set Variable ${object_rq_Id}
${objectids} Catenate SEPARATOR=, ${object_fqdn_Id} ${object_url_Id} ${object_rq_Id}
Comment 创建应答头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type
${rescode} ${object_re_Id} AddObject2 ${1} ${objectDict}
${objectids} set Variable ${object_re_Id}
${objectids} Catenate SEPARATOR=, ${object_fqdn_Id} ${object_url_Id} ${object_rq_Id} ${object_re_Id}
Comment 创建应答体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=酒店式公寓
${rescode} ${object_by_Id} AddObject2 ${1} ${objectDict}
${objectids} set Variable ${object_by_Id}
${objectids} Catenate SEPARATOR=, ${object_fqdn_Id} ${object_url_Id} ${object_rq_Id} ${object_re_Id} ${object_by_Id}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest userTags= action=intercept effectiveRange= userRegion={"protocol": "HTTP"} referenceObject= isValid=${1} appObjectIdArray=2
${rescode} ${policyId} AddPolicy2 ${1} ${policyDict}
@@ -783,4 +783,4 @@ ProxyPolicy-Deny-Http-00023
${endtime} Get Time
#日志验证
${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