History log of /external/autotest/client/cros/httpd.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9ebeda69d1b18d1e58677c01147d9dc94f63ce85 22-Jun-2012 Bartosz Fabianowski <bartfab@chromium.org> Make HTTPListener close its socket when stop() is called

This CL makes the HTTPListener class close its socket when stop() is
called so that the port can be reused.

BUG=chromium-os:32061
TEST=Port can be reused by another HTTPListener in the same process

Change-Id: I36669fc6655aeb87cc336069d7f3ae51d3a7df6f
Reviewed-on: https://gerrit.chromium.org/gerrit/25917
Reviewed-by: Nirnimesh <nirnimesh@chromium.org>
Tested-by: Bartosz Fabianowski <bartfab@chromium.org>
Commit-Ready: Bartosz Fabianowski <bartfab@chromium.org>
/external/autotest/client/cros/httpd.py
b6d2993fb77f771a886c41ace0850773f5498bed 11-Apr-2012 barfab@chromium.org <bartfab@chromium.org> Fix includes, unbreaking PyAuto functional and improving style

* Ensure "common" is imported whenever "autotest_lib.client" is used.
* Remove unnecessary "autotest_lib.client.cros" prefix from includes.
* Remove hashbang lines from files that cannot be run from the
command line anyway.
* Improve autotest style guide conformance:
-> Reorder includes into groups and alphabetically within these.
-> Lump together includes in each group.

BUG=chromium-os:29150
TEST=desktopui_PyAutoFunctionalTests.CHROMEOS_POLICY
TEST=desktopui_PyAutoFunctionalTests.FULL, suite:bvt

Change-Id: I87479ed729bca38888e4bcf250cf7997406387e5
Reviewed-on: https://gerrit.chromium.org/gerrit/19886
Commit-Ready: Bartosz Fabianowski <bartfab@chromium.org>
Reviewed-by: Bartosz Fabianowski <bartfab@chromium.org>
Tested-by: Bartosz Fabianowski <bartfab@chromium.org>
/external/autotest/client/cros/httpd.py
fd06d7506bf28dfb6b3ad68d97b700eb185bc823 27-Jan-2012 Nirnimesh <nirnimesh@chromium.org> autotest http server should recognize .webm data files

BUG=chromium-os:25175
TEST=None

Change-Id: Iff5b94198fd43c02b6ba5cbaf2d11ef3fa082785
Reviewed-on: https://gerrit.chromium.org/gerrit/14911
Reviewed-by: Andrew Scherkus <scherkus@chromium.org>
Commit-Ready: Nirnimesh <nirnimesh@chromium.org>
Tested-by: Nirnimesh <nirnimesh@chromium.org>
/external/autotest/client/cros/httpd.py
776a63e6b4286961d1b28b1cd9398d546e248ff5 16-Sep-2011 Nirnimesh <nirnimesh@chromium.org> Revert "Really wait for test server to get ready before proceeding."

This reverts commit 0416a87f6fac2c6e2f50391ee433672875113293

Still fails. Probably because chrome sometimes doesn't load URLs.
http://code.google.com/p/chromium-os/issues/detail?id=20503
Change-Id: I5985dc3b794318e5b302148a9aff50aab9fcd5ac
Reviewed-on: http://gerrit.chromium.org/gerrit/7839
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: David James <davidjames@chromium.org>
Reviewed-by: Nirnimesh <nirnimesh@chromium.org>
Tested-by: Nirnimesh <nirnimesh@chromium.org>
/external/autotest/client/cros/httpd.py
42131206f012c90bab44bb0090971091c49957a7 15-Sep-2011 Nirnimesh <nirnimesh@chromium.org> Really wait for test server to get ready before proceeding.

Wait for test http server to fire up before proceeding
Block run() until the serving thread actually fires up.

BUG=chromium-os:20034
TEST=suite_Smoke

Change-Id: I9d0d1229c4291d9e337090737055853f1ce93663
Reviewed-on: http://gerrit.chromium.org/gerrit/7758
Reviewed-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Nirnimesh <nirnimesh@chromium.org>
/external/autotest/client/cros/httpd.py
0772a0fcccb7370d093b8d3e60ab8e97823e3365 14-Sep-2011 Nirnimesh <nirnimesh@chromium.org> Revert "Wait for test http server to fire up before proceeding"

This reverts commit ae68a9d9d66b8fa7edef09e63471c1e09e5b1d0d

Doesn't work :(

Change-Id: Ia7151c0e6eb752d392e625881b6613e6e8b8e90b
Reviewed-on: http://gerrit.chromium.org/gerrit/7728
Reviewed-by: Nirnimesh <nirnimesh@chromium.org>
Tested-by: Nirnimesh <nirnimesh@chromium.org>
/external/autotest/client/cros/httpd.py
0d1821bbd5b6e86f14c7d623149bcb50be033992 14-Sep-2011 Nirnimesh <nirnimesh@chromium.org> Wait for test http server to fire up before proceeding

Block run() until the serving thread actually fires up.

BUG=chromium-os:20034
TEST=suite_Smoke

Change-Id: Ief3b9b6e506996700474e0f2c50b480626d1fd78
Reviewed-on: http://gerrit.chromium.org/gerrit/7690
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Nirnimesh <nirnimesh@chromium.org>
/external/autotest/client/cros/httpd.py
edda50a02e47ff06a9a1f91c897396a9edffdb11 27-Jul-2011 Gaurav Shah <gauravsh@chromium.org> autotest: Fix BaseHTTPServer logging and make it less verbose

Python's BaseHTTPServer are trigger happy about writing every log message
to sys.stderr which makes autotest mistakenly think of them as being error
messages and pollutes the logs.

Override the log_* methods in our request handlers to log everything to
the info level. *HTTPRequestHandler errors and logging must be handled
at the higher layers (for example, by checking the return value) instead
of relying on the default logging to sys.stderr.

BUG=chromium-os:11679
TEST=Ran desktopui_WindowManagerFocusNewWindows and examined the client.0.ERROR
log under "/tmp/run_remote_tests.latest/desktopui_WindowManagerFocusNewWindows/
debug".

Change-Id: I9c2d82a19a3a6f55d128fca372b7130fdfc2504b
Reviewed-on: http://gerrit.chromium.org/gerrit/4836
Tested-by: Gaurav Shah <gauravsh@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
/external/autotest/client/cros/httpd.py
bd427e906eb6d640e865878540c3291293e05919 19-Apr-2011 Dale Curtis <dalecurtis@chromium.org> Cleanup http logs by handling broken pipe and connection reset by peer exceptions.

New errors look like so:

04/19 12:16:04 ERROR|BaseHTTPSe:0447| localhost - - [19/Apr/2011 12:16:04] [Errno 32] Broken pipe
04/19 12:19:23 ERROR|BaseHTTPSe:0447| localhost - - [19/Apr/2011 12:19:23] [Errno 104] Connection reset by peer

Change-Id: I767939f5f4bf84578b639fdf78321d88ed5afc88

BUG=none
TEST=Started test server, forced resets/pipe failures. Ran bvt, smoke. Verified new messages are present.

Review URL: http://codereview.chromium.org/6877049
/external/autotest/client/cros/httpd.py
93e65d0badb3e0bf25b5c499b683ba6440208d2b 10-Mar-2011 Chris Masone <cmasone@chromium.org> [autotest] Update ChromeSession to play nicely with modern chrome os

The ChromeSession class was written long ago, at a time before we'd
picked a permanent mount point for cryptohomes, or written code to
drive a login for testing purposes, or written a base class from which
all UI tests are supposed to inherit, or made assumptions around there
being just one instance of chrome running at any given time.

This changelist updates the class to be compatible with these assumptions,
and updates tests that use this class to work in the New World Order :-)

BUG=12697
TEST=Run the affected tests, and ensure that no more of them fail than did before this CL

Change-Id: I518a4e45d0a72beeed22df3e31817fe9642dc1a0

Review URL: http://codereview.chromium.org/6624002
/external/autotest/client/cros/httpd.py
dcfe34c6532a793bea793447e174a4652d065d9f 11-Feb-2011 Elly Jones <ellyjones@google.com> Avoid raising exceptions in POST handler.

form.keys() raises an exception if it has no keys (ugh!); we need to test to see
if the form has any contents before we use .keys().

This has the pleasant side-effect of cutting about 90s off the runtime of login_LoginSuccess.

BUG=chromium-os:11679
TEST=login_LoginSuccess

Change-Id: Ic61f94106233e123cdef19e775450672af09e00b
Signed-off-by: Chris Masone <cmasone@chromium.org>
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Signed-off-by: seano <seano@chromium.org>

Review URL: http://codereview.chromium.org/6488002
/external/autotest/client/cros/httpd.py
c4d8f4aab4e434fcb1a9fb33931768ffebfb8f1c 10-Dec-2010 Eric Li <ericli@google.com> Move site_httpd, site_uim, site_login and site_cryptohome into cros/ dir.

And change import site_utils to import utils as I touched more source code.

Change-Id: I18bbac502c67ddedaccc7ef034c4f8c8b204506e

BUG=7236
TEST=BVT

Review URL: http://codereview.chromium.org/5680003
/external/autotest/client/cros/httpd.py