2020-06-23 21:05:19 +08:00
|
|
|
*** 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-Ssl-00001
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${deny_ssl_objectId}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ssl_policyId}]}
|
|
|
|
|
${s} Convert to String ${deny_ssl_policyId}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni freestockimages.ru
|
|
|
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni cxwl.com
|
2020-06-23 21:05:19 +08:00
|
|
|
|
|
|
|
|
SecurityPolicy-Deny-Ssl-00002
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${deny_ssl_objectId1}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ssl_policyId1}]}
|
|
|
|
|
${s} Convert to String ${deny_ssl_policyId1}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni berkeleygroup.co.uk
|
|
|
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni vip.com
|
2020-06-23 21:05:19 +08:00
|
|
|
|
|
|
|
|
SecurityPolicy-Deny-Ssl-00003
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${deny_ssl_objectId2}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ssl_policyId2}]}
|
|
|
|
|
${s} Convert to String ${deny_ssl_policyId2}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni nastol.com.ua
|
|
|
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni pulitzer.org
|
2020-06-23 21:05:19 +08:00
|
|
|
|
|
|
|
|
SecurityPolicy-Deny-Ssl-00004
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${deny_ssl_objectId3}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ssl_policyId3}]}
|
|
|
|
|
${s} Convert to String ${deny_ssl_policyId3}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni www.prlib.ru
|