修改9用例策略验证
This commit is contained in:
@@ -238,7 +238,7 @@ SecurityPolicy-Deny-DNS-00008
|
|||||||
|
|
||||||
SecurityPolicy-Deny-DNS-00009
|
SecurityPolicy-Deny-DNS-00009
|
||||||
[Tags] selfserver dns deny ip+fqdn完整匹配
|
[Tags] selfserver dns deny ip+fqdn完整匹配
|
||||||
Comment 创建fqdn
|
Comment 创建fqdn
|
||||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.douyu.com
|
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.douyu.com
|
||||||
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
||||||
${objectids} set Variable ${object_fqdn_Id}
|
${objectids} set Variable ${object_fqdn_Id}
|
||||||
@@ -249,14 +249,17 @@ SecurityPolicy-Deny-DNS-00009
|
|||||||
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${policyId}]}
|
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${policyId}]}
|
||||||
Comment 功能端验证HTTP验证
|
Comment 功能端验证HTTP验证
|
||||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.douyu.com
|
${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
|
${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
|
${starttime} Get Time
|
||||||
Sleep ${policyVerificationSleepSeconds}s
|
Sleep ${policyVerificationSleepSeconds}s
|
||||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||||
Sleep ${policyLogVerificationSleepSeconds}s
|
Sleep ${policyLogVerificationSleepSeconds}s
|
||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
#日志验证
|
|
||||||
${s} Convert to String ${policyId}
|
${s} Convert to String ${policyId}
|
||||||
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname www.douyu.com
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname www.douyu.com
|
||||||
|
|||||||
Reference in New Issue
Block a user