*** Settings *** Test Teardown DeletePolicyAndObject ${policyIds} ${objectids} Force Tags tsg_adc_wp adc_log security_policy Library OperatingSystem Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot Resource ../../../05-Other/AllFlowCaseVariable.txt Resource ../../../02-Keyword/tsg_adc/FileOperation.robot Resource ../../../05-Other/AllFlowCaseVariable1.txt *** Variables *** ${policyIds} ${EMPTY} ${objectids} ${EMPTY} *** Test Cases *** SecurityPolicy-Deny-Dns-00001 #删除对象 ${objectids} set Variable ${deny_dns_objectId} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_dns_objectId4} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_dns_policyId}]} ${s} Convert to String ${deny_dns_policyId} GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname facebook.com GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname rutube.ru SecurityPolicy-Deny-Dns-00002 #删除对象 ${objectids} set Variable ${deny_dns_objectId1} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_dns_policyId1}]} ${s} Convert to String ${deny_dns_policyId1} GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname www.arctictrucks.ru GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname wifika.ru SecurityPolicy-Deny-Dns-00003 #删除对象 ${objectids} set Variable ${deny_dns_objectId2} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_dns_objectId6} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_dns_policyId2}]} ${s} Convert to String ${deny_dns_policyId2} GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname huitu GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname aec188.com SecurityPolicy-Deny-Dns-00004 #删除对象 ${objectids} set Variable ${deny_dns_objectId3} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_dns_objectId5} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_dns_policyId3}]} ${s} Convert to String ${deny_dns_policyId3} GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname www.twitch.tv SecurityPolicy-Deny-Dns-00005 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_dns_policyId4}]} ${s} Convert to String ${deny_dns_policyId4}