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

211 lines
12 KiB
Plaintext
Raw Normal View History

2020-07-29 20:20:03 +08:00
*** Settings ***
2021-05-17 13:24:29 +06:00
Test Teardown DeletePolicyAndObject1 ${policyIds} ${objectids} ${url} ${profiledId} ${categoryIds}
2020-07-29 20:20:03 +08:00
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}
${url} /v1/policy/profile/insertscripts
${profiledId} ${EMPTY}
2021-05-17 13:24:29 +06:00
${categoryIds} ${EMPTY}
2020-07-29 20:20:03 +08:00
*** Test Cases ***
Proxy-Policy-insert-00001
#删除文件
${profiledId} set Variable ${insert_profileId}
2021-05-17 13:24:29 +06:00
#删除category
${categoryIds} set Variable ${insert_categoryId}
2020-07-29 20:20:03 +08:00
#删除对象
${objectids} set Variable ${insert_objectId}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId39}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId41}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId42}
2020-07-29 20:20:03 +08:00
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_insert_policyId}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.costcotravel.com
2020-07-29 20:20:03 +08:00
Proxy-Policy-insert-00002
#删除文件
${profiledId} set Variable ${insert_profileId1}
#删除对象
${objectids} set Variable ${insert_objectId1}
${objectids} Catenate SEPARATOR=, ${insert_objectId40}
2020-07-29 20:20:03 +08:00
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_insert_policyId1}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId1}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId1}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host meilleurmobile
2020-07-29 20:20:03 +08:00
Proxy-Policy-insert-00003
#删除文件
${profiledId} set Variable ${insert_profileId2}
#删除对象
${objectids} set Variable ${insert_objectId2}
${objectids} Catenate SEPARATOR=, ${insert_objectId3}
2020-07-29 20:20:03 +08:00
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_insert_policyId2}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId2}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId2}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host scottsdalepublicart
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.troop508.org
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host dreamdayoncapecod.wordpress.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host doctorpoo
2020-07-29 20:20:03 +08:00
Proxy-Policy-insert-00004
#删除文件
${profiledId} set Variable ${insert_profileId3}
#删除对象
${objectids} set Variable ${insert_objectId4}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId5}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId6}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId43}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId44}
2020-07-29 20:20:03 +08:00
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_insert_policyId3}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId3}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId3}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host viator.com
2020-07-29 20:20:03 +08:00
Proxy-Policy-insert-00005
#删除文件
${profiledId} set Variable ${insert_profileId4}
#删除对象
${objectids} set Variable ${insert_objectId7}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId8}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId9}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_insert_policyId4}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId4}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId4}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host matadornetwork.com
2020-07-29 20:20:03 +08:00
Proxy-Policy-insert-00006
#删除文件
${profiledId} set Variable ${insert_profileId5}
#删除对象
${objectids} set Variable ${insert_objectId10}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId11}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId12}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_insert_policyId5}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId5}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId5}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.farecompare.com
2020-07-29 20:20:03 +08:00
Proxy-Policy-insert-00007
#删除文件
${profiledId} set Variable ${insert_profileId6}
#删除对象
${objectids} set Variable ${insert_objectId13}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId14}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId15}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_insert_policyId6}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId6}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId6}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.tripit.com
2020-07-29 20:20:03 +08:00
Proxy-Policy-insert-00008
#删除文件
${profiledId} set Variable ${insert_profileId7}
#删除对象
${objectids} set Variable ${insert_objectId16}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId17}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId18}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId45}
2020-07-29 20:20:03 +08:00
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_insert_policyId7}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId7}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId7}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host waikikibeachwalk.com
2020-07-29 20:20:03 +08:00
Proxy-Policy-insert-00009
#删除文件
${profiledId} set Variable ${insert_profileId8}
#删除对象
${objectids} set Variable ${insert_objectId19}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId20}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId21}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_insert_policyId8}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId8}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId8}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host guides.com
2020-07-29 20:20:03 +08:00
Proxy-Policy-insert-00010
#删除文件
${profiledId} set Variable ${insert_profileId9}
#删除对象
${objectids} set Variable ${insert_objectId22}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId23}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId24}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_insert_policyId9}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId9}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId9}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host cnstock.com
2020-07-29 20:20:03 +08:00
Proxy-Policy-insert-00011
#删除文件
${profiledId} set Variable ${insert_profileId10}
#删除对象
${objectids} set Variable ${insert_objectId25}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId26}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId27}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_insert_policyId10}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId10}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId10}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host newone.com.cn
2020-07-29 20:20:03 +08:00
Proxy-Policy-insert-00012
#删除文件
${profiledId} set Variable ${insert_profileId11}
#删除对象
${objectids} set Variable ${insert_objectId28}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId29}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId30}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_insert_policyId11}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId11}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId11}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host petapixel.com
2020-07-29 20:20:03 +08:00
Proxy-Policy-insert-00013
#删除文件
${profiledId} set Variable ${insert_profileId13}
#删除对象
${objectids} set Variable ${insert_objectId33}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId34}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId35}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId36}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId37}
${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId38}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_insert_policyId13}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId13}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId13}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.intervalworld.com