2020-07-29 20:20:03 +08:00
|
|
|
*** 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
|
|
|
|
|
|
|
|
|
|
*** Test Cases ***
|
|
|
|
|
Proxy-Policy-replace-00001
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00001.bat
|
|
|
|
|
... ELSE set variable curl -kv https://destidotcom.wordpress.com/contact/
|
|
|
|
|
${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-replace-00002
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00002.bat
|
2021-02-01 19:18:07 +08:00
|
|
|
... ELSE set variable curl -kv https://www.splishsplash.com/
|
|
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List splishsplash Tango Secure Gateway CA
|
|
|
|
|
... ELSE Create List splishsplash Tango Secure Gateway CA
|
2020-07-29 20:20:03 +08:00
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
Proxy-Policy-replace-00003
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00003.bat
|
2021-02-01 19:18:07 +08:00
|
|
|
... ELSE set variable curl -kv https://umcfa.webs.com/
|
|
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Australia Tango Secure Gateway CA
|
|
|
|
|
... ELSE Create List Australia Tango Secure Gateway CA
|
2020-07-29 20:20:03 +08:00
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00003_1.bat
|
2021-02-01 19:18:07 +08:00
|
|
|
... ELSE set variable curl -kv https://www.pjpugliese.com/
|
|
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Peter Pugliese Tango Secure Gateway CA
|
|
|
|
|
... ELSE Create List Peter Pugliese Tango Secure Gateway CA
|
2020-07-29 20:20:03 +08:00
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00003_2.bat
|
2021-02-01 19:18:07 +08:00
|
|
|
... ELSE set variable curl -kv https://carblog.co.za/
|
|
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Carblog Tango Secure Gateway CA
|
|
|
|
|
... ELSE Create List Carblog Tango Secure Gateway CA
|
2020-07-29 20:20:03 +08:00
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00003_3.bat
|
2021-02-01 19:18:07 +08:00
|
|
|
... ELSE set variable curl -kv https://www.ornithomedia.com/
|
|
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 403 Tango Secure Gateway CA
|
|
|
|
|
... ELSE Create List 403 Tango Secure Gateway CA
|
2020-07-29 20:20:03 +08:00
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
Proxy-Policy-replace-00004
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00004.bat
|
2020-08-06 18:39:36 +08:00
|
|
|
... 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.ino.com/news/headlines/
|
2020-07-29 20:20:03 +08:00
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
|
|
|
|
|
... ELSE Create List text/json Tango Secure Gateway CA
|
|
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
Proxy-Policy-replace-00005
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00005.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" --referer 'https://www.baidu.com/' https://www.bestwestern.com/en_US.html
|
2021-02-01 19:18:07 +08:00
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 403 Tango Secure Gateway CA
|
|
|
|
|
... ELSE Create List 403 Tango Secure Gateway CA
|
2020-07-29 20:20:03 +08:00
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
Proxy-Policy-replace-00006
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00006.bat
|
2020-08-06 18:39:36 +08:00
|
|
|
... 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.quickenloans.com/mortgage-education/home-buyers-guide?qlsource=nav
|
2020-07-29 20:20:03 +08:00
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
|
|
|
|
|
... ELSE Create List text/json Tango Secure Gateway CA
|
|
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
Proxy-Policy-replace-00007
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00007.bat
|
2020-08-06 18:39:36 +08:00
|
|
|
... 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.gobank.com/mobile-banking/mobile-app
|
2020-07-29 20:20:03 +08:00
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
|
|
|
|
|
... ELSE Create List text/json Tango Secure Gateway CA
|
|
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
Proxy-Policy-replace-00008
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00008.bat
|
2020-08-05 18:51:02 +08:00
|
|
|
... ELSE set variable curl -kv http://www.ghzq.com.cn/ghzq/index.html
|
2020-07-29 20:20:03 +08:00
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json
|
|
|
|
|
... ELSE Create List text/json
|
|
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
Proxy-Policy-replace-00009
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00009.bat
|
2020-08-05 18:51:02 +08:00
|
|
|
... ELSE set variable curl -kv http://www.zts.com.cn/consult/consult.aspx
|
2020-07-29 20:20:03 +08:00
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json
|
|
|
|
|
... ELSE Create List text/json
|
|
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
Proxy-Policy-replace-00010
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00010.bat
|
2020-08-05 18:51:02 +08:00
|
|
|
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=hello&setCookie=hjbnm&contentType=text/html&resBody=05691" -kv \ http://open.node.com/action
|
2021-02-01 19:18:07 +08:00
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Not Found
|
|
|
|
|
... ELSE Create List Not Found
|
2020-07-29 20:20:03 +08:00
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
Proxy-Policy-replace-00011
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00011.bat
|
2020-08-05 18:51:02 +08:00
|
|
|
... ELSE set variable curl -kv http://www.shfe.com.cn/products/au/
|
2020-07-29 20:20:03 +08:00
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json
|
|
|
|
|
... ELSE Create List text/json
|
|
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
Proxy-Policy-replace-00012
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00012.bat
|
|
|
|
|
... ELSE set variable curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.national-park.com/welcome-to-canyonlands-national-park/
|
|
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
|
|
|
|
|
... ELSE Create List text/json Tango Secure Gateway CA
|
|
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
Proxy-Policy-replace-00013
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00013.bat
|
|
|
|
|
... ELSE set variable curl -kv https://www.expedia.co.uk/?pwaLob=wizard-hotel-pwa-v2
|
2021-02-01 19:18:07 +08:00
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List HTTPOnly Tango Secure Gateway CA
|
2020-07-29 20:20:03 +08:00
|
|
|
... ELSE Create List text/json Tango Secure Gateway CA
|
|
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00013_1.bat
|
|
|
|
|
... ELSE set variable curl -kv https://welcome.expediagroup.com/en?joinexpedia
|
2021-02-01 19:18:07 +08:00
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Expedia Group Tango Secure Gateway CA
|
|
|
|
|
... ELSE Create List Expedia Group Tango Secure Gateway CA
|
2020-07-29 20:20:03 +08:00
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00013_2.bat
|
|
|
|
|
... ELSE set variable curl -kv https://www.expediacruises.com/en-US/corporate
|
2021-02-01 19:18:07 +08:00
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Expedia Cruises Tango Secure Gateway CA
|
|
|
|
|
... ELSE Create List Expedia Cruises Tango Secure Gateway CA
|
2020-07-29 20:20:03 +08:00
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
Comment 功能端验证HTTP验证
|
|
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00013_3.bat
|
|
|
|
|
... ELSE set variable curl -kv https://www.classicvacations.com/collections/all-inclusive
|
2021-02-01 19:18:07 +08:00
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List classicvacations Tango Secure Gateway CA
|
|
|
|
|
... ELSE Create List classicvacations Tango Secure Gateway CA
|
2020-07-29 20:20:03 +08:00
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
|
|
|
|
|
|
Proxy-Policy-replace-00014
|
|
|
|
|
Comment 功能端验证HTTP验证
|
2020-08-05 18:51:02 +08:00
|
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00014.bat
|
2020-08-27 11:41:27 +08:00
|
|
|
... ELSE set variable curl -kv -L --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.engadget.com/gaming/
|
2020-07-29 20:20:03 +08:00
|
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
|
|
|
|
|
... ELSE Create List text/json Tango Secure Gateway CA
|
|
|
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|