From 53efe32d126128c0bf6d50eb9f332b13db085b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=AC=E5=B7=8D=E5=B7=9D?= Date: Sun, 28 Jun 2020 19:17:41 +0800 Subject: [PATCH] =?UTF-8?q?quic=E5=8D=8F=E8=AE=AElog=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../multi_step/c_Deny_Quic_Tests.robot | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 01-TestCase/tsg_adc/multi_step/c_Deny_Quic_Tests.robot diff --git a/01-TestCase/tsg_adc/multi_step/c_Deny_Quic_Tests.robot b/01-TestCase/tsg_adc/multi_step/c_Deny_Quic_Tests.robot new file mode 100644 index 0000000..b959e33 --- /dev/null +++ b/01-TestCase/tsg_adc/multi_step/c_Deny_Quic_Tests.robot @@ -0,0 +1,35 @@ +*** 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-Quic-00001 + [Tags] fqdn + #删除对象 + ${objectids} set Variable ${deny_quic_objectId} + #删除策略 + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_quic_policyId}]} + ${s} Convert to String ${deny_quic_policyId} + GetLogList security_event_log ${deny_quic_starttime} ${deny_quic_endtime} ${testClentIP} ${s} common_l4_protocol IPv4_UDP + GetLogList security_event_log ${deny_quic_starttime1} ${deny_quic_endtime1} ${testClentIP} ${s} common_l4_protocol IPv4_UDP + +SecurityPolicy-Deny-Quic-00002 + [Tags] cat + #删除对象 + ${objectids} set Variable ${deny_quic_objectId1} + #删除策略 + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_quic_policyId1}]} + ${s} Convert to String ${deny_quic_policyId1} + GetLogList security_event_log ${deny_quic_starttime2} ${deny_quic_endtime2} ${testClentIP} ${s} common_l4_protocol IPv4_UDP + GetLogList security_event_log ${deny_quic_starttime3} ${deny_quic_endtime3} ${testClentIP} ${s} common_l4_protocol IPv4_UDP