36 lines
1.4 KiB
Plaintext
36 lines
1.4 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_vpn_1
|
|
#添加一个vpn
|
|
${wan_vpn_dict} Create Dictionary username=zmmtest2 password=abcdef iconColor=#dddddd
|
|
${wan_vpn_list} Create List ${wan_vpn_dict}
|
|
${a} AddWanVpn ${wan_vpn_list}
|
|
log ${a}
|
|
create_wan_vpn_2
|
|
#添加一个vpn
|
|
${wan_vpn_dict} Create Dictionary username=zmmtest3 password=abcdef iconColor=#dddddd
|
|
${wan_vpn_dict_2} Create Dictionary username=zmmtest4 password=abcdef iconColor=#dddddd
|
|
${wan_vpn_list} Create List ${wan_vpn_dict} ${wan_vpn_dict_2}
|
|
${a} AddWanVpn ${wan_vpn_list}
|
|
log ${a}
|
|
delete_wan_vpn_1
|
|
# 删除一个vpn
|
|
${deletelist} Create List 26
|
|
${a} DeleteWanVpn ${deletelist}
|
|
delete_wan_vpn_2
|
|
# 删除一个vpn
|
|
${deletelist} Create List 35 33
|
|
${a} DeleteWanVpn ${deletelist} |