diff --git a/01-TestCase/tsg_adc/Wan_Nat/Snat_00001.robot b/01-TestCase/tsg_adc/Wan_Nat/Snat_00001.robot index 8d5f9d0..0002bdc 100644 --- a/01-TestCase/tsg_adc/Wan_Nat/Snat_00001.robot +++ b/01-TestCase/tsg_adc/Wan_Nat/Snat_00001.robot @@ -12,6 +12,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot Resource ../../../05-Other/AllFlowCaseVariable.txt Resource ../../../02-Keyword/tsg_common/StmpHandle.robot Library Custometest +Library SSHLibrary *** Variables *** ${policyIds} ${EMPTY} @@ -26,13 +27,14 @@ a_wan_nat-snat-00001 ${WanNatIpPood} Add&EditWanIpPood ${must_parameter} ${wan_nat_ip_iplist} log ${WanNatIpPood} Comment 创建snat策略 - ${policyDict} Create Dictionary policyName=wan_nat_snat-00001 policyType=wannat policyDesc=autotest action=wannat userRegion={"method":"snat","snat_ip_pool_profile_id":[${WanNatIpPood}],"snat_vpn_user_account":"user-1","connection_timeout":"5","ip_select_option":{"snat_algorithm":"random","time":"","count":""}} isValid=${1} + ${policyDict} Create Dictionary policyName=wan_nat_snat-00001 policyType=wannat policyDesc=autotest action=wannat userRegion={"method":"snat","snat_ip_pool_profile_id":[${WanNatIpPood}],"snat_vpn_user_account":"${vpn}","connection_timeout":"5","ip_select_option":{"snat_algorithm":"random","time":"","count":""}} isValid=${1} log ${policyDict} ${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2 insert_policyId_to_file1 ip ${WanNatIpPood} insert_policyId_to_file1 policyId2 ${policyId2} b_wan_nat-snat-00001 + [Documentation] b_wan_nat-snat-00001需和b_wan_nat-snat-00001_1同时执行 [Tags] Never+IP Pools内单个IP Comment 功能端验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/wan_nat_sant_00001.bat @@ -65,6 +67,14 @@ b_wan_nat-snat-00001 Log ${发送邮件返回结果} should contain ${发送邮件返回结果} mail_success +b_wan_nat-snat-00001_1 + Open Connection 192.168.40.156 + SSHLibrary.Login root Xxg-PUB<>90 + Write tcpdump -n -nn -i ppp0 |grep 192.168.50.7 + ${output} read delay=1s + Should Contain ${output} 192.168.50.7.52640 > 10.10.120.250.80 + Should Contain ${output} 10.10.120.250.80 > 192.168.50.7.52640 + c_wan_nat-snat-00001 [Tags] Never+IP Pools内单个IP ${policyIds} Create List {"policyType":"wannat","policyIds":[${policyId2}]} diff --git a/01-TestCase/tsg_adc/Wan_Nat/Snat_00002.robot b/01-TestCase/tsg_adc/Wan_Nat/Snat_00002.robot index 80c55f1..fc58e89 100644 --- a/01-TestCase/tsg_adc/Wan_Nat/Snat_00002.robot +++ b/01-TestCase/tsg_adc/Wan_Nat/Snat_00002.robot @@ -11,6 +11,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot Resource ../../../05-Other/AllFlowCaseVariable.txt Resource ../../../02-Keyword/tsg_common/StmpHandle.robot Library Custometest +Library SSHLibrary *** Variables *** ${policyIds} ${EMPTY} @@ -44,6 +45,7 @@ a_wan_nat-snat-00002 insert_policyId_to_file1 snat3 ${policyId2} b_wan_nat-snat-00002 + [Documentation] b_wan_nat-snat-00002需和b_wan_nat-snat-00002_1同时执行 [Tags] Never+IP Pools内单个IP Comment 功能端验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/wan_nat_sant_00001.bat @@ -76,6 +78,14 @@ b_wan_nat-snat-00002 Log ${发送邮件返回结果} should contain ${发送邮件返回结果} mail_success +b_wan_nat-snat-00002_1 + Open Connection 192.168.40.156 + SSHLibrary.Login root Xxg-PUB<>90 + Write tcpdump -n -nn -i ppp0 |grep 192.168.50.7 + ${output} read delay=1s + Should Contain ${output} 192.168.50.7.52640 > 10.10.120.250.80 + Should Contain ${output} 10.10.120.250.80 > 192.168.50.7.52640 + c_wan_nat-snat-00002 [Tags] Never+IP Pools内单个IP ${policyIds} Create List {"policyType":"wannat","policyIds":[${snat3}]} diff --git a/01-TestCase/tsg_adc/Wan_Nat/b_Dnat_Tests.robot b/01-TestCase/tsg_adc/Wan_Nat/b_Dnat_Tests.robot index 4906e65..f9d7724 100644 --- a/01-TestCase/tsg_adc/Wan_Nat/b_Dnat_Tests.robot +++ b/01-TestCase/tsg_adc/Wan_Nat/b_Dnat_Tests.robot @@ -1,4 +1,5 @@ *** Settings *** +Documentation b_Dnat_Tests需和b_Dnat_Tests_1同时执行 Library OperatingSystem Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot diff --git a/01-TestCase/tsg_adc/Wan_Nat/b_Dnat_Tests_1.robot b/01-TestCase/tsg_adc/Wan_Nat/b_Dnat_Tests_1.robot new file mode 100644 index 0000000..3dd8fe7 --- /dev/null +++ b/01-TestCase/tsg_adc/Wan_Nat/b_Dnat_Tests_1.robot @@ -0,0 +1,41 @@ +*** Settings *** +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 +Library Custometest +Library SSHLibrary + +*** Test Cases *** +wan_nat-dnat-00001 + Open Connection 192.168.40.156 + SSHLibrary.Login root Xxg-PUB<>90 + Write tcpdump -n -nn -i ppp0 |grep 192.168.50.7 + ${output} read delay=1s + Should Contain ${output} 192.168.50.7.52640 > 10.10.120.250.80 + Should Contain ${output} 10.10.120.250.80 > 192.168.50.7.52640 + +wan_nat-dnat-00002 + Open Connection 192.168.40.156 + SSHLibrary.Login root Xxg-PUB<>90 + Write tcpdump -n -nn -i ppp0 |grep 192.168.50.7 + ${output} read delay=1s + Should Contain ${output} 192.168.50.7.52640 > 10.10.120.250.80 + Should Contain ${output} 10.10.120.250.80 > 192.168.50.7.52640 + +wan_nat-dnat-00003 + Open Connection 192.168.40.156 + SSHLibrary.Login root Xxg-PUB<>90 + Write tcpdump -n -nn -i ppp0 |grep 192.168.50.7 + ${output} read delay=1s + Should Contain ${output} 192.168.50.7.52640 > 10.10.120.250.80 + Should Contain ${output} 10.10.120.250.80 > 192.168.50.7.52640 + +wan_nat-dnat-00004 + Open Connection 192.168.40.156 + SSHLibrary.Login root Xxg-PUB<>90 + Write tcpdump -n -nn -i ppp0 |grep 192.168.50.7 + ${output} read delay=1s + Should Contain ${output} 192.168.50.7.52640 > 10.10.120.250.80 + Should Contain ${output} 10.10.120.250.80 > 192.168.50.7.52640 diff --git a/01-TestCase/tsg_adc/multi_step/a_Allow_Allow_120UIAPI.robot b/01-TestCase/tsg_adc/multi_step/a_Allow_Allow_120UIAPI.robot index 2e9f882..e099f10 100644 --- a/01-TestCase/tsg_adc/multi_step/a_Allow_Allow_120UIAPI.robot +++ b/01-TestCase/tsg_adc/multi_step/a_Allow_Allow_120UIAPI.robot @@ -10,31 +10,29 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot *** Test Cases *** SecurityPolicy-Allow-UIAPI [Tags] uiallow - ${addItemList1} Create Dictionary isSession=endpoint ip=192.168.40.120/32 port=0-0 direction=0 protocol=0 isInitialize=0 + ${addItemList1} Create Dictionary isSession=endpoint ip=192.168.44.17/32 port=0-0 direction=0 protocol=0 isInitialize=0 #可以添加多个 ${addItemLists} Create list ${addItemList1} #objectList对象 ${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=${addItemLists} - ${rescode} ${objectId} AddObjects ${1} ${objectDict} + ${rescode} ${objectId} AddObjects ${1} ${objectDict} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-120 policyType=tsg_security policyDesc=autotest action=allow destination=${objectId}|TSG_SECURITY_DESTINATION_ADDR userRegion={"protocol":"HTTP"} isValid=${1} appIdObjects=2 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-120 policyType=tsg_security policyDesc=autotest action=allow destination=${objectId}|TSG_SECURITY_DESTINATION_ADDR userRegion={"protocol":"HTTP"} isValid=${1} appIdObjects=2 log ${policyDict} ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 insert_policyId_to_file1 SecurityPolicy-Allow ${objectId} insert_policyId_to_file1 SecurityPolicy-Allow ${policyId} - -#SecurityPolicy-Allow-UIAPI -# [Tags] uiallow -# ${addItemList1} Create Dictionary isSession=endpoint ip=192.168.40.120/32 port=0-0 direction=0 protocol=0 isInitialize=0 -# #可以添加多个 -# ${addItemLists} Create list ${addItemList1} -# #objectList对象 -# ${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=${addItemLists} - # ${rescode} ${objectId} AddObjects ${1} ${objectDict} - # Comment 创建安全策略 -# ${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-120 policyType=tsg_security policyDesc=autotest action=allow destination=${objectId}|TSG_SECURITY_DESTINATION_ADDR userRegion=${EMPTY} isValid=${1} appIdObjects=2,3 - # log ${policyDict} -# ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 - # insert_policyId_to_file1 SecurityPolicy-Allow ${objectId} - # insert_policyId_to_file1 SecurityPolicy-Allow ${policyId} - + #SecurityPolicy-Allow-UIAPI + # [Tags] uiallow + # ${addItemList1} Create Dictionary isSession=endpoint ip=192.168.40.120/32 port=0-0 direction=0 protocol=0 isInitialize=0 + # #可以添加多个 + # ${addItemLists} Create list ${addItemList1} + # #objectList对象 + # ${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=${addItemLists} + # ${rescode} ${objectId} AddObjects ${1} ${objectDict} + # Comment 创建安全策略 + # ${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-120 policyType=tsg_security policyDesc=autotest action=allow destination=${objectId}|TSG_SECURITY_DESTINATION_ADDR userRegion=${EMPTY} isValid=${1} appIdObjects=2,3 + # log ${policyDict} + # ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 + # insert_policyId_to_file1 SecurityPolicy-Allow ${objectId} + # insert_policyId_to_file1 SecurityPolicy-Allow ${policyId} diff --git a/01-TestCase/tsg_adc/multi_step/a_Allow_Tests.robot b/01-TestCase/tsg_adc/multi_step/a_Allow_Tests.robot index 93c06c0..34cc88a 100644 --- a/01-TestCase/tsg_adc/multi_step/a_Allow_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/a_Allow_Tests.robot @@ -141,10 +141,10 @@ Proxy-Policy-allow-00006 Proxy-Policy-allow-00007 [Tags] 请求头右匹配 Comment 创建fqdn - ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.clubmed.us + ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.woodsnap.com ${rescode} ${objectId} AddObject2 ${1} ${objectDict} Comment 创建url - ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=Sandpiper-Bay/y + ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=about-us/frames ${rescode} ${objectId1} AddObject2 ${1} ${objectDict} Comment 创建请求头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent diff --git a/01-TestCase/tsg_adc/multi_step/a_Deny_Http_Tests.robot b/01-TestCase/tsg_adc/multi_step/a_Deny_Http_Tests.robot index f49cb86..c895a2b 100644 --- a/01-TestCase/tsg_adc/multi_step/a_Deny_Http_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/a_Deny_Http_Tests.robot @@ -90,7 +90,7 @@ SecurityPolicy-Deny-Http-00006 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=AppleWebKit|User-Agent ${rescode} ${objectId} AddObject2 ${1} ${objectDict} Comment 创建url - ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=mondomedia.com + ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=egypt.travel ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} Comment 创建安全策略 ${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Http-00006 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"alert","code":200,"message":"网站被阻断"} filterList=${objectId}|TSG_FIELD_HTTP_REQ_HDR,${object_url_Id}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2 @@ -199,7 +199,7 @@ SecurityPolicy-Deny-Http-00012 SecurityPolicy-Deny-Http-00013 [Tags] set-cookie4种匹配 Comment 创建set-cookie - ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=CURRENT_CITY_CODE*|Set-Cookie,*domain=.xiaozhu.com|Set-Cookie,PHPSESSID|Set-Cookie,oKD0_802a*|Set-Cookie + ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=CURRENT_CITY_CODE*|Set-Cookie,ASP.NET_SessionId*|Set-Cookie,PHPSESSID|Set-Cookie,oKD0_802a*|Set-Cookie ${rescode} ${objectId} AddObject2 ${1} ${objectDict} Comment 创建安全策略 ${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Http-00013 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"drop"} filterList=${objectId}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=2 diff --git a/01-TestCase/tsg_adc/multi_step/a_Deny_Tests.robot b/01-TestCase/tsg_adc/multi_step/a_Deny_Tests.robot index 9b3f0b4..51b7a3e 100644 --- a/01-TestCase/tsg_adc/multi_step/a_Deny_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/a_Deny_Tests.robot @@ -436,7 +436,7 @@ Proxy-Policy-deny-00018 ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.umusicpub.com ${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict} Comment 创建url - ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*sicpub.com/au/ + ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=sicpub.com ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} Comment 创建cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=timezoneoffset|Cookie @@ -445,7 +445,7 @@ Proxy-Policy-deny-00018 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Domain=.umusicpub.com|Set-Cookie ${rescode} ${object_yd_Id} AddObject2 ${1} ${objectDict} Comment 创建应答体 - ${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=website + ${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=NOFOLLOW ${rescode} ${object_body_Id} AddObject2 ${1} ${objectDict} Comment 创建拦截策略 ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-deny policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${object_fqdn_Id}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3 diff --git a/01-TestCase/tsg_adc/multi_step/a_Insert_Tests.robot b/01-TestCase/tsg_adc/multi_step/a_Insert_Tests.robot index d3cea6e..cdc3423 100644 --- a/01-TestCase/tsg_adc/multi_step/a_Insert_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/a_Insert_Tests.robot @@ -67,7 +67,7 @@ Proxy-Policy-insert-00003 ${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*uncorneredmarket.com,*alltrails.com,*atlasobscura.com,*anguilla-beaches.com ${rescode} ${objectId} AddObject2 ${1} ${objectDict} Comment 创建url - ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=uncorneredmarket.com/work*,$www.alltrails.com/signup?ref=header,*experiences,anguilla-villas.html + ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=uncorneredmarket.com/work*,www.alltrails.com,*experiences,anguilla-villas.html ${rescode} ${objectId1} AddObject2 ${1} ${objectDict} Comment 创建insert文件 ${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert @@ -321,10 +321,10 @@ Proxy-Policy-insert-00011 Proxy-Policy-insert-00012 [Tags] cookie字串匹配 Comment 创建fqdn - ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.eastbay.com + ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$petapixel.com ${rescode} ${objectId} AddObject2 ${1} ${objectDict} Comment 创建url - ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=womens.html + ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=equipment/ ${rescode} ${objectId1} AddObject2 ${1} ${objectDict} Comment 创建cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=saltkey|Cookie @@ -348,35 +348,6 @@ Proxy-Policy-insert-00012 insert_policyId_to_file1 insert_policyId11 ${policyId2} Proxy-Policy-insert-00013 - [Tags] set-cookie4种匹配 - Comment 创建fqdn - ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.shermanstravel.com,*wyndhamhotels.com,*travelnow.com,$www.smithsonianjourneys.org - ${rescode} ${objectId} AddObject2 ${1} ${objectDict} - Comment 创建set-cookie - ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=django_language=en*|Set-Cookie,*Domain=us.travelnow.com|Set-Cookie,device_type=desktop|Set-Cookie,__st_session=*|Set-Cookie - ${rescode} ${objectId1} AddObject2 ${1} ${objectDict} - Comment 创建insert文件 - ${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert - ${profiledId} Get From Dictionary ${response} profileId - Comment 创建url - ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=www.shermanstravel.com,wyndhamhotels.com,travelnow.com,www.smithsonianjourneys.org - ${rescode} ${objectId2} AddObject2 ${1} ${objectDict} - Comment 创建拦截策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3 - log ${policyDict} - ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2 - Comment 创建insert策略 - ${policyDict} Create Dictionary policyName=Proxy-Policy-insert-00013 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"insert","insert_profile":${profiledId},"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_RES_HDR,${objectId2}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2 - log ${policyDict} - ${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2 - insert_policyId_to_file1 insert_profileId12 ${profiledId} - insert_policyId_to_file1 insert_objectId31 ${objectId} - insert_policyId_to_file1 insert_objectId32 ${objectId1} - insert_policyId_to_file1 insert_objectId41 ${objectId2} - insert_policyId_to_file1 intercept_insert_policyId12 ${policyId1} - insert_policyId_to_file1 insert_policyId12 ${policyId2} - -Proxy-Policy-insert-00014 [Tags] 最大组合 Comment 创建fqdn ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*intervalworld.com @@ -404,7 +375,7 @@ Proxy-Policy-insert-00014 log ${policyDict} ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2 Comment 创建insert策略 - ${policyDict} Create Dictionary policyName=Proxy-Policy-insert-00014 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"insert","insert_profile":${profiledId},"protocol":"HTTP"} filterList=${object_fqdn_Id}|TSG_FIELD_HTTP_HOST,${object_url_Id}|TSG_FIELD_HTTP_URL,${object_qq_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_yd_Id}|TSG_FIELD_HTTP_RES_HDR,${object_ck_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_sk_Id}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=2 + ${policyDict} Create Dictionary policyName=Proxy-Policy-insert-00013 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"insert","insert_profile":${profiledId},"protocol":"HTTP"} filterList=${object_fqdn_Id}|TSG_FIELD_HTTP_HOST,${object_url_Id}|TSG_FIELD_HTTP_URL,${object_qq_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_yd_Id}|TSG_FIELD_HTTP_RES_HDR,${object_ck_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_sk_Id}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=2 log ${policyDict} ${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2 insert_policyId_to_file1 insert_profileId13 ${profiledId} diff --git a/01-TestCase/tsg_adc/multi_step/a_Intercept_Http_Tests.robot b/01-TestCase/tsg_adc/multi_step/a_Intercept_Http_Tests.robot index 471816b..9d0cd91 100644 --- a/01-TestCase/tsg_adc/multi_step/a_Intercept_Http_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/a_Intercept_Http_Tests.robot @@ -26,7 +26,7 @@ SecurityPolicy-Intercept-Http-00001 SecurityPolicy-Intercept-Http-00002 [Tags] cat右匹配 Comment 创建cat - ${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*sunnylands.org + ${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*nerdacy.com ${rescode} ${objectId} AddObject2 ${1} ${objectDict} Comment 创建安全策略 ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-Http-00002 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=2 diff --git a/01-TestCase/tsg_adc/multi_step/a_Monitor_Http_Tests.robot b/01-TestCase/tsg_adc/multi_step/a_Monitor_Http_Tests.robot index 2eca71a..6ee7a0a 100644 --- a/01-TestCase/tsg_adc/multi_step/a_Monitor_Http_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/a_Monitor_Http_Tests.robot @@ -214,7 +214,7 @@ SecurityPolicy-Monitor-Http-00014 SecurityPolicy-Monitor-Http-00015 [Tags] 应答体字串匹配 Comment 创建应答体 - ${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=this + ${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=我的自选 ${rescode} ${objectId} AddObject2 ${1} ${objectDict} Comment 创建安全策略 ${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00015 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_RES_CONTENT isValid=${1} appIdObjects=2 diff --git a/01-TestCase/tsg_adc/multi_step/a_Monitor_Tests.robot b/01-TestCase/tsg_adc/multi_step/a_Monitor_Tests.robot index 3bc489e..cda0f82 100644 --- a/01-TestCase/tsg_adc/multi_step/a_Monitor_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/a_Monitor_Tests.robot @@ -378,7 +378,7 @@ Proxy-Policy-monitor-00017 ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.umusicpub.com ${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict} Comment 创建url - ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*sicpub.com/au/ + ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=sicpub.com ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} Comment 创建cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=timezoneoffset|Cookie @@ -387,7 +387,7 @@ Proxy-Policy-monitor-00017 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Domain=.umusicpub.com|Set-Cookie ${rescode} ${object_yd_Id} AddObject2 ${1} ${objectDict} Comment 创建应答体 - ${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=website + ${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=NOFOLLOW ${rescode} ${object_body_Id} AddObject2 ${1} ${objectDict} Comment 创建拦截策略 ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${object_fqdn_Id}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3 diff --git a/01-TestCase/tsg_adc/multi_step/a_Replace_Tests.robot b/01-TestCase/tsg_adc/multi_step/a_Replace_Tests.robot index ac37a9b..7c78295 100644 --- a/01-TestCase/tsg_adc/multi_step/a_Replace_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/a_Replace_Tests.robot @@ -320,22 +320,22 @@ Proxy-Policy-replace-00013 Proxy-Policy-replace-00014 [Tags] 最大组合 Comment 创建fqdn - ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*hotelplanner.com + ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*engadget.com ${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict} Comment 创建url - ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*/Group-Rate/ + ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*gaming/ ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} Comment 创建请求头 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent ${rescode} ${object_qq_Id} AddObject2 ${1} ${objectDict} Comment 创建应答头 - ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=charset|Content-Type + ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text|Content-Type ${rescode} ${object_yd_Id} AddObject2 ${1} ${objectDict} Comment 创建cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=__stripe_sid|Cookie ${rescode} ${object_ck_Id} AddObject2 ${1} ${objectDict} Comment 创建set-cookie - ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=CURRENCY=USD|Set-Cookie + ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Domain=.engadget.com|Set-Cookie ${rescode} ${object_sk_Id} AddObject2 ${1} ${objectDict} Comment 创建拦截策略 ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-replace policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${object_fqdn_Id}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3 diff --git a/01-TestCase/tsg_adc/multi_step/b_Allow_Tests.robot b/01-TestCase/tsg_adc/multi_step/b_Allow_Tests.robot index bad4a2e..9933b7e 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Allow_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Allow_Tests.robot @@ -76,9 +76,9 @@ Proxy-Policy-allow-00006 Proxy-Policy-allow-00007 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00007.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.clubmed.us/r/Sandpiper-Bay/y - ${stringlist} run keyword if '${systemType}'=='Windows' Create List per night per adult based Tango Secure Gateway CA - ... ELSE Create List per night per adult based Tango Secure Gateway CA + ... 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.woodsnap.com/about-us/frames + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Google Tag Manager Tango Secure Gateway CA + ... ELSE Create List Google Tag Manager Tango Secure Gateway CA ${rescode} SystemCommands ${commandstr} ${stringlist} Proxy-Policy-allow-00008 @@ -151,6 +151,6 @@ 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 plenty of cheap airfare and flights to choose from Tango Secure Gateway CA - ... ELSE Create List plenty of cheap airfare and flights to choose from Tango Secure Gateway CA + ${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} diff --git a/01-TestCase/tsg_adc/multi_step/b_Deny_Http_Tests.robot b/01-TestCase/tsg_adc/multi_step/b_Deny_Http_Tests.robot index 9f85aef..541e112 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Deny_Http_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Deny_Http_Tests.robot @@ -68,7 +68,7 @@ SecurityPolicy-Deny-Http-00005 SecurityPolicy-Deny-Http-00006 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_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 'http://www.baidu.com/' \http://egypt.travel/ru + ... 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 'http://www.baidu.com/' http://egypt.travel/ru ${stringlist} run keyword if '${systemType}'=='Windows' Create List 网站被阻断 ... ELSE Create List 网站被阻断 ${rescode} SystemCommands ${commandstr} ${stringlist} @@ -76,7 +76,7 @@ SecurityPolicy-Deny-Http-00006 SecurityPolicy-Deny-Http-00007 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00007.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 'http://www.baidu.com/' \http://www.gw.com.cn/download.shtml + ... 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 'http://www.baidu.com/' http://www.gw.com.cn/download.shtml ${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 ... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 ${rescode} SystemCommands ${commandstr} ${stringlist} @@ -130,7 +130,7 @@ SecurityPolicy-Deny-Http-00013 ${rescode} SystemCommands ${commandstr} ${stringlist} Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00013_1.bat - ... ELSE set variable curl http://www.xiaozhu.com/#ongo + ... ELSE set variable curl http://blog.cnstock.com/ ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset ... ELSE Create List Connection reset by peer ${rescode} SystemCommands ${commandstr} ${stringlist} diff --git a/01-TestCase/tsg_adc/multi_step/b_Insert_Tests.robot b/01-TestCase/tsg_adc/multi_step/b_Insert_Tests.robot index 1d60f10..2d8ae4f 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Insert_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Insert_Tests.robot @@ -19,66 +19,66 @@ Proxy-Policy-insert-00002 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00002.bat ... ELSE set variable curl -kv https://secure.cruisingpower.com/public/registration/choose.do - ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Access Denied Tango Secure Gateway CA + ... ELSE Create List Access Denied Tango Secure Gateway CA ${rescode} SystemCommands ${commandstr} ${stringlist} Proxy-Policy-insert-00003 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00003.bat ... ELSE set variable curl -kv https://uncorneredmarket.com/work-with-us/tourism-strategy/ - ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Close Search Bar Tango Secure Gateway CA + ... ELSE Create List Close Search Bar Tango Secure Gateway CA ${rescode} SystemCommands ${commandstr} ${stringlist} Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00003_1.bat ... ELSE set variable curl -kv https://www.alltrails.com/signup?ref=header - ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA + ${stringlist} run keyword if '${systemType}'=='Windows' Create List LanguageMenuDropdown Tango Secure Gateway CA + ... ELSE Create List LanguageMenuDropdown Tango Secure Gateway CA ${rescode} SystemCommands ${commandstr} ${stringlist} Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00003_2.bat ... ELSE set variable curl -kv https://www.atlasobscura.com/experiences - ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Get the Atlas Obscura book Tango Secure Gateway CA + ... ELSE Create List Get the Atlas Obscura book Tango Secure Gateway CA ${rescode} SystemCommands ${commandstr} ${stringlist} Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00003_3.bat ... ELSE set variable curl -kv https://www.anguilla-beaches.com/anguilla-villas.html - ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA + ${stringlist} run keyword if '${systemType}'=='Windows' Create List anguilla-beaches Tango Secure Gateway CA + ... ELSE Create List anguilla-beaches Tango Secure Gateway CA ${rescode} SystemCommands ${commandstr} ${stringlist} Proxy-Policy-insert-00004 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_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.viator.com/login?login_redirect=%2Faccount%2Fbookings - ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA + ${stringlist} run keyword if '${systemType}'=='Windows' Create List select_language Tango Secure Gateway CA + ... ELSE Create List select_language Tango Secure Gateway CA ${rescode} SystemCommands ${commandstr} ${stringlist} Proxy-Policy-insert-00005 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_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://matadornetwork.com/destinations/north-america/united-states/ - ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA + ... 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" --referer 'https://www.baidu.com/' https://matadornetwork.com/destinations/north-america/united-states/ + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Roboto Tango Secure Gateway CA + ... ELSE Create List Roboto Tango Secure Gateway CA ${rescode} SystemCommands ${commandstr} ${stringlist} Proxy-Policy-insert-00006 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_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.farecompare.com/hotels/ - ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA + ${stringlist} run keyword if '${systemType}'=='Windows' Create List farecompare Tango Secure Gateway CA + ... ELSE Create List farecompare Tango Secure Gateway CA ${rescode} SystemCommands ${commandstr} ${stringlist} Proxy-Policy-insert-00007 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00007.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.tripit.com/web - ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Supported Booking Tango Secure Gateway CA + ... ELSE Create List Supported Booking Tango Secure Gateway CA ${rescode} SystemCommands ${commandstr} ${stringlist} Proxy-Policy-insert-00008 @@ -116,40 +116,14 @@ Proxy-Policy-insert-00011 Proxy-Policy-insert-00012 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_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.eastbay.com/category/womens.html - ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA + ... 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://petapixel.com/topic/equipment/ + ${stringlist} run keyword if '${systemType}'=='Windows' Create List petapixel Tango Secure Gateway CA + ... ELSE Create List petapixel Tango Secure Gateway CA ${rescode} SystemCommands ${commandstr} ${stringlist} Proxy-Policy-insert-00013 Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00013.bat - ... ELSE set variable curl -kv https://www.shermanstravel.com/interests/deals-now-travel-later-1 - ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ${rescode} SystemCommands ${commandstr} ${stringlist} - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00013_1.bat - ... ELSE set variable curl -kv https://www.wyndhamhotels.com/laquinta - ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ${rescode} SystemCommands ${commandstr} ${stringlist} - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00013_2.bat - ... ELSE set variable curl -kv https://us.travelnow.com/profile/findbookings.html - ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ${rescode} SystemCommands ${commandstr} ${stringlist} - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00013_3.bat - ... ELSE set variable curl -kv https://www.smithsonianjourneys.org/tours/tripfinder/ - ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA - ${rescode} SystemCommands ${commandstr} ${stringlist} - -Proxy-Policy-insert-00014 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00017.bat + ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_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.intervalworld.com/web/my/home ${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA ... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA diff --git a/01-TestCase/tsg_adc/multi_step/b_Intercept_Http_Tests.robot b/01-TestCase/tsg_adc/multi_step/b_Intercept_Http_Tests.robot index 698b4b1..e746be8 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Intercept_Http_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Intercept_Http_Tests.robot @@ -18,7 +18,7 @@ SecurityPolicy-Intercept-Http-00001 SecurityPolicy-Intercept-Http-00002 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_HTTP_00002.bat - ... ELSE set variable curl http://sunnylands.org/ - ${stringlist} run keyword if '${systemType}'=='Windows' Create List history - ... ELSE Create List history + ... ELSE set variable curl http://nerdacy.com/ + ${stringlist} run keyword if '${systemType}'=='Windows' Create List HOW TO CHOOSE BOOKSHELF SPEAKERS + ... ELSE Create List HOW TO CHOOSE BOOKSHELF SPEAKERS ${rescode} SystemCommands ${commandstr} ${stringlist} diff --git a/01-TestCase/tsg_adc/multi_step/b_Monitor_Http_Tests.robot b/01-TestCase/tsg_adc/multi_step/b_Monitor_Http_Tests.robot index ed802da..3cf9399 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Monitor_Http_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Monitor_Http_Tests.robot @@ -158,9 +158,9 @@ SecurityPolicy-Monitor-Http-00014 SecurityPolicy-Monitor-Http-00015 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00015.bat - ... ELSE set variable curl http://motionmathgames.com/contact/ - ${stringlist} run keyword if '${systemType}'=='Windows' Create List We'd love to hear from you! - ... ELSE Create List We'd love to hear from you! + ... ELSE set variable curl http://www.dyhjw.com/quotes/choicelists + ${stringlist} run keyword if '${systemType}'=='Windows' Create List 第一黄金网 + ... ELSE Create List 第一黄金网 ${rescode} SystemCommands ${commandstr} ${stringlist} SecurityPolicy-Monitor-Http-00016 diff --git a/01-TestCase/tsg_adc/multi_step/b_Monitor_Ssl_Tests.robot b/01-TestCase/tsg_adc/multi_step/b_Monitor_Ssl_Tests.robot index 8ce28ee..41006b9 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Monitor_Ssl_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Monitor_Ssl_Tests.robot @@ -46,14 +46,14 @@ SecurityPolicy-Monitor-Ssl-00003 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00003_3.bat ... ELSE set variable curl https://melody.su/ - ${stringlist} run keyword if '${systemType}'=='Windows' Create List Пахмутовой - ... ELSE Create List Пахмутовой + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Коммерсантъ + ... ELSE Create List Коммерсантъ ${rescode} SystemCommands ${commandstr} ${stringlist} SecurityPolicy-Monitor-Ssl-00004 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00004.bat ... ELSE set variable curl https://www.iqiyi.com/ - ${stringlist} run keyword if '${systemType}'=='Windows' Create List 今日焦点 - ... ELSE Create List 今日焦点 + ${stringlist} run keyword if '${systemType}'=='Windows' Create List 在线视频网站 + ... ELSE Create List 在线视频网站 ${rescode} SystemCommands ${commandstr} ${stringlist} diff --git a/01-TestCase/tsg_adc/multi_step/b_Monitor_Tests.robot b/01-TestCase/tsg_adc/multi_step/b_Monitor_Tests.robot deleted file mode 100644 index 2c93857..0000000 --- a/01-TestCase/tsg_adc/multi_step/b_Monitor_Tests.robot +++ /dev/null @@ -1,180 +0,0 @@ -*** 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-monitor-00001 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00001.bat - ... ELSE set variable curl -kv \ https://newsela.com/about/content/ - ${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-monitor-00002 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00002.bat - ... ELSE set variable curl -kv \ \ https://www.villaday.com/villageList - ${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable Tango Secure Gateway CA - ... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable Tango Secure Gateway CA - ${rescode} SystemCommands ${commandstr} ${stringlist} - -Proxy-Policy-monitor-00003 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00003.bat - ... ELSE set variable curl -kv \ https://www.wmtransfer.com/eng/business/accept-payments/online-shop/widget.shtml - ${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_Deny_00003_1.bat - ... ELSE set variable curl -kv \ https://www.banbaowang.com/shouchaobao/ - ${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_Deny_00003_2.bat - ... ELSE set variable curl -kv \ https://www.qidian.com/rank - ${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_Deny_00003_3.bat - ... ELSE set variable curl -kv \ https://www.rolandberger.com/ru/?country=RU - ${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-monitor-00004 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_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.usdebtclock.org/state-debt-clocks/state-of-california-debt-clock.html - ${stringlist} run keyword if '${systemType}'=='Windows' Create List qwertyuiop Tango Secure Gateway CA - ... ELSE Create List qwertyuiop Tango Secure Gateway CA - ${rescode} SystemCommands ${commandstr} ${stringlist} - -Proxy-Policy-monitor-00005 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_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://americantesol.com/tesol-register.html - ${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-monitor-00006 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_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.playgroundsessions.com/about/software-features - ${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-monitor-00007 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00007.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://peoplestalkradio.com/forums/register.php - ${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-monitor-00008 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00008.bat - ... ELSE set variable curl http://www.6renyou.com/user_comment/index - ${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 - ... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 - ${rescode} SystemCommands ${commandstr} ${stringlist} - -Proxy-Policy-monitor-00009 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00009.bat - ... ELSE set variable curl http://www.ljale.com/home/webdir.html - ${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 - ... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 - ${rescode} SystemCommands ${commandstr} ${stringlist} - -Proxy-Policy-monitor-00010 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00010.bat - ... ELSE set variable curl http://www.duckduckmoose.com/learn/ - ${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable - ... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable - ${rescode} SystemCommands ${commandstr} ${stringlist} - -Proxy-Policy-monitor-00011 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00011.bat - ... ELSE set variable curl http://tutcandy.com/2009/04/ai-sketch-to-vector-tutorial - ${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable - ... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable - ${rescode} SystemCommands ${commandstr} ${stringlist} - -Proxy-Policy-monitor-00012 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_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.youqulu.com/category/zixun - ${stringlist} run keyword if '${systemType}'=='Windows' Create List 123456789 Tango Secure Gateway CA - ... ELSE Create List 123456789 Tango Secure Gateway CA - ${rescode} SystemCommands ${commandstr} ${stringlist} - -Proxy-Policy-monitor-00013 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00013.bat - ... ELSE set variable curl -kv \ https://www.nypl.org/books-music-movies - ${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_Deny_00013_1.bat - ... ELSE set variable curl -kv https://www.thailand.com.co/category-207-b0.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_Deny_00013_2.bat - ... ELSE set variable curl -kv \ https://bj.zu.ke.com/zufang - ${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_Deny_00013_3.bat - ... ELSE set variable curl -kv \ https://nationalbank.kz/?switch=kazakh - ${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-monitor-00014 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00014.bat - ... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=1234567&setCookie=12345678&contentType=content-type&resBody=Response Body" http://open.node.com/action - ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset - ... ELSE Create List Connection reset by peer - ${rescode} SystemCommands ${commandstr} ${stringlist} - -Proxy-Policy-monitor-00015 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00015.bat - ... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=lkjh&setCookie=12345678&contentType=content-type&resBody=ASDFG" http://open.node.com/action - ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset - ... ELSE Create List Connection reset by peer - ${rescode} SystemCommands ${commandstr} ${stringlist} - -Proxy-Policy-monitor-00016 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00016.bat - ... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=mnbv&setCookie=asdf&contentType=content-type&resBody=adzx" -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 'http://www.baidu.com/' http://open.node.com/action - ${stringlist} run keyword if '${systemType}'=='Windows' Create List 涨涨涨涨 - ... ELSE Create List 涨涨涨涨 - ${rescode} SystemCommands ${commandstr} ${stringlist} - -Proxy-Policy-monitor-00017 - Comment 功能端验证HTTP验证 - ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00017.bat - ... ELSE set variable curl -kv --cookie "test%20cookie=null; timezoneoffset=-480; ASP.NET_SessionId=sta2b3gxpxzqei3by1ka3qsa; visid_incap_1010467=Iu/pLzeoTnGn2VDjWdP9GpoBGF8AAAAAQUIPAAAAAADzSLZtZ1tZ/Rbjfct3Nq69" --referer 'https://www.baidu.com/' \ https://www.umusicpub.com/au/ - ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset Tango Secure Gateway CA - ... ELSE Create List Connection reset by peer Tango Secure Gateway CA - ${rescode} SystemCommands ${commandstr} ${stringlist} diff --git a/01-TestCase/tsg_adc/multi_step/b_Replace_Tests.robot b/01-TestCase/tsg_adc/multi_step/b_Replace_Tests.robot index 5808124..9998a7f 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Replace_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Replace_Tests.robot @@ -150,7 +150,7 @@ Proxy-Policy-replace-00013 Proxy-Policy-replace-00014 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_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.hotelplanner.com/Group-Rate/ + ... 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/ ${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} diff --git a/01-TestCase/tsg_adc/multi_step/c_Allow_Http_Tests.robot b/01-TestCase/tsg_adc/multi_step/c_Allow_Http_Tests.robot index b767497..9f4b629 100644 --- a/01-TestCase/tsg_adc/multi_step/c_Allow_Http_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/c_Allow_Http_Tests.robot @@ -20,7 +20,7 @@ SecurityPolicy-Allow-Http-00001 #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_http_policyId}]} ${s} Convert to String ${allow_http_policyId} - GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.airpano.com + GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host clintonairport.com SecurityPolicy-Allow-Http-00002 #删除对象 diff --git a/01-TestCase/tsg_adc/multi_step/c_Allow_Tests.robot b/01-TestCase/tsg_adc/multi_step/c_Allow_Tests.robot index 4a6157b..05efc17 100644 --- a/01-TestCase/tsg_adc/multi_step/c_Allow_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/c_Allow_Tests.robot @@ -94,7 +94,7 @@ Proxy-Policy-allow-00007 ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId6}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${allow_policyId6} - GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.clubmed.us + GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.woodsnap.com Proxy-Policy-allow-00008 #删除对象 diff --git a/01-TestCase/tsg_adc/multi_step/c_Deny_Http_Tests.robot b/01-TestCase/tsg_adc/multi_step/c_Deny_Http_Tests.robot index 6bdcd72..5cf833e 100644 --- a/01-TestCase/tsg_adc/multi_step/c_Deny_Http_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/c_Deny_Http_Tests.robot @@ -134,7 +134,7 @@ SecurityPolicy-Deny-Http-00013 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId12}]} ${s} Convert to String ${deny_http_policyId12} GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host ziroom.com - GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host xiaozhu.com + GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host blog.cnstock.com GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host sinovision.net GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host nlr.ru diff --git a/01-TestCase/tsg_adc/multi_step/c_Insert_Tests.robot b/01-TestCase/tsg_adc/multi_step/c_Insert_Tests.robot index d454300..8b1d547 100644 --- a/01-TestCase/tsg_adc/multi_step/c_Insert_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/c_Insert_Tests.robot @@ -182,26 +182,9 @@ Proxy-Policy-insert-00012 ${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 www.eastbay.com + GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host petapixel.com Proxy-Policy-insert-00013 - #删除文件 - ${profiledId} set Variable ${insert_profileId12} - #删除对象 - ${objectids} set Variable ${insert_objectId31} - ${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId32} - ${objectids} Catenate SEPARATOR=, ${objectids} ${insert_objectId41} - #删除策略 - ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_insert_policyId12}]} - ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId12}]} - ${policyIds} Create List ${policyId1} ${policyId2} - ${s} Convert to String ${insert_policyId12} - GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.shermanstravel.com - GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.wyndhamhotels.com - GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host us.travelnow.com - GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.smithsonianjourneys.org - -Proxy-Policy-insert-00014 #删除文件 ${profiledId} set Variable ${insert_profileId13} #删除对象 diff --git a/01-TestCase/tsg_adc/multi_step/c_Intercept_Http_Tests.robot b/01-TestCase/tsg_adc/multi_step/c_Intercept_Http_Tests.robot index 8ac80f5..0dec37b 100644 --- a/01-TestCase/tsg_adc/multi_step/c_Intercept_Http_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/c_Intercept_Http_Tests.robot @@ -28,4 +28,4 @@ SecurityPolicy-Intercept-Http-00002 #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_http_policyId1}]} ${s} Convert to String ${intercept_http_policyId1} - GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host sunnylands.org + GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host nerdacy.com diff --git a/01-TestCase/tsg_adc/multi_step/c_Monitor_Http_Tests.robot b/01-TestCase/tsg_adc/multi_step/c_Monitor_Http_Tests.robot index c5284d3..e818fe0 100644 --- a/01-TestCase/tsg_adc/multi_step/c_Monitor_Http_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/c_Monitor_Http_Tests.robot @@ -146,7 +146,7 @@ SecurityPolicy-Monitor-Http-00015 #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId14}]} ${s} Convert to String ${monitor_http_policyId14} - GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host motionmathgames.com + GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.dyhjw.com SecurityPolicy-Monitor-Http-00016 #删除对象 diff --git a/01-TestCase/tsg_adc/multi_step/c_Replace_Tests.robot b/01-TestCase/tsg_adc/multi_step/c_Replace_Tests.robot index 5f850d4..25af3bc 100644 --- a/01-TestCase/tsg_adc/multi_step/c_Replace_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/c_Replace_Tests.robot @@ -185,4 +185,4 @@ Proxy-Policy-replace-00014 ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId13}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${replace_policyId13} - GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.hotelplanner.com + GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.engadget.com diff --git a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Allow_Http_Tests.robot b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Allow_Http_Tests.robot index bb41c73..d552785 100644 --- a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Allow_Http_Tests.robot +++ b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Allow_Http_Tests.robot @@ -18,7 +18,7 @@ ProxyPolicy-Allow-Http-00001 [Tags] selfserver ip Comment 创建url ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*xiaozhu.html - ${rescode} ${objectId} AddObject2 ${1} ${objectDict} + ${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${objectDic1t} ${objectDic1t} ${objectids} set Variable ${objectId} Comment 创建安全策略 ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol": "HTTP"} filterList= isValid=${1} appIdObjects=2 diff --git a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Allow_Ssl_Tests.robot b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Allow_Ssl_Tests.robot index de67d90..47273bf 100644 --- a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Allow_Ssl_Tests.robot +++ b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Allow_Ssl_Tests.robot @@ -655,7 +655,7 @@ ProxyPolicy-Allow-Ssl-00019 ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_url_Id} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -740,7 +740,7 @@ ProxyPolicy-Allow-Ssl-00021 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=charset|Content-Type ${rescode} ${object_re_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_re_Id} - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} diff --git a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Deny_Ssl_Tests.robot b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Deny_Ssl_Tests.robot index 8680453..a50397a 100644 --- a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Deny_Ssl_Tests.robot +++ b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Deny_Ssl_Tests.robot @@ -59,7 +59,7 @@ ProxyPolicy-Deny-Ssl-00002 ${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${objectids} set Variable ${objectId} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -685,7 +685,7 @@ ProxyPolicy-Deny-Ssl-00021 ${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${objectids} set Variable ${objectId} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -717,7 +717,7 @@ ProxyPolicy-Deny-Ssl-00022 ${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${objectids} set Variable ${objectId} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -765,7 +765,7 @@ ProxyPolicy-Deny-Ssl-00023 ${rescode} ${object_by_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_by_Id} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} diff --git a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Hijack_Ssl_Tests.robot b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Hijack_Ssl_Tests.robot index e7fa2ee..778d554 100644 --- a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Hijack_Ssl_Tests.robot +++ b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Hijack_Ssl_Tests.robot @@ -104,7 +104,7 @@ ProxyPolicy-Hijack-Ssl-00003 ${response} CreatePolicyFile2 ${url} ${path}/hijack_files/ Create-Hijack Files-test-1.exe hijack {"isValid":1,"contentType":"application/x-msdos-program","opAction":"add","profileName":"test2","contentName":"Create-Hijack Files-test-1.exe","profileId":null,"returnData":1} ${profiledId} Get From Dictionary ${response} profileId Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -244,7 +244,7 @@ ProxyPolicy-Hijack-Ssl-00007 ${response} CreatePolicyFile2 ${url} ${path}/hijack_files/ Create-Hijack Files-test-2.gif hijack {"isValid":1,"contentType":"image/gif","opAction":"add","profileName":"test6","contentName":"Create-Hijack Files-test-2.gif","profileId":null,"returnData":1} ${profiledId} Get From Dictionary ${response} profileId Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -712,7 +712,7 @@ ProxyPolicy-Hijack-Ssl-00019 ${response} CreatePolicyFile2 ${url} ${path}/hijack_files/ Create-Hijack Files-test-4.jpeg hijack {"isValid":1,"contentType":"image/jpeg","opAction":"add","profileName":"test5","contentName":"Create-Hijack Files-test-4.jpeg","profileId":null,"returnData":1} ${profiledId} Get From Dictionary ${response} profileId Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -805,7 +805,7 @@ ProxyPolicy-Hijack-Ssl-00021 Comment 创建hijack文件 ${response} CreatePolicyFile2 ${url} ${path}/hijack_files/ Create-Hijack Files-test-3.html hijack ${profiledId} Get From Dictionary ${response} profileId - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} diff --git a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Monitor_Ssl_Tests.robot b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Monitor_Ssl_Tests.robot index 491062d..812ca55 100644 --- a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Monitor_Ssl_Tests.robot +++ b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Monitor_Ssl_Tests.robot @@ -58,7 +58,7 @@ ProxyPolicy-Monitor-Ssl-00002 ${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${objectids} set Variable ${objectId} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -602,7 +602,7 @@ ProxyPolicy-Monitor-Ssl-00019 ${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${objectids} set Variable ${objectId} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -666,7 +666,7 @@ ProxyPolicy-Monitor-Ssl-00021 ${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${objectids} set Variable ${objectId} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -698,7 +698,7 @@ ProxyPolicy-Monitor-Ssl-00022 ${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${objectids} set Variable ${objectId} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -746,7 +746,7 @@ ProxyPolicy-Monitor-Ssl-00023 ${rescode} ${object_by_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_by_Id} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -782,7 +782,7 @@ ProxyPolicy-Monitor-Ssl-00024 ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_url_Id} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -828,7 +828,7 @@ ProxyPolicy-Monitor-Ssl-00026 ${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${objectids} set Variable ${objectId} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -860,7 +860,7 @@ ProxyPolicy-Monitor-Ssl-00027 ${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${objectids} set Variable ${objectId} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -892,7 +892,7 @@ ProxyPolicy-Monitor-Ssl-00028 ${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${objectids} set Variable ${objectId} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} diff --git a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Redirect_Ssl_Tests.robot b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Redirect_Ssl_Tests.robot index 2c1946b..3a177d6 100644 --- a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Redirect_Ssl_Tests.robot +++ b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Redirect_Ssl_Tests.robot @@ -57,7 +57,7 @@ ProxyPolicy-Redirect-Ssl-00002 ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_url_Id} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -93,7 +93,7 @@ ProxyPolicy-Redirect-Ssl-00003 ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_url_Id} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -653,7 +653,7 @@ ProxyPolicy-Redirect-Ssl-00019 ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_url_Id} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -725,7 +725,7 @@ ProxyPolicy-Redirect-Ssl-00021 ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_url_Id} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -781,7 +781,7 @@ ProxyPolicy-Redirect-Ssl-00022 ${rescode} ${object_by_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_by_Id} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -871,7 +871,7 @@ ProxyPolicy-Redirect-Ssl-00024 ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_url_Id} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -907,7 +907,7 @@ ProxyPolicy-Redirect-Ssl-00025 ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_url_Id} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} diff --git a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Replace_Ssl_Tests.robot b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Replace_Ssl_Tests.robot index 3157cb0..5e24484 100644 --- a/01-TestCase/tsg_adc/selfserver/Api_Proxy/Replace_Ssl_Tests.robot +++ b/01-TestCase/tsg_adc/selfserver/Api_Proxy/Replace_Ssl_Tests.robot @@ -93,7 +93,7 @@ ProxyPolicy-Replace-Ssl-00003 ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_url_Id} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -221,7 +221,7 @@ ProxyPolicy-Replace-Ssl-00007 ${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${objectids} set Variable ${objectId} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -653,7 +653,7 @@ ProxyPolicy-Replace-Ssl-00019 ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_url_Id} Comment 创建安全策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} @@ -740,7 +740,7 @@ ProxyPolicy-Replace-Ssl-00021 ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=charset|Content-Type ${rescode} ${object_re_Id} AddObject2 ${1} ${objectDict} ${objectids} Catenate SEPARATOR=, ${objectids} ${object_re_Id} - ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 + ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-HTTP-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":19,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList= isValid=${1} appIdObjects=3 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} diff --git a/01-TestCase/tsg_adc/selfserver/Api_Security/Allow_Mail_Tests.robot b/01-TestCase/tsg_adc/selfserver/Api_Security/Allow_Mail_Tests.robot index 61cbcb7..e995516 100644 --- a/01-TestCase/tsg_adc/selfserver/Api_Security/Allow_Mail_Tests.robot +++ b/01-TestCase/tsg_adc/selfserver/Api_Security/Allow_Mail_Tests.robot @@ -43,4 +43,4 @@ SecurityPolicy-Allow-Mail-00001 ${endtime} Get Time #日志验证 ${s} Convert to String ${policyId} - GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account jwctest@mail.tsgmail.com + GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} common_server_ip 192.168.100.5 diff --git a/01-TestCase/tsg_adc/selfserver/Api_Security/Deny_Http_Tests.robot b/01-TestCase/tsg_adc/selfserver/Api_Security/Deny_Http_Tests.robot index 7b4d503..101e62a 100644 --- a/01-TestCase/tsg_adc/selfserver/Api_Security/Deny_Http_Tests.robot +++ b/01-TestCase/tsg_adc/selfserver/Api_Security/Deny_Http_Tests.robot @@ -187,8 +187,8 @@ SecurityPolicy-Deny-Http-00006 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Intercept-HTTP-0003.bat ... ELSE set variable curl \ http://open.node.com/test/nationalbank/nationalbank.html - ${stringlist} run keyword if '${systemType}'=='Windows' Create List 123123 - ... ELSE Create List 123123 + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset + ... ELSE Create List Connection reset by peer ${starttime} Get Time Sleep ${policyVerificationSleepSeconds}s ${rescode} SystemCommands ${commandstr} ${stringlist} @@ -311,8 +311,8 @@ SecurityPolicy-Deny-Http-00010 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Deny-HTTP-0008.bat ... ELSE set variable curl \ --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 'http://www.baidu.com/' \ http://open.node.com - ${stringlist} run keyword if '${systemType}'=='Windows' Create List 123123 - ... ELSE Create List 123123 + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset + ... ELSE Create List Connection reset by peer ${starttime} Get Time Sleep ${policyVerificationSleepSeconds}s ${rescode} SystemCommands ${commandstr} ${stringlist} @@ -758,8 +758,8 @@ SecurityPolicy-Deny-Http-00024 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Intercept-HTTP-0002.bat ... ELSE set variable curl http://open.node.com/test/youtube/youtube.html - ${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable - ... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset + ... ELSE Create List Connection reset by peer ${starttime} Get Time Sleep ${policyVerificationSleepSeconds}s ${rescode} SystemCommands ${commandstr} ${stringlist} @@ -884,7 +884,7 @@ SecurityPolicy-Deny-Http-00027 SecurityPolicy-Deny-Http-00028 [Tags] selfserver deny http 多ip+fqdn Comment 创建IP - ${addItemList1} Create Dictionary isSession=endpoint ip=192.168.50.18-192.168.50.18 port=0-0 direction=0 protocol=0 isInitialize=0 + ${addItemList1} Create Dictionary isSession=endpoint ip=192.168.100.5-192.168.100.5 port=0-0 direction=0 protocol=0 isInitialize=0 ${addItemLists} Create list ${addItemList1} ${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=${addItemLists} ${rescode} ${objectId} AddObjects ${1} ${objectDict} @@ -1010,8 +1010,8 @@ SecurityPolicy-Deny-Http-00031 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Intercept-HTTP-0003.bat ... ELSE set variable curl \ http://open.node.com/test/nationalbank/nationalbank.html - ${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 - ... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset + ... ELSE Create List Connection reset by peer ${starttime} Get Time Sleep ${policyVerificationSleepSeconds}s ${rescode} SystemCommands ${commandstr} ${stringlist} @@ -1026,8 +1026,8 @@ SecurityPolicy-Deny-Http-00031 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Deny-HTTP-0008.bat ... ELSE set variable curl \ --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 'http://www.baidu.com/' \ http://open.node.com - ${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 - ... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset + ... ELSE Create List Connection reset by peer ${starttime} Get Time Sleep ${policyVerificationSleepSeconds}s ${rescode} SystemCommands ${commandstr} ${stringlist} @@ -1060,8 +1060,8 @@ SecurityPolicy-Deny-Http-00032 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Intercept-HTTP-0003.bat ... ELSE set variable curl \ http://open.node.com/test/nationalbank/nationalbank.html - ${stringlist} run keyword if '${systemType}'=='Windows' Create List Главная страница - ... ELSE Create List Главная страница + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset + ... ELSE Create List Connection reset by peer ${starttime} Get Time Sleep ${policyVerificationSleepSeconds}s ${rescode} SystemCommands ${commandstr} ${stringlist} @@ -1076,8 +1076,8 @@ SecurityPolicy-Deny-Http-00032 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Deny-HTTP-0008.bat ... ELSE set variable curl \ --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 'http://www.baidu.com/' \ http://open.node.com - ${stringlist} run keyword if '${systemType}'=='Windows' Create List Главная страница - ... ELSE Create List Главная страница + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset + ... ELSE Create List Connection reset by peer ${starttime} Get Time Sleep ${policyVerificationSleepSeconds}s ${rescode} SystemCommands ${commandstr} ${stringlist} @@ -1113,8 +1113,8 @@ SecurityPolicy-Deny-Http-00033 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Intercept-HTTP-0003.bat ... ELSE set variable curl \ http://open.node.com/test/nationalbank/nationalbank.html - ${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable - ... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset + ... ELSE Create List Connection reset by peer ${starttime} Get Time Sleep ${policyVerificationSleepSeconds}s ${rescode} SystemCommands ${commandstr} ${stringlist} @@ -1129,8 +1129,8 @@ SecurityPolicy-Deny-Http-00033 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Deny-HTTP-0008.bat ... ELSE set variable curl \ --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 'http://www.baidu.com/' \ http://open.node.com - ${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable - ... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset + ... ELSE Create List Connection reset by peer ${starttime} Get Time Sleep ${policyVerificationSleepSeconds}s ${rescode} SystemCommands ${commandstr} ${stringlist} @@ -1166,8 +1166,8 @@ SecurityPolicy-Deny-Http-00034 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Intercept-HTTP-0001.bat ... ELSE set variable curl http://open.node.com/test/xiaozhu/xiaozhu.html - ${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 - ... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset + ... ELSE Create List Connection reset by peer ${starttime} Get Time Sleep ${policyVerificationSleepSeconds}s ${rescode} SystemCommands ${commandstr} ${stringlist} @@ -1182,8 +1182,8 @@ SecurityPolicy-Deny-Http-00034 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Deny-HTTP-0008.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 'http://www.baidu.com/' \ curl \ http://open.node.com/ - ${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 - ... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 + ${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset + ... ELSE Create List Connection reset by peer ${starttime} Get Time Sleep ${policyVerificationSleepSeconds}s ${rescode} SystemCommands ${commandstr} ${stringlist} @@ -1431,7 +1431,7 @@ SecurityPolicy-Deny-Http-00039 ${s} Convert to String ${policyId} GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com Comment 修改策略 - ${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-HTTP-00039 policyType=tsg_security policyDesc=autotest \ action=deny userRegion={"protocol": "HTTP","method":"drop"} filterList=${object_CK_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_yq_Id}|TSG_FIELD_HTTP_RES_CONTENT isValid=${1} appIdObjects=2 policyId=${policyId} destination=${objectId}|TSG_SECURITY_DESTINATION_ADDR + ${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-HTTP-00039 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol": "HTTP","method":"drop"} filterList=${object_CK_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_yq_Id}|TSG_FIELD_HTTP_RES_CONTENT isValid=${1} appIdObjects=2 policyId=${policyId} destination=${objectId}|TSG_SECURITY_DESTINATION_ADDR ${rescode} UpdatePolicies 1 ${policyDict} v2 update Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/selfserver/SecurityPolicy-Deny-HTTP-0012.bat diff --git a/05-Other/curl/command/ProxyPolicy_allow_00007.bat b/05-Other/curl/command/ProxyPolicy_allow_00007.bat index 62e9f80..1a8b420 100644 --- a/05-Other/curl/command/ProxyPolicy_allow_00007.bat +++ b/05-Other/curl/command/ProxyPolicy_allow_00007.bat @@ -1 +1 @@ -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.clubmed.us/r/Sandpiper-Bay/y | iconv -f utf-8 -t gbk \ No newline at end of file +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.woodsnap.com/about-us/frames | iconv -f utf-8 -t gbk \ No newline at end of file diff --git a/05-Other/curl/command/ProxyPolicy_insert_00005.bat b/05-Other/curl/command/ProxyPolicy_insert_00005.bat index 48536db..d9eba54 100644 --- a/05-Other/curl/command/ProxyPolicy_insert_00005.bat +++ b/05-Other/curl/command/ProxyPolicy_insert_00005.bat @@ -1 +1 @@ -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://matadornetwork.com/destinations/north-america/united-states/ | iconv -f utf-8 -t gbk \ No newline at end of file +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" --referer 'https://www.baidu.com/' https://matadornetwork.com/destinations/north-america/united-states/ | iconv -f utf-8 -t gbk \ No newline at end of file diff --git a/05-Other/curl/command/ProxyPolicy_insert_00006.bat b/05-Other/curl/command/ProxyPolicy_insert_00006.bat index b16113c..ea93d1a 100644 --- a/05-Other/curl/command/ProxyPolicy_insert_00006.bat +++ b/05-Other/curl/command/ProxyPolicy_insert_00006.bat @@ -1 +1 @@ -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.farecompare.com/hotels/ | iconv -f utf-8 -t gbk \ No newline at end of file +curl -kv -L --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.farecompare.com/hotels/ | iconv -f utf-8 -t gbk \ No newline at end of file diff --git a/05-Other/curl/command/ProxyPolicy_insert_00012.bat b/05-Other/curl/command/ProxyPolicy_insert_00012.bat index 2d81ebd..3d703b0 100644 --- a/05-Other/curl/command/ProxyPolicy_insert_00012.bat +++ b/05-Other/curl/command/ProxyPolicy_insert_00012.bat @@ -1 +1 @@ -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.eastbay.com/category/womens.html | iconv -f utf-8 -t gbk \ No newline at end of file +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://petapixel.com/topic/equipment/ | iconv -f utf-8 -t gbk \ No newline at end of file diff --git a/05-Other/curl/command/ProxyPolicy_insert_00013_1.bat b/05-Other/curl/command/ProxyPolicy_insert_00013_1.bat index dc1f316..d6927fe 100644 --- a/05-Other/curl/command/ProxyPolicy_insert_00013_1.bat +++ b/05-Other/curl/command/ProxyPolicy_insert_00013_1.bat @@ -1 +1 @@ -curl -kv https://www.wyndhamhotels.com/laquinta | iconv -f utf-8 -t gbk \ No newline at end of file +curl -kv https://www.vox.com/recode | iconv -f utf-8 -t gbk \ No newline at end of file diff --git a/05-Other/curl/command/ProxyPolicy_replace_00014.bat b/05-Other/curl/command/ProxyPolicy_replace_00014.bat index efff7b4..2a0e4ea 100644 --- a/05-Other/curl/command/ProxyPolicy_replace_00014.bat +++ b/05-Other/curl/command/ProxyPolicy_replace_00014.bat @@ -1 +1 @@ -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.hotelplanner.com/Group-Rate/ | iconv -f utf-8 -t gbk \ No newline at end of file +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/ | iconv -f utf-8 -t gbk \ No newline at end of file diff --git a/05-Other/curl/command/SecurityPolicy_Deny_HTTP_00013_1.bat b/05-Other/curl/command/SecurityPolicy_Deny_HTTP_00013_1.bat index fe7b518..13f4867 100644 --- a/05-Other/curl/command/SecurityPolicy_Deny_HTTP_00013_1.bat +++ b/05-Other/curl/command/SecurityPolicy_Deny_HTTP_00013_1.bat @@ -1 +1 @@ -curl http://www.xiaozhu.com/#ongo | iconv -f utf-8 -t gbk \ No newline at end of file +curl http://blog.cnstock.com/ | iconv -f utf-8 -t gbk \ No newline at end of file diff --git a/05-Other/curl/command/SecurityPolicy_Intercept_HTTP_00002.bat b/05-Other/curl/command/SecurityPolicy_Intercept_HTTP_00002.bat index f8a9fcf..36e2f49 100644 --- a/05-Other/curl/command/SecurityPolicy_Intercept_HTTP_00002.bat +++ b/05-Other/curl/command/SecurityPolicy_Intercept_HTTP_00002.bat @@ -1 +1 @@ -curl http://sunnylands.org/ | iconv -f utf-8 -t gbk \ No newline at end of file +curl http://nerdacy.com/ | iconv -f utf-8 -t gbk \ No newline at end of file diff --git a/05-Other/curl/command/SecurityPolicy_Monitor_HTTP_00015.bat b/05-Other/curl/command/SecurityPolicy_Monitor_HTTP_00015.bat index adb53ed..a7d0a8b 100644 --- a/05-Other/curl/command/SecurityPolicy_Monitor_HTTP_00015.bat +++ b/05-Other/curl/command/SecurityPolicy_Monitor_HTTP_00015.bat @@ -1 +1 @@ -curl http://motionmathgames.com/contact/ | iconv -f utf-8 -t gbk \ No newline at end of file +curl http://www.dyhjw.com/quotes/choicelists | iconv -f utf-8 -t gbk \ No newline at end of file