From fdc66e4cd18d9478d1c4955fc61c6ff3ebb26051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=AC=E5=B7=8D=E5=B7=9D?= Date: Mon, 11 May 2020 18:30:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B323=E6=97=A0=E6=B3=95=E5=91=BD?= =?UTF-8?q?=E4=B8=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../selfserver/Api_Security/Deny_Http_Tests.robot | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/01-TestCase/tsg_adc/selfserver/Api_Security/Deny_Http_Tests.robot b/01-TestCase/tsg_adc/selfserver/Api_Security/Deny_Http_Tests.robot index 454545e..147f880 100644 --- a/01-TestCase/tsg_adc/selfserver/Api_Security/Deny_Http_Tests.robot +++ b/01-TestCase/tsg_adc/selfserver/Api_Security/Deny_Http_Tests.robot @@ -660,11 +660,11 @@ SecurityPolicy-Deny-Http-00023 ${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_fqdn_Id} Comment 创建url - ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*open.node.com + ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=open.node.com ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_url_Id} 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_uid|Cookie ${rescode} ${object_CK_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_CK_Id} Comment 创建应答头 @@ -672,7 +672,7 @@ SecurityPolicy-Deny-Http-00023 ${rescode} ${object_CT_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_CT_Id} Comment 创建应答体 - ${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=switch + ${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=новости ${rescode} ${object_RQ_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_RQ_Id} Comment 创建安全策略 @@ -681,8 +681,8 @@ SecurityPolicy-Deny-Http-00023 #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${policyId}]} Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Deny-HTTP-0012.bat - ... ELSE set variable curl --cookie "*_ga=GA1.2.721078436.1587543528; _gid=GA1.2.916148851.1587543528; _gat=1; _ym_uid=1587543532244912958; _ym_d=1587543532; _ym_isad=2" --referer 'http://www.baidu.com/' \ http://open.node.com/test/nationalbank/nationalbank.html + ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Deny-HTTP-0023.bat + ... ELSE set variable curl -kv --cookie "*_ga=GA1.2.721078436.1587543528; _gid=GA1.2.916148851.1587543528; _gat=1; _ym_uid=1587543532244912958; _ym_d=1587543532; _ym_isad=2" --referer 'http://www.baidu.com/' \ http://open.node.com/test/tengrinews/tengrinews.html ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset ... ELSE Create List Message content over the limit has been removed ${starttime} Get Time @@ -693,7 +693,6 @@ SecurityPolicy-Deny-Http-00023 #日志验证 ${s} Convert to String ${policyId} GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com - SecurityPolicy-Deny-Http-00024 [Tags] selfserver deny http ip+host block Comment 创建fqdn