2020-06-23 21:05:19 +08:00
|
|
|
*** Settings ***
|
2021-05-17 13:24:29 +06:00
|
|
|
Test Teardown DeletePolicyAndObject ${policyIds} ${objectids} ${categoryIds}
|
2020-06-23 21:05:19 +08:00
|
|
|
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}
|
2021-05-17 13:24:29 +06:00
|
|
|
${categoryIds} ${EMPTY}
|
2020-06-23 21:05:19 +08:00
|
|
|
|
|
|
|
|
*** Test Cases ***
|
|
|
|
|
SecurityPolicy-Deny-Ssl-00001
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${deny_ssl_objectId}
|
2021-01-29 13:50:43 +08:00
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ssl_objectId4}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ssl_objectId5}
|
2021-05-17 13:24:29 +06:00
|
|
|
#删除category
|
|
|
|
|
${categoryIds} set Variable ${deny_ssl_categoryId}
|
2020-06-23 21:05:19 +08:00
|
|
|
#删除策略
|
|
|
|
|
${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
|
|
|
|
|
#删除对象
|
2021-02-08 18:33:51 +08:00
|
|
|
${objectids} set Variable ${deny_ssl_objectId1}
|
2020-06-23 21:05:19 +08:00
|
|
|
#删除策略
|
|
|
|
|
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ssl_policyId1}]}
|
|
|
|
|
${s} Convert to String ${deny_ssl_policyId1}
|
2021-01-29 13:50:43 +08:00
|
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni amesweb.info
|
|
|
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni rentar
|
2020-06-23 21:05:19 +08:00
|
|
|
|
|
|
|
|
SecurityPolicy-Deny-Ssl-00003
|
|
|
|
|
#删除对象
|
2021-02-18 16:21:02 +08:00
|
|
|
${objectids} set Variable ${deny_ssl_objectId2}
|
2020-06-23 21:05:19 +08:00
|
|
|
#删除策略
|
|
|
|
|
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ssl_policyId2}]}
|
|
|
|
|
${s} Convert to String ${deny_ssl_policyId2}
|
2021-02-18 16:21:02 +08:00
|
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni austinama.org
|
2020-06-23 21:05:19 +08:00
|
|
|
|
|
|
|
|
SecurityPolicy-Deny-Ssl-00004
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${deny_ssl_objectId3}
|
2021-01-29 13:50:43 +08:00
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ssl_objectId6}
|
2020-06-23 21:05:19 +08:00
|
|
|
#删除策略
|
|
|
|
|
${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
|
2021-01-29 13:50:43 +08:00
|
|
|
|
|
|
|
|
SecurityPolicy-Deny-Ssl-00005
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${deny_ssl_objectId7}
|
2021-05-17 13:24:29 +06:00
|
|
|
#删除category
|
|
|
|
|
${categoryIds} set Variable ${deny_ssl_categoryId}
|
2021-01-29 13:50:43 +08:00
|
|
|
#删除策略
|
|
|
|
|
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ssl_policyId4}]}
|
|
|
|
|
${s} Convert to String ${deny_ssl_policyId4}
|
2021-03-01 09:08:49 +08:00
|
|
|
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni www.leisu.com
|
|
|
|
|
|
|
|
|
|
SecurityPolicy-Deny-Ssl-00006
|
2021-03-05 11:37:54 +08:00
|
|
|
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ssl_policyId5}]}
|
2021-03-01 09:08:49 +08:00
|
|
|
|