60 lines
4.6 KiB
Plaintext
60 lines
4.6 KiB
Plaintext
*** Settings ***
|
|
Force Tags tsg_adc_wp security_policy adc_verify
|
|
Library OperatingSystem
|
|
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
|
|
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
|
|
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
|
|
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
|
Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
|
|
Resource ../../../03-Variable/ApplicationID.txt
|
|
Resource ../../../05-Other/AllFlowCaseVariable.txt
|
|
|
|
*** Test Cases ***
|
|
SecurityPolicy-Intercept-Ssl-00001
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00001.bat
|
|
... ELSE set variable curl -kv https://www.reviewpro.com/
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List reviewpro Tango Secure Gateway CA
|
|
... ELSE Create List reviewpro Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
Comment 改变安全策略
|
|
${policyDict} Create Dictionary policyId=${intercept_ssl_policyId} policyName=SecurityPolicy-Intercept-Ssl-00001_1 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} source=${intercept_ssl_objectId2}|TSG_SECURITY_SOURCE_LOCATION filterList=${intercept_ssl_objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
|
log ${policyDict}
|
|
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00001.bat
|
|
... ELSE set variable curl -kv https://www.reviewpro.com/
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List reviewpro Tango Secure Gateway CA
|
|
... ELSE Create List reviewpro Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
SecurityPolicy-Intercept-Ssl-00002
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00002.bat
|
|
... ELSE set variable curl -kv https://fenopy.se/
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Fenopy Tango Secure Gateway CA
|
|
... ELSE Create List Fenopy Tango Secure Gateway CA
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
|
|
SecurityPolicy-Intercept-Http-00003
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00002_2.bat
|
|
... ELSE set variable curl -kv https://www.xs8.cn/
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 言情小说吧 CA TRUST
|
|
... ELSE Create List Book
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
Comment 改变安全策略
|
|
${policyDict} Create Dictionary policyId=${intercept_ssl_policyId2} policyName=SecurityPolicy-Intercept-Ssl-00003_1 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1727,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${intercept_ssl_objectId3}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
|
log ${policyDict}
|
|
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00002_2.bat
|
|
... ELSE set variable curl -kv https://www.xs8.cn/
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List 言情小说吧 CA TRUST
|
|
SecurityPolicy-Intercept-Ssl-00004
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00002_3.bat
|
|
... ELSE set variable curl -kv https://worldweapon.info/
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Энциклопедия CA TRUST
|
|
... ELSE Create List Camp Chippewa for Boys CA TRUST
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|