This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dongxiaoyan-tsg-autotest/01-TestCase/tsg_adc/multi_step/c_Deny_Rtp_Tests.robot
2021-05-17 13:24:29 +06:00

70 lines
3.2 KiB
Plaintext

*** 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
${objectids} set Variable ${deny_rtp_objectId8}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_rtp_objectId9}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_rtp_policyId}]}
${s} Convert to String ${deny_rtp_policyId}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action deny
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_policyId9}]}
${s} Convert to String ${deny_rtp_policyId9}