66 lines
3.4 KiB
Plaintext
66 lines
3.4 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-ftp-00001
|
|
#删除对象
|
|
${objectids} set Variable ${deny_ftp_objectId}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId1}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId2}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId12}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId13}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId14}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId15}
|
|
#删除策略
|
|
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ftp_policyId}]}
|
|
${s} Convert to String ${deny_ftp_policyId}
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ftp_account ftpuser
|
|
|
|
SecurityPolicy-Deny-ftp-00002
|
|
#删除对象
|
|
${objectids} set Variable ${deny_ftp_objectId3}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId4}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId5}
|
|
#删除策略
|
|
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ftp_policyId1}]}
|
|
${s} Convert to String ${deny_ftp_policyId1}
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ftp_account ftpuser
|
|
|
|
SecurityPolicy-Deny-ftp-00003
|
|
#删除对象
|
|
${objectids} set Variable ${deny_ftp_objectId6}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId7}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId8}
|
|
#删除策略
|
|
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ftp_policyId2}]}
|
|
${s} Convert to String ${deny_ftp_policyId2}
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ftp_account ftpuser
|
|
|
|
SecurityPolicy-Deny-ftp-00004
|
|
#删除对象
|
|
${objectids} set Variable ${deny_ftp_objectId9}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId10}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId11}
|
|
#删除策略
|
|
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ftp_policyId3}]}
|
|
${s} Convert to String ${deny_ftp_policyId3}
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ftp_account ftpuser
|
|
|
|
SecurityPolicy-Deny-Ftp-00005
|
|
#删除策略
|
|
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ftp_policyId4}]}
|
|
${s} Convert to String ${deny_ftp_policyId4}
|
|
|