2020-08-07 18:02:06 +08:00
|
|
|
*** 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
|
2020-08-13 09:29:19 +08:00
|
|
|
${must_parameter} Create Dictionary profileName=zmmtest profileId=
|
|
|
|
|
${iplist1} Create Dictionary ip=1.1.1.1 relative_location=internal link_id=123 src_mac=321
|
|
|
|
|
${list1} IP_list ${iplist1}
|
|
|
|
|
${iplist2} Create Dictionary ip=8.8.8.8 relative_location=external xxxx=567 src_mac=890
|
|
|
|
|
${list2} IP_list ${iplist2}
|
2020-10-09 20:44:49 +08:00
|
|
|
${wan_nat_ip_iplist} Create List ${list1} ${list2}
|
|
|
|
|
log ${wan_nat_ip_iplist}
|
2020-08-13 09:29:19 +08:00
|
|
|
${WanNatIpPood} Add&EditWanIpPood ${must_parameter} ${wan_nat_ip_iplist}
|
|
|
|
|
# log 11111111111111111111111111111111111
|
|
|
|
|
log ${WanNatIpPood}
|
2020-10-09 20:44:49 +08:00
|
|
|
log *****************************************************
|
2020-08-07 18:02:06 +08:00
|
|
|
|
|
|
|
|
create_wan_ip_pood_updata
|
|
|
|
|
# 修改填写 profileId
|
|
|
|
|
${must_parameter} Create Dictionary profileName=zmmtest profileId=41
|
2020-08-13 09:29:19 +08:00
|
|
|
${iplist1} Create Dictionary ip=1.1.1.1 relative_location=internal link_id=123 src_mac=321
|
|
|
|
|
${list1} IP_list ${iplist1}
|
|
|
|
|
${wan_nat_ip_iplist} Create List ${list1}
|
2020-08-07 18:02:06 +08:00
|
|
|
${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}
|
|
|
|
|
|