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_Monitor_Tests.robot
2021-05-17 13:24:29 +06:00

254 lines
16 KiB
Plaintext

*** Settings ***
Test Teardown DeletePolicyAndObject ${policyIds} ${objectids} ${categoryIds}
Force Tags tsg_adc_wp adc_log proxy_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}
${categoryIds} ${EMPTY}
*** Test Cases ***
Proxy-Policy-monitor-00001
#删除对象
${objectids} set Variable ${monitor_objectId}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId46}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId47}
#删除category
${categoryIds} set Variable ${monitor_categoryId}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host tv.cctv.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host feishu.cn
Proxy-Policy-monitor-00002
#删除对象
${objectids} set Variable ${monitor_objectId1}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId1}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId1}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId1}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.parkpennies.com
Proxy-Policy-monitor-00003
#删除对象
${objectids} set Variable ${monitor_objectId3}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId2}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId2}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId2}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId2}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.wmtransfer.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.banbaowang.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.qidian.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.rolandberger.com
Proxy-Policy-monitor-00004
#删除对象
${objectids} set Variable ${monitor_objectId4}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId5}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId6}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId48}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId49}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId50}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId3}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId3}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId3}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host v.qq.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.kumi.cn
Proxy-Policy-monitor-00005
#删除对象
${objectids} set Variable ${monitor_objectId7}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId8}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId9}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId4}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId4}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId4}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.mgtv.com
Proxy-Policy-monitor-00006
#删除对象
${objectids} set Variable ${monitor_objectId10}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId11}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId12}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId5}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId5}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId5}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host v.ifeng.com
Proxy-Policy-monitor-00007
#删除对象
${objectids} set Variable ${monitor_objectId13}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId14}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId15}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId6}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId6}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId6}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.pptv.com
Proxy-Policy-monitor-00008
#删除对象
${objectids} set Variable ${monitor_objectId16}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId17}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId18}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId51}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId52}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId53}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId7}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId7}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId7}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.zhenai.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host love.163.com
Proxy-Policy-monitor-00009
#删除对象
${objectids} set Variable ${monitor_objectId19}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId20}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId21}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId8}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId8}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId8}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host v.iqilu.com
Proxy-Policy-monitor-00010
#删除对象
${objectids} set Variable ${monitor_objectId22}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId23}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId24}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId9}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId9}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId9}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.fun.tv
Proxy-Policy-monitor-00011
#删除对象
${objectids} set Variable ${monitor_objectId25}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId26}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId27}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId10}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId10}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId10}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host hongniang.com
# Proxy-Policy-monitor-00012
# #删除对象
# ${objectids} set Variable ${monitor_objectId28}
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId29}
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId30}
# #删除策略
# ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId11}]}
# ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId11}]}
# ${policyIds} Create List ${policyId1} ${policyId2}
# ${s} Convert to String ${monitor_policyId11}
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.youqulu.com
# Proxy-Policy-monitor-00013
# #删除对象
# ${objectids} set Variable ${monitor_objectId31}
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId32}
# #删除策略
# ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId12}]}
# ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId12}]}
# ${policyIds} Create List ${policyId1} ${policyId2}
# ${s} Convert to String ${monitor_policyId12}
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.nypl.org
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.thailand.com.co
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host bj.zu.ke.com
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host nationalbank.kz
Proxy-Policy-monitor-00014
#删除对象
${objectids} set Variable ${monitor_objectId33}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId34}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId13}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId13}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId13}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
Proxy-Policy-monitor-00015
#删除对象
${objectids} set Variable ${monitor_objectId35}
#删除策略
${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId14}]}
${s} Convert to String ${monitor_policyId14}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
Proxy-Policy-monitor-00016
#删除对象
${objectids} set Variable ${monitor_objectId41}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId42}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId43}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId44}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId45}
#删除策略
${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId16}]}
${s} Convert to String ${monitor_policyId16}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
Proxy-Policy-monitor-00019
#删除对象
${objectids} set Variable ${monitor_objectId36}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId37}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId38}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId39}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId40}
#删除策略
${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId15}]}
${s} Convert to String ${monitor_policyId15}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.cndns.com
# Proxy-Policy-monitor-00016
# #删除对象
# ${objectids} set Variable ${monitor_objectId36}
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId37}
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId38}
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId39}
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId40}
# #删除策略
# ${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId15}]}
# ${s} Convert to String ${monitor_policyId15}
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
# Proxy-Policy-monitor-00017
# #删除对象
# ${objectids} set Variable ${monitor_objectId41}
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId42}
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId43}
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId44}
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId45}
# #删除策略
# ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId14}]}
# ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId16}]}
# ${policyIds} Create List ${policyId1} ${policyId2}
# ${s} Convert to String ${monitor_policyId16}
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.umusicpub.com