diff options
author | Jarno Rajahalme <jarno@ovn.org> | 2017-02-23 16:19:28 -0800 |
---|---|---|
committer | Joe Stringer <joe@ovn.org> | 2017-02-23 17:11:49 -0800 |
commit | f6fd35fa1b0b1a9b42d8fd13665dd1ef74d916e9 (patch) | |
tree | 2c14fb346dac07fa975c308801eef0d9fdcf843d | |
parent | 74dd7ab371bdeb33a076b6c987778a2fc6e40c59 (diff) | |
download | openvswitch-review/jarno_ct_bp_v1.tar.gz |
tests: Add an FTP test without conntrack.review/jarno_ct_bp_v1
If FTP tests with conntrack fail, it is informative to know if the
problem is with the FTP client and/or server, or with conntrack
itself.
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
-rw-r--r-- | tests/system-traffic.at | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/system-traffic.at b/tests/system-traffic.at index ac9f989da..1cc41b76d 100644 --- a/tests/system-traffic.at +++ b/tests/system-traffic.at @@ -2040,6 +2040,35 @@ tcp,orig=(src=10.1.1.1,dst=10.1.1.2,sport=<cleared>,dport=<cleared>),reply=(src= OVS_TRAFFIC_VSWITCHD_STOP AT_CLEANUP +AT_SETUP([FTP - no conntrack]) +AT_SKIP_IF([test $HAVE_PYFTPDLIB = no]) +OVS_TRAFFIC_VSWITCHD_START() + +ADD_NAMESPACES(at_ns0, at_ns1) + +ADD_VETH(p0, at_ns0, br0, "10.1.1.1/24") +ADD_VETH(p1, at_ns1, br0, "10.1.1.2/24") + +AT_DATA([flows.txt], [dnl +table=0,action=normal +]) + +AT_CHECK([ovs-ofctl --bundle replace-flows br0 flows.txt]) + +NETNS_DAEMONIZE([at_ns0], [[$PYTHON $srcdir/test-l7.py ftp]], [ftp1.pid]) +NETNS_DAEMONIZE([at_ns1], [[$PYTHON $srcdir/test-l7.py ftp]], [ftp0.pid]) +OVS_WAIT_UNTIL([ip netns exec at_ns1 netstat -l | grep ftp]) + +dnl FTP requests from p0->p1 should work fine. +NS_CHECK_EXEC([at_ns0], [wget ftp://10.1.1.2 --no-passive-ftp -t 3 -T 1 --retry-connrefused -v -o wget0.log]) + +AT_CHECK([find -name index.html], [0], [dnl +./index.html +]) + +OVS_TRAFFIC_VSWITCHD_STOP +AT_CLEANUP + AT_SETUP([conntrack - FTP]) AT_SKIP_IF([test $HAVE_FTP = no]) CHECK_CONNTRACK() |