diff --git a/01-TestCase/tsg_adc/multi_step/c_Deny_Dns_Tests.robot b/01-TestCase/tsg_adc/multi_step/c_Deny_Dns_Tests.robot new file mode 100644 index 0000000..d3a84b8 --- /dev/null +++ b/01-TestCase/tsg_adc/multi_step/c_Deny_Dns_Tests.robot @@ -0,0 +1,53 @@ +*** 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 + [Tags] sni + #删除对象 + ${objectids} set Variable ${deny_dns_objectId} + #删除策略 + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_dns_policyId}]} + ${s} Convert to String ${deny_dns_policyId} + GetLogList security_event_log ${deny_dns_starttime} ${deny_dns_endtime} ${testClentIP} ${s} dns_qname facebook.com + GetLogList security_event_log ${deny_dns_starttime1} ${deny_dns_endtime1} ${testClentIP} ${s} dns_qname ok.ru + +SecurityPolicy-Deny-Dns-00002 + [Tags] cn + #删除对象 + ${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 ${deny_dns_starttime2} ${deny_dns_endtime2} ${testClentIP} ${s} dns_qname yhd.com + GetLogList security_event_log ${deny_dns_starttime3} ${deny_dns_endtime3} ${testClentIP} ${s} dns_qname vk.com + +SecurityPolicy-Deny-Dns-00003 + [Tags] san + #删除对象 + ${objectids} set Variable ${deny_dns_objectId2} + #删除策略 + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_dns_policyId2}]} + ${s} Convert to String ${deny_dns_policyId2} + GetLogList security_event_log ${deny_dns_starttime4} ${deny_dns_endtime4} ${testClentIP} ${s} dns_qname ya.ru + +SecurityPolicy-Deny-Dns-00004 + [Tags] 最大组合 + #删除对象 + ${objectids} set Variable ${deny_dns_objectId3} + #删除策略 + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_dns_policyId3}]} + ${s} Convert to String ${deny_dns_policyId3} + GetLogList security_event_log ${deny_dns_starttime6} ${deny_dns_endtime6} ${testClentIP} ${s} dns_qname youtube.com