History log of /external/autotest/client/site_tests/p2p_ServeFiles/p2p_ServeFiles.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b1a5bdb56a234b4ed7c41aa9746a695f825be2e3 02-Feb-2015 Christopher Wiley <wiley@chromium.org> Refactor avahi_utils to be usable from server tests

This makes these utilities more broadly useful by allowing them
to be used from server tests, where we cannot call DBus methods
on the local host.

In order to do this, route DBus calls through dbus_send.py, a wrapper
around the dbus-send utility. This wrapper does some limited parsing
of dbus-send output in order to conver it to meaningful Python types.

While here, allow original errors from p2p setup to propagate upward.
This increases the meaningful content in test failures.

BUG=brillo:8
TEST=peerd_* tests pass, as to p2p related tests.

Change-Id: If98be716f2061b90d1fa9d4681d1e00152f4005a
Reviewed-on: https://chromium-review.googlesource.com/245545
Tested-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: David Zeuthen <zeuthen@chromium.org>
Commit-Queue: Christopher Wiley <wiley@chromium.org>
/external/autotest/client/site_tests/p2p_ServeFiles/p2p_ServeFiles.py
9319b145fb1c1404155a05b6e9a3867ae1a8fb2a 17-Apr-2014 David Zeuthen <zeuthen@chromium.org> p2p_ServeFiles: Work around problem in lansim.

This CL adds a short sleep to work around a problem with port
reuse. See the linked bug for more details.

BUG=chromium:364583
TEST=Now able to run p2p_ServeFiles in a loop.

Change-Id: I58001a91d719a4bdf48a95694dd1a6255adf4d9b
Reviewed-on: https://chromium-review.googlesource.com/195406
Reviewed-by: Alex Deymo <deymo@chromium.org>
Tested-by: David Zeuthen <zeuthen@chromium.org>
Commit-Queue: David Zeuthen <zeuthen@chromium.org>
/external/autotest/client/site_tests/p2p_ServeFiles/p2p_ServeFiles.py
a25ea0d017f8f4ad128d32724c5f32db0e9e4d92 27-Dec-2013 Alex Deymo <deymo@chromium.org> P2P tests dump traffic for debug purposes.

This patch adds a new tcpdump.py library to run a tcpdump process
on the background capturing packets to a file. When setting up a
P2P test environment, a new TAP interface is created to simulate
the peers on that network.

This patch records the traffic on that TAP interface and makes it
available on the results directory on the test. The filename used
is dump-<iface-name>.pcap, usually dump-faketap0.pcap.

BUG=chromium:328078
TEST=test_that --fast -b $BOARD $HOST p2p_ServeFiles

Change-Id: Icc9ab81d6e3db1be4eb0431f0e5f194ae170517b
Reviewed-on: https://chromium-review.googlesource.com/181163
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
/external/autotest/client/site_tests/p2p_ServeFiles/p2p_ServeFiles.py
16a5bf960efd73ba3aefcb1236a7678f86883210 17-Dec-2013 Alex Deymo <deymo@chromium.org> p2p_ServeFiles: Make active request of a p2p-server.

The test p2p_ServeFiles waits until the DUT shares a file on the p2p
network and tries to download it. It does this by scanning the
network passively until it detects the p2p-server running on the DUT
and the file shared there. Due to timing issues, the test may not see
the p2p-server starting and the DUT being announced, which is covered
by the p2p_ShareFiles tests. To avoid this situation, this patch to
p2p_ServeFiles makes an active request of the shared files on the
network instead of passively wait for the results. This active
behavior is similar to what the p2p-client implementation does.

TEST=test_that --fast -b link IP_ADDRESS p2p_ServeFiles
BUG=chromium:328078

Change-Id: I46f8478436e2115ec4f736fd0d989895767c3d56
Reviewed-on: https://chromium-review.googlesource.com/180341
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
/external/autotest/client/site_tests/p2p_ServeFiles/p2p_ServeFiles.py
e066db9345331ec3cd44ccec5f2c7ffb857cde3b 07-Nov-2013 Alex Deymo <deymo@chromium.org> Add new p2p_ServeFiles test.

This test checks that files announced from the p2p-server are served
from the p2p-http-server daemon. Note that localhost requests are
blocked.

In order to test this, a new method to wait for conditions on the
SimulatorThread is added to the lansim framework with its respective
unit test.

BUG=chromium:311657
TEST=lansim unittests and test_that p2p_ServeFiles
CQ-DEPEND=CL:176161

Change-Id: I7ff53d494240500a0a5c1ea4bbbfd73a2cc7193e
Reviewed-on: https://chromium-review.googlesource.com/176147
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
/external/autotest/client/site_tests/p2p_ServeFiles/p2p_ServeFiles.py