24 lines
1.4 KiB
Plaintext
24 lines
1.4 KiB
Plaintext
|
|
*** Settings ***
|
||
|
|
Force Tags basic_function_check adc_api security_policy check_intercept
|
||
|
|
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_adc/FileOperation.robot
|
||
|
|
Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
|
||
|
|
Resource ../../../03-Variable/ApplicationID.txt
|
||
|
|
Resource ../../../02-Keyword/tsg_bfapi/policy_object/ProcessPolicyBody.robot
|
||
|
|
|
||
|
|
*** Variables ***
|
||
|
|
|
||
|
|
*** Test Cases ***
|
||
|
|
SecurityPolicy-Intercept-001
|
||
|
|
[Tags] update policy:source geo
|
||
|
|
Comment 创建安全策略
|
||
|
|
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} isValid=${1} appIdObjects=${SSL_ID},${HTTP_ID}
|
||
|
|
log ${policyDict}
|
||
|
|
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
|
||
|
|
${policyId} Get-Pids ${policyId}
|
||
|
|
${policyId} Set Variable ${policyId}[0]
|
||
|
|
insert_policyId_to_file1 intercept_ssl_policyId ${policyId}
|