From bd7fc29e972f9a044816ae2dee1e101d12cf3306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=AC=E5=B7=8D=E5=B7=9D?= Date: Mon, 18 May 2020 15:35:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B99=E7=94=A8=E4=BE=8B=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../selfserver/Api_Security/Deny_DNS_Tests.robot | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/01-TestCase/tsg_adc/selfserver/Api_Security/Deny_DNS_Tests.robot b/01-TestCase/tsg_adc/selfserver/Api_Security/Deny_DNS_Tests.robot index af516ca..682268e 100644 --- a/01-TestCase/tsg_adc/selfserver/Api_Security/Deny_DNS_Tests.robot +++ b/01-TestCase/tsg_adc/selfserver/Api_Security/Deny_DNS_Tests.robot @@ -238,7 +238,7 @@ SecurityPolicy-Deny-DNS-00008 SecurityPolicy-Deny-DNS-00009 [Tags] selfserver dns deny ip+fqdn完整匹配 - Comment 创建fqdn + Comment 创建fqdn ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.douyu.com ${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict} ${objectids} set Variable ${object_fqdn_Id} @@ -249,14 +249,17 @@ SecurityPolicy-Deny-DNS-00009 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${policyId}]} Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.douyu.com - ... ELSE set variable nslookup -debug -query=A \ www.douyu.com nslookup -debug -query=AAAA \ www.douyu.com + ... ELSE set variable nslookup -debug -query=A www.douyu.com ${stringlist} run keyword if '${systemType}'=='Windows' Create List 192.168.50.18 www.tuniu.com ttl = 500 www.booking.com fc00::2:66 - ... ELSE Create List 192.168.50.18 www.tuniu.com ttl = 500 www.booking.com fc00::2:66 + ... ELSE Create List 192.168.50.18 www.tuniu.com ttl = 500 + ${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.douyu.com + ... ELSE set variable nslookup -debug -query=AAAA www.douyu.com + ${stringlist} run keyword if '${systemType}'=='Windows' Create List 192.168.50.18 www.tuniu.com ttl = 500 www.booking.com fc00::2:66 + ... ELSE Create List ttl = 500 www.booking.com fc00::2:66 ${starttime} Get Time Sleep ${policyVerificationSleepSeconds}s ${rescode} SystemCommands ${commandstr} ${stringlist} Sleep ${policyLogVerificationSleepSeconds}s ${endtime} Get Time - #日志验证 ${s} Convert to String ${policyId} GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname www.douyu.com