This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dongxiaoyan-tsg-autotest/01-TestCase/tsg_adc/Wan_Nat/b_Dnat_Tests_1.robot
2020-08-27 11:41:27 +08:00

42 lines
1.7 KiB
Plaintext

*** Settings ***
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
Library Custometest
Library SSHLibrary
*** Test Cases ***
wan_nat-dnat-00001
Open Connection 192.168.40.156
SSHLibrary.Login root Xxg-PUB<>90
Write tcpdump -n -nn -i ppp0 |grep 192.168.50.7
${output} read delay=1s
Should Contain ${output} 192.168.50.7.52640 > 10.10.120.250.80
Should Contain ${output} 10.10.120.250.80 > 192.168.50.7.52640
wan_nat-dnat-00002
Open Connection 192.168.40.156
SSHLibrary.Login root Xxg-PUB<>90
Write tcpdump -n -nn -i ppp0 |grep 192.168.50.7
${output} read delay=1s
Should Contain ${output} 192.168.50.7.52640 > 10.10.120.250.80
Should Contain ${output} 10.10.120.250.80 > 192.168.50.7.52640
wan_nat-dnat-00003
Open Connection 192.168.40.156
SSHLibrary.Login root Xxg-PUB<>90
Write tcpdump -n -nn -i ppp0 |grep 192.168.50.7
${output} read delay=1s
Should Contain ${output} 192.168.50.7.52640 > 10.10.120.250.80
Should Contain ${output} 10.10.120.250.80 > 192.168.50.7.52640
wan_nat-dnat-00004
Open Connection 192.168.40.156
SSHLibrary.Login root Xxg-PUB<>90
Write tcpdump -n -nn -i ppp0 |grep 192.168.50.7
${output} read delay=1s
Should Contain ${output} 192.168.50.7.52640 > 10.10.120.250.80
Should Contain ${output} 10.10.120.250.80 > 192.168.50.7.52640