42 lines
1.8 KiB
Plaintext
42 lines
1.8 KiB
Plaintext
|
|
*** Settings ***
|
||
|
|
Test Teardown DeletePolicyAndObject ${policyIds} ${objectids}
|
||
|
|
Force Tags tsg_adc proxy_policy
|
||
|
|
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_bfapi/ApiRequest.robot
|
||
|
|
Resource ../../../03-Variable/AllFlowCaseVariable.txt
|
||
|
|
|
||
|
|
*** Variables ***
|
||
|
|
${policyIds} ${EMPTY}
|
||
|
|
${objectids} ${EMPTY}
|
||
|
|
|
||
|
|
*** Test Cases ***
|
||
|
|
create_wan_ip_pood_add
|
||
|
|
# 新增不填写 profileId
|
||
|
|
${must_parameter} Create Dictionary profileName=zmmtest profileId=
|
||
|
|
${iplist1} Create Dictionary ip=1.1.1.1 relative_location=internal link_info={"link_id":123,"src_mac":321}
|
||
|
|
${iplist2} Create Dictionary ip=8.8.8.8 relative_location=external link_info={"xxxx":567,"yyyy":890}
|
||
|
|
${wan_nat_ip_iplist} Create List ${iplist1} ${iplist2}
|
||
|
|
${WanNatIpPood} Add&EditWanIpPood ${must_parameter} ${wan_nat_ip_iplist}
|
||
|
|
|
||
|
|
|
||
|
|
create_wan_ip_pood_updata
|
||
|
|
# 修改填写 profileId
|
||
|
|
${must_parameter} Create Dictionary profileName=zmmtest profileId=41
|
||
|
|
${iplist1} Create Dictionary ip=1.1.1.1 relative_location=internal link_info={"link_id":123,"src_mac":321}
|
||
|
|
${wan_nat_ip_iplist} Create List ${iplist1}
|
||
|
|
${WanNatIpPood} Add&EditWanIpPood ${must_parameter} ${wan_nat_ip_iplist}
|
||
|
|
|
||
|
|
|
||
|
|
delete_wan_ip_pood
|
||
|
|
# 删除一个vpn
|
||
|
|
${deletelist} Create List 41
|
||
|
|
${a} DeleteWanIpPood ${deletelist}
|
||
|
|
delete_wan_ip_pood_2
|
||
|
|
# 删除一个vpn
|
||
|
|
${deletelist} Create List 43 45
|
||
|
|
${a} DeleteWanIpPood ${deletelist}
|
||
|
|
|