205 lines
17 KiB
Plaintext
205 lines
17 KiB
Plaintext
*** Settings ***
|
|
Force Tags tsg_adc_wp proxy_policy adc_verify
|
|
Library OperatingSystem
|
|
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
|
|
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
|
|
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
|
|
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
|
Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
|
|
# Resource ../../../03-Variable/ApplicationID.txt
|
|
Resource ../../../05-Other/AllFlowCaseVariable.txt
|
|
|
|
*** Test Cases ***
|
|
Proxy-Policy-allow-00001
|
|
sleep ${policyModifySleepSeconds}
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00001.bat
|
|
... ELSE set variable ${curlbatpath}/command/ProxyPolicy_allow_00001_L.bat
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 皮皮虾下载 Tango Secure Gateway CA
|
|
... ELSE Create List 皮皮虾下载 Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
Comment 改变拦截策略
|
|
${policyDict} Create Dictionary policyId=${intercept_allow_policyId} policyName=SecurityPolicy-Intercept-allow_1 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${allow_objectId39}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
|
log ${policyDict}
|
|
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
|
Comment 改变allow策略
|
|
${policyDict} Create Dictionary policyId=${allow_policyId} policyName=Proxy-Policy-allow-00001_1 policyType=pxy_manipulation policyDesc=autotest action=allow userRegion={"method":"allow","protocol":"HTTP"} filterList=${allow_objectId39}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
|
log ${policyDict}
|
|
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
|
sleep ${policyModifySleepSeconds}
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00001.bat
|
|
... ELSE set variable ${curlbatpath}/command/ProxyPolicy_allow_00001_L.bat
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 皮皮虾下载 Tango Secure Gateway CA
|
|
... ELSE Create List 皮皮虾下载 Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
Proxy-Policy-allow-00002
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00002.bat
|
|
... ELSE set variable ${curlbatpath}/command/ProxyPolicy_allow_00002_L.bat
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List www.feishu.cn Tango Secure Gateway CA
|
|
... ELSE Create List www.feishu.cn Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
Proxy-Policy-allow-00003
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003.bat
|
|
... ELSE set variable ${curlbatpath}/command/ProxyPolicy_allow_00003_L.bat
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List csgo500 Tango Secure Gateway CA
|
|
... ELSE Create List csgo500 Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003_1.bat
|
|
... ELSE set variable ${curlbatpath}/command/ProxyPolicy_allow_00003_1L.bat
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Тайные Tango Secure Gateway CA
|
|
... ELSE Create List Новости Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003_2.bat
|
|
... ELSE set variable ${curlbatpath}/command/ProxyPolicy_allow_00003_2L.bat
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List RSD Tango Secure Gateway CA
|
|
... ELSE Create List RSD Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
Proxy-Policy-allow-00004
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00004.bat
|
|
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.hao123.com
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 上网从这里开始 Tango Secure Gateway CA
|
|
... ELSE Create List 上网从这里开始 Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
Comment 改变allow策略
|
|
${policyDict} Create Dictionary policyId=${allow_policyId3} policyName=Proxy-Policy-allow-00004-1 policyType=pxy_manipulation policyDesc=autotest action=allow userRegion={"method":"allow","protocol":"HTTP"} filterList=${allow_objectId40}|TSG_FIELD_HTTP_URL,${allow_objectId41}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=${HTTP_ID}
|
|
log ${policyDict}
|
|
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00004.bat
|
|
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.hao123.com
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 上网从这里开始 Tango Secure Gateway CA
|
|
... ELSE Create List 上网从这里开始 Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
Proxy-Policy-allow-00005
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00005.bat
|
|
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://boutiquehotel.me/paris/
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List helps you find the best boutique hotels around the Tango Secure Gateway CA
|
|
... ELSE Create List helps you find the best boutique hotels around the Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
Proxy-Policy-allow-00006
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00006.bat
|
|
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.choicehotels.com/quality-inn
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List stores locale settings for multiple country sites Tango Secure Gateway CA
|
|
... ELSE Create List stores locale settings for multiple country sites Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
Proxy-Policy-allow-00007
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00007.bat
|
|
... ELSE set variable ${curlbatpath}/command/ProxyPolicy_allow_00007_L.bat
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List WoodSnap Tango Secure Gateway CA
|
|
... ELSE Create List WoodSnap Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
Proxy-Policy-allow-00008
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00008.bat
|
|
... ELSE set variable curl http://www.sse.com.cn/market/overview/
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 上海证券交易所
|
|
... ELSE Create List 上海证券交易所
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
Proxy-Policy-allow-00009
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00009.bat
|
|
... ELSE set variable curl http://www.szse.cn/lawrules/index.html
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 信息订阅
|
|
... ELSE Create List 信息订阅
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
Proxy-Policy-allow-00010
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00010.bat
|
|
... ELSE set variable ${curlbatpath}/command/ProxyPolicy_allow_00010_L.bat
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 广发证券
|
|
... ELSE Create List 广发证券
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
Proxy-Policy-allow-00011
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00011.bat
|
|
... ELSE set variable curl http://www.chinastock.com.cn/newsite/cgs-services/investBank.html
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 中国银河证券
|
|
... ELSE Create List 中国银河证券
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
Comment 改变allow
|
|
${policyDict} Create Dictionary policyId=${allow_policyId10} policyName=Proxy-Policy-allow-00011_1 policyType=pxy_manipulation policyDesc=autotest action=allow userRegion={"method":"allow","protocol":"HTTP"} filterList=${allow_objectId26}|TSG_FIELD_HTTP_URL,${allow_objectId42}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=${HTTP_ID}
|
|
log ${policyDict}
|
|
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
|
sleep 5
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00011.bat
|
|
... ELSE set variable curl http://www.chinastock.com.cn/newsite/cgs-services/investBank.html
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 中国银河证券
|
|
... ELSE Create List 中国银河证券
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
Proxy-Policy-allow-00012
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00012.bat
|
|
... ELSE set variable ${curlbatpath}/command/ProxyPolicy_allow_00012_L.bat
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Object moved Tango Secure Gateway CA
|
|
... ELSE Create List Object moved Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00012_2.bat
|
|
... ELSE set variable ${curlbatpath}/command/ProxyPolicy_allow_00012_2L.bat
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 红袖读书 Tango Secure Gateway CA
|
|
... ELSE Create List Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00012_3.bat
|
|
... ELSE set variable ${curlbatpath}/command/ProxyPolicy_allow_00012_3L.bat
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 小说阅读网 Tango Secure Gateway CA
|
|
... ELSE Create List Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00012_4.bat
|
|
... ELSE set variable ${curlbatpath}/command/ProxyPolicy_allow_00012_4L.bat
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Tango Secure Gateway CA
|
|
... ELSE Create List Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
Proxy-Policy-allow-00013
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00013.bat
|
|
... ELSE set variable curl -kv https://russia.payu.com/orange-data/
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Tango Secure Gateway CA
|
|
... ELSE Create List Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00013_1.bat
|
|
... ELSE set variable curl -kv https://tytbz.925mm.com/page/about.html
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 贴壁纸联盟 Tango Secure Gateway CA
|
|
... ELSE Create List 贴壁纸联盟 Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00013_2.bat
|
|
... ELSE set variable curl -kv https://dujia.qunar.com/?ex_track=auto_52b3f121
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 去哪儿旅游 Tango Secure Gateway CA
|
|
... ELSE Create List 去哪儿旅游 Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00013_3.bat
|
|
... ELSE set variable curl -kv https://www.vitalsource.com/textbooks
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Shop online and downloadable Tango Secure Gateway CA
|
|
... ELSE Create List Shop online and downloadable Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
Proxy-Policy-allow-00014
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00014.bat
|
|
... ELSE set variable curl -kv \ --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" \ --cookie "__cfduid=d5c21129d57e7124b729fd86dc82abdcd1596020306; __stripe_sid=2940d4d5-6822-4daf-8b38-9cd18d745beb; __stripe_mid=dd118cd8-845c-4b6e-98ce-81e8d5bdd52c" --referer 'https://www.baidu.com/' \ https://www.orbitz.com/Flights
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List www.orbitz.com Tango Secure Gateway CA
|
|
... ELSE Create List www.orbitz.com Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|