diff --git a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Deny_Ssl_Tests.robot b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Deny_Ssl_Tests.robot index e60570f..a270455 100644 --- a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Deny_Ssl_Tests.robot +++ b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Deny_Ssl_Tests.robot @@ -16,7 +16,7 @@ ${profiledId} ${EMPTY} *** Test Cases *** ProxyPolicy-Deny-Ssl-00001 - [Tags] selfserver ip deny ssl + [Tags] selfserver ip Comment 创建目标IP ${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=CIDR|192.168.100.5|32|0/0 ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -48,7 +48,7 @@ ProxyPolicy-Deny-Ssl-00001 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00002 - [Tags] selfserver ip+fqdn完整匹配 deny ssl + [Tags] selfserver ip+fqdn完整匹配 Comment 创建fqdn ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -80,7 +80,7 @@ ProxyPolicy-Deny-Ssl-00002 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00003 - [Tags] selfserver ip+cat右匹配 deny ssl + [Tags] selfserver ip+cat右匹配 Comment 创建cat ${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*node.com ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -112,7 +112,7 @@ ProxyPolicy-Deny-Ssl-00003 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00004 - [Tags] selfserver deny ip+url右匹配 ssl + [Tags] selfserver ip+url右匹配 Comment 创建url ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*rutube.html ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -146,7 +146,7 @@ ProxyPolicy-Deny-Ssl-00004 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00005 - [Tags] selfserver deny ip+url字串匹配 ssl + [Tags] selfserver ip+url字串匹配 Comment 创建url ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=test ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -180,7 +180,7 @@ ProxyPolicy-Deny-Ssl-00005 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00006 - [Tags] selfserver deny ip+url完整匹配 ssl + [Tags] selfserver ip+url完整匹配 Comment 创建url ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$open.node.com/test/bytedance/bytedance.html ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -212,7 +212,7 @@ ProxyPolicy-Deny-Ssl-00006 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00007 - [Tags] selfserver deny ip+url左匹配 ssl + [Tags] selfserver ip+url左匹配 Comment 创建url ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=open.node* ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -247,7 +247,7 @@ ProxyPolicy-Deny-Ssl-00007 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00008 - [Tags] selfserver deny ssl ip+请求头右匹配 + [Tags] selfserver ip+请求头右匹配 Comment 创建请求头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -281,7 +281,7 @@ ProxyPolicy-Deny-Ssl-00008 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00009 - [Tags] selfserver deny ip+请求头字串匹配 ssl + [Tags] selfserver ip+请求头字串匹配 Comment 创建请求头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Chrome|User-Agent ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -315,7 +315,7 @@ ProxyPolicy-Deny-Ssl-00009 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00010 - [Tags] selfserver deny ip+请求头完整匹配 ssl + [Tags] selfserver 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} @@ -347,7 +347,7 @@ ProxyPolicy-Deny-Ssl-00010 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00011 - [Tags] selfserver deny ip+请求头左匹配 ssl + [Tags] selfserver ip+请求头左匹配 Comment 创建请求头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -382,7 +382,7 @@ ProxyPolicy-Deny-Ssl-00011 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00012 - [Tags] selfserver deny ip+cookie字串匹配 ssl + [Tags] selfserver ip+cookie字串匹配 Comment 创建cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -414,7 +414,7 @@ ProxyPolicy-Deny-Ssl-00012 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00013 - [Tags] selfserver deny ip+应答头右匹配 ssl + [Tags] selfserver ip+应答头右匹配 Comment 创建应答头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*html|Content-Type ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -446,7 +446,7 @@ ProxyPolicy-Deny-Ssl-00013 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00014 - [Tags] selfserver deny ip+应答头字串匹配 ssl + [Tags] selfserver ip+应答头字串匹配 Comment 创建应答头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -480,7 +480,7 @@ ProxyPolicy-Deny-Ssl-00014 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00015 - [Tags] selfserver deny ip+应答头完整匹配 ssl + [Tags] selfserver ip+应答头完整匹配 Comment 创建应答头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html|Content-Type ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -512,7 +512,7 @@ ProxyPolicy-Deny-Ssl-00015 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00016 - [Tags] selfserver deny ip+应答头左匹配 ssl + [Tags] selfserver ip+应答头左匹配 Comment 创建应答头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text/html*|Content-Type ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -544,7 +544,7 @@ ProxyPolicy-Deny-Ssl-00016 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00017 - [Tags] selfserver deny ip+set-cookie右匹配 ssl + [Tags] selfserver ip+set-cookie右匹配 Comment 创建set-cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*HttpOnly|Set-Cookie ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -576,7 +576,7 @@ ProxyPolicy-Deny-Ssl-00017 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00018 - [Tags] selfserver deny ip+set-cookie字串匹配 ssl + [Tags] selfserver ip+set-cookie字串匹配 Comment 创建set-cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Path=/tsgInterface|Set-Cookie ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -610,7 +610,7 @@ ProxyPolicy-Deny-Ssl-00018 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00019 - [Tags] selfserver deny ip+set-cookie完整匹配 ssl + [Tags] selfserver ip+set-cookie完整匹配 Comment 创建set-cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$12345678|Set-Cookie ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -642,7 +642,7 @@ ProxyPolicy-Deny-Ssl-00019 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00020 - [Tags] selfserver deny ip+set-cookie左匹配 ssl + [Tags] selfserver ip+set-cookie左匹配 Comment 创建set-cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=JSESSIONID*|Set-Cookie ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -674,7 +674,7 @@ ProxyPolicy-Deny-Ssl-00020 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00021 - [Tags] selfserver deny ip+请求体字串匹配 ssl + [Tags] selfserver ip+请求体字串匹配 Comment 创建请求体 ${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=test ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -706,7 +706,7 @@ ProxyPolicy-Deny-Ssl-00021 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00022 - [Tags] selfserver deny ip+应答体字串匹配 ssl + [Tags] selfserver ip+应答体字串匹配 Comment 创建应答体 ${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Response Body ${rescode} ${objectId} AddObject2 ${1} ${objectDict} @@ -738,7 +738,7 @@ ProxyPolicy-Deny-Ssl-00022 GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00023 - [Tags] selfserver 最大组合 deny ssl + [Tags] selfserver 最大组合 Comment 创建fqdn ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com ${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict} @@ -785,7 +785,7 @@ ProxyPolicy-Deny-Ssl-00023 ${s} Convert to String ${policyId3} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com ProxyPolicy-Deny-Ssl-00024 - [Tags] selfserver 修改 deny ssl + [Tags] selfserver 修改 Comment 创建fqdn ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$open.node.com ${rescode} ${objectId} AddObject2 ${1} ${objectDict}