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_Ssl_Tests.robot

69 lines
3.4 KiB
Plaintext
Raw Normal View History

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}
${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}
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}
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}
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
#删除对象
${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}
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}
${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}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni www.prlib.ru
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}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ssl_policyId4}]}
${s} Convert to String ${deny_ssl_policyId4}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni www.leisu.com
SecurityPolicy-Deny-Ssl-00006
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ssl_policyId5}]}