diff --git a/01-TestCase/tsg_adc/multi_step/c_Allow_Rtp_Tests.robot b/01-TestCase/tsg_adc/multi_step/c_Allow_Rtp_Tests.robot new file mode 100644 index 0000000..00ddfb5 --- /dev/null +++ b/01-TestCase/tsg_adc/multi_step/c_Allow_Rtp_Tests.robot @@ -0,0 +1,66 @@ +*** 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-Allow-Rtp-00001 + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_rtp_policyId}]} + ${s} Convert to String ${allow_rtp_policyId} + +SecurityPolicy-Allow-Rtp-00002 + ${objectids} set Variable ${allow_rtp_objectId} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_rtp_policyId1}]} + ${s} Convert to String ${allow_rtp_policyId1} + +SecurityPolicy-Allow-Rtp-00003 + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_rtp_policyId2}]} + ${s} Convert to String ${allow_rtp_policyId2} + +SecurityPolicy-Allow-Rtp-00004 + ${objectids} set Variable ${allow_rtp_objectId1} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_rtp_policyId3}]} + ${s} Convert to String ${allow_rtp_policyId3} + +SecurityPolicy-Allow-Rtp-00005 + ${objectids} set Variable ${allow_rtp_objectId2} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_rtp_policyId4}]} + ${s} Convert to String ${allow_rtp_policyId4} + +SecurityPolicy-Allow-Rtp-00006 + ${objectids} set Variable ${allow_rtp_objectId3} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_rtp_policyId5}]} + ${s} Convert to String ${allow_rtp_policyId5} + +SecurityPolicy-Allow-Rtp-00007 + ${objectids} set Variable ${allow_rtp_objectId4} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_rtp_policyId6}]} + ${s} Convert to String ${allow_rtp_policyId6} + +SecurityPolicy-Allow-Rtp-00008 + ${objectids} set Variable ${allow_rtp_objectId5} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_rtp_policyId7}]} + ${s} Convert to String ${allow_rtp_policyId7} + +SecurityPolicy-Allow-Rtp-00009 + ${objectids} set Variable ${allow_rtp_objectId6} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_rtp_policyId8}]} + ${s} Convert to String ${allow_rtp_policyId8} + +SecurityPolicy-Allow-Rtp-000010 + #删除对象 + ${objectids} set Variable ${allow_rtp_objectId7} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_rtp_policyId8}]} + ${s} Convert to String ${allow_rtp_policyId9} + + diff --git a/01-TestCase/tsg_adc/multi_step/c_Deny_Rtp_Tests.robot b/01-TestCase/tsg_adc/multi_step/c_Deny_Rtp_Tests.robot new file mode 100644 index 0000000..4f7703b --- /dev/null +++ b/01-TestCase/tsg_adc/multi_step/c_Deny_Rtp_Tests.robot @@ -0,0 +1,66 @@ +*** 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-Rtp-00001 + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_rtp_policyId}]} + ${s} Convert to String ${deny_rtp_policyId} + +SecurityPolicy-Deny-Rtp-00002 + ${objectids} set Variable ${deny_rtp_objectId} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_rtp_policyId1}]} + ${s} Convert to String ${deny_rtp_policyId1} + +SecurityPolicy-Deny-Rtp-00003 + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_rtp_policyId2}]} + ${s} Convert to String ${deny_rtp_policyId2} + +SecurityPolicy-Deny-Rtp-00004 + ${objectids} set Variable ${deny_rtp_objectId1} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_rtp_policyId3}]} + ${s} Convert to String ${deny_rtp_policyId3} + +SecurityPolicy-Deny-Rtp-00005 + ${objectids} set Variable ${deny_rtp_objectId2} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_rtp_policyId4}]} + ${s} Convert to String ${deny_rtp_policyId4} + +SecurityPolicy-Deny-Rtp-00006 + ${objectids} set Variable ${deny_rtp_objectId3} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_rtp_policyId5}]} + ${s} Convert to String ${deny_rtp_policyId5} + +SecurityPolicy-Deny-Rtp-00007 + ${objectids} set Variable ${deny_rtp_objectId4} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_rtp_policyId6}]} + ${s} Convert to String ${deny_rtp_policyId6} + +SecurityPolicy-Deny-Rtp-00008 + ${objectids} set Variable ${deny_rtp_objectId5} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_rtp_policyId7}]} + ${s} Convert to String ${deny_rtp_policyId7} + +SecurityPolicy-Deny-Rtp-00009 + ${objectids} set Variable ${deny_rtp_objectId6} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_rtp_policyId8}]} + ${s} Convert to String ${deny_rtp_policyId8} + +SecurityPolicy-Deny-Rtp-000010 + #删除对象 + ${objectids} set Variable ${deny_rtp_objectId7} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_rtp_policyId8}]} + ${s} Convert to String ${deny_rtp_policyId9} + + diff --git a/01-TestCase/tsg_adc/multi_step/c_Monitor_Rtp_Tests.robot b/01-TestCase/tsg_adc/multi_step/c_Monitor_Rtp_Tests.robot new file mode 100644 index 0000000..1d93650 --- /dev/null +++ b/01-TestCase/tsg_adc/multi_step/c_Monitor_Rtp_Tests.robot @@ -0,0 +1,66 @@ +*** 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-Monitor-Rtp-00001 + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_rtp_policyId}]} + ${s} Convert to String ${monitor_rtp_policyId} + +SecurityPolicy-Monitor-Rtp-00002 + ${objectids} set Variable ${monitor_rtp_objectId} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_rtp_policyId1}]} + ${s} Convert to String ${monitor_rtp_policyId1} + +SecurityPolicy-Monitor-Rtp-00003 + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_rtp_policyId2}]} + ${s} Convert to String ${monitor_rtp_policyId2} + +SecurityPolicy-Monitor-Rtp-00004 + ${objectids} set Variable ${monitor_rtp_objectId1} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_rtp_policyId3}]} + ${s} Convert to String ${monitor_rtp_policyId3} + +SecurityPolicy-Monitor-Rtp-00005 + ${objectids} set Variable ${monitor_rtp_objectId2} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_rtp_policyId4}]} + ${s} Convert to String ${monitor_rtp_policyId4} + +SecurityPolicy-Monitor-Rtp-00006 + ${objectids} set Variable ${monitor_rtp_objectId3} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_rtp_policyId5}]} + ${s} Convert to String ${monitor_rtp_policyId5} + +SecurityPolicy-Monitor-Rtp-00007 + ${objectids} set Variable ${monitor_rtp_objectId4} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_rtp_policyId6}]} + ${s} Convert to String ${monitor_rtp_policyId6} + +SecurityPolicy-Monitor-Rtp-00008 + ${objectids} set Variable ${monitor_rtp_objectId5} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_rtp_policyId7}]} + ${s} Convert to String ${monitor_rtp_policyId7} + +SecurityPolicy-monitor-Rtp-00009 + ${objectids} set Variable ${monitor_rtp_objectId6} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_rtp_policyId8}]} + ${s} Convert to String ${monitor_rtp_policyId8} + +SecurityPolicy-monitor-Rtp-000010 + #删除对象 + ${objectids} set Variable ${monitor_rtp_objectId7} + ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_rtp_policyId8}]} + ${s} Convert to String ${monitor_rtp_policyId9} + +