summaryrefslogtreecommitdiffstats
path: root/net/tools/testserver/testserver.py
Commit message (Collapse)AuthorAgeFilesLines
* Minimize login promptscbentzel@chromium.org2011-01-051-3/+31
| | | | | | | | | | | | | | | | | | LoginHandler can receive useful notifications from the same NavigationController. Excluding them can trigger spurious login dialogs for the same target. Also, re-order authentication dialog cancellations to prevent unnecessary dialogs from being shown to the user. BUG=51570 TEST=LoginPromptBrowserTest.* Contributed by: asanka@google.com Review URL: http://codereview.chromium.org/5814005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70509 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Fixed bug in test sync server's select loop.akalin@chromium.org2010-12-201-13/+15
| | | | | | | | | | | | This fixes one problem causing flakiness on the linux sync integration test trybot. BUG=67051 TEST=sync_integration_tests Review URL: http://codereview.chromium.org/5968001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69752 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure test server use right mime for exe.lzheng@chromium.org2010-12-161-2/+3
| | | | | | | | | TEST=all tests using test server not broken. BUG=none Review URL: http://codereview.chromium.org/5884002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69455 0039d316-1c4b-4281-b951-d872f2087c98
* Spin up XMPP server for testservers of type sync.akalin@chromium.org2010-11-271-9/+92
| | | | | | | | | | | The XMPP server will be used by the sync integration tests in a future CL. BUG=53934 TEST=Sync integration tests still work Review URL: http://codereview.chromium.org/5104004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67483 0039d316-1c4b-4281-b951-d872f2087c98
* Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-271-4/+9
| | | | | | | | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66879 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67018 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67386 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67398 Review URL: http://codereview.chromium.org/5196001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67481 0039d316-1c4b-4281-b951-d872f2087c98
* Added server_data json dictionary to testserver.pyakalin@chromium.org2010-11-261-0/+4
| | | | | | | | | | | | | | | | This is split off from 5196001. BUG=53934 TEST=manually TBR=cbentzel Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67428 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67437 Review URL: http://codereview.chromium.org/5262005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67467 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67437 - Added server_data json dictionary to testserver.pyakalin@chromium.org2010-11-261-5/+0
| | | | | | | | | | | | | | | | | This is split off from 5196001. BUG=53934 TEST=manually TBR=cbentzel Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67428 Review URL: http://codereview.chromium.org/5262005 TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/5359004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67441 0039d316-1c4b-4281-b951-d872f2087c98
* Added server_data json dictionary to testserver.pyakalin@chromium.org2010-11-261-0/+5
| | | | | | | | | | | | | | This is split off from 5196001. BUG=53934 TEST=manually TBR=cbentzel Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67428 Review URL: http://codereview.chromium.org/5262005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67437 0039d316-1c4b-4281-b951-d872f2087c98
* Added simplejson import line to testserver.py.akalin@chromium.org2010-11-261-0/+1
| | | | | | | | | | | | | This is split off from 5196001 (to try to narrow down the test failures on XP). BUG=53934 TEST=manually TBR=cbentzel Review URL: http://codereview.chromium.org/5330008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67435 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67428 - Added server_data json dictionary to testserver.pyakalin@chromium.org2010-11-261-8/+1
| | | | | | | | | | | | | This is split off from 5196001. BUG=53934 TEST=manually TBR=cbentzel TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/5279005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67429 0039d316-1c4b-4281-b951-d872f2087c98
* Added server_data json dictionary to testserver.pyakalin@chromium.org2010-11-261-1/+8
| | | | | | | | | | This is split off from 5196001. BUG=53934 TEST=manually TBR=cbentzel git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67428 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67398 - Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-251-18/+4
| | | | | | | | | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66879 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67018 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67386 Review URL: http://codereview.chromium.org/5196001 TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/5373004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67400 0039d316-1c4b-4281-b951-d872f2087c98
* Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-251-4/+18
| | | | | | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66879 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67018 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67386 Review URL: http://codereview.chromium.org/5196001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67398 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67386 - Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-251-18/+4
| | | | | | | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66879 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67018 Review URL: http://codereview.chromium.org/5196001 TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/5343003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67393 0039d316-1c4b-4281-b951-d872f2087c98
* Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-251-4/+18
| | | | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66879 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67018 Review URL: http://codereview.chromium.org/5196001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67386 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67018 - Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-231-18/+4
| | | | | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66879 Review URL: http://codereview.chromium.org/5196001 TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/5291002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67025 0039d316-1c4b-4281-b951-d872f2087c98
* Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-221-4/+18
| | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66879 Review URL: http://codereview.chromium.org/5196001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67018 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 66879 - Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-201-18/+4
| | | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Review URL: http://codereview.chromium.org/5196001 TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/5177008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66881 0039d316-1c4b-4281-b951-d872f2087c98
* Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-201-4/+18
| | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Review URL: http://codereview.chromium.org/5196001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66879 0039d316-1c4b-4281-b951-d872f2087c98
* Add a PDF test to load all the pdfs in a test directory, using the test ↵jam@chromium.org2010-11-171-2/+21
| | | | | | | | server. This tests regressions in loading and crashes. Review URL: http://codereview.chromium.org/5141001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66548 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Added a separate type for a sync server for testserver.pyakalin@chromium.org2010-11-121-85/+127
| | | | | | | | | | | | | Made live_sync_test.cc use its own test server instance. Decomped all sync server code into their own classes (SyncHTTPServer and SyncPageHandler). BUG=53934 TEST=sync integration tests Review URL: http://codereview.chromium.org/4209002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65893 0039d316-1c4b-4281-b951-d872f2087c98
* testserver.py listens on ephemeral ports by default.cbentzel@chromium.org2010-11-111-9/+17
| | | | | | | | | | | | | If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order. TestServer spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. A fixed port can not be specified. BUG=56814 TEST=try bots pass Review URL: http://codereview.chromium.org/4733005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65843 0039d316-1c4b-4281-b951-d872f2087c98
* All SSL UI tests work with ephemeral ports.cbentzel@chromium.org2010-11-111-10/+16
| | | | | | | | | | | | | This also changes the testserver text replacement hooks to accept base64 encoded pairs, and to support multiple replacement texts. These changes were needed for some of the "ssl/top_frame.html" based tests, which contained a frame with an HTML page referencing three URLs on three tdifferent test servers. BUG=56814 TEST=browser_tests --gtest_filter="*SSLUI*" Review URL: http://codereview.chromium.org/4664009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65819 0039d316-1c4b-4281-b951-d872f2087c98
* Add device management test server to net infrastructure.mnissler@chromium.org2010-11-111-1/+26
| | | | | | | | | | | This adds a simple device management server implementation written in python that's useful for unit tests and local testing. BUG=62318 TEST=Compiles and browser tests in device_management_backend_browsertest succeed Review URL: http://codereview.chromium.org/4659002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65783 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 65465 - testserver.py listens on ephemeral ports by default.cbentzel@chromium.org2010-11-091-17/+9
| | | | | | | | | | | | | | | | | | Some SSL UI tests timed out again on 10.5/10.6 bots when landing this, despite the changes made. Different tests this time however. If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order. TestServer spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. A fixed port can not be specified. BUG=56814 TEST=try bots pass Review URL: http://codereview.chromium.org/4136008 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/4731003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65488 0039d316-1c4b-4281-b951-d872f2087c98
* testserver.py listens on ephemeral ports by default.cbentzel@chromium.org2010-11-091-9/+17
| | | | | | | | | | | | | If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order. TestServer spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. A fixed port can not be specified. BUG=56814 TEST=try bots pass Review URL: http://codereview.chromium.org/4136008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65465 0039d316-1c4b-4281-b951-d872f2087c98
* SSLUITest's work with ephemeral port testserver.cbentzel@chromium.org2010-11-061-17/+33
| | | | | | | | | | | | | Many of the tests depend on a file served from one server to reference resources on a different server to exercise mixed content warnings. To handle this, I added replace_orig and replace_new query parameters to /files/ based paths which do simple string substitution. BUG=56814 TEST=browser_tests --gtest_filter="*SSLUI*" Review URL: http://codereview.chromium.org/4429001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65311 0039d316-1c4b-4281-b951-d872f2087c98
* Add support to test_server.py to restrict the SSL/TLS bulk encryption ↵rsleevi@chromium.org2010-10-281-4/+19
| | | | | | | | | | | algorithms via the command-line argument --ssl-alg. BUG=58831 TEST=Run test_server.py as an HTTPS server with --ssl-alg=rc4. Connect via openssl s_client -connect 127.0.0.1:1337 -cipher DEFAULT:\!RC4. Observe a connection failure. Connect with openssl s_client -connect 127.0.0.1:1337, observe that a ciphersuite that uses RC4 is negotiated. Review URL: http://codereview.chromium.org/3812007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64233 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 64118 - Revert 64070 - Revert 64065 - testserver.py listens on ↵nick@chromium.org2010-10-271-17/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | ephemeral ports by default. (Reason for revert: this causes SSLUITests on Mac OS to hang with high probability) If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order. TestServer by default spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. If necessary, the port can still be fixed using TestServer::ForcePort, but that will hopefully get deprecated quickly. BUG=56814 TEST=try bots pass Review URL: http://codereview.chromium.org/3549003 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/4165004 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/4146008 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/4164008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64175 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 64070 - Revert 64065 - testserver.py listens on ephemeral ports by ↵cbentzel@chromium.org2010-10-271-9/+17
| | | | | | | | | | | | | | | | | | | | | default. If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order. TestServer by default spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. If necessary, the port can still be fixed using TestServer::ForcePort, but that will hopefully get deprecated quickly. BUG=56814 TEST=try bots pass Review URL: http://codereview.chromium.org/3549003 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/4165004 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/4146008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64118 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 64065 - testserver.py listens on ephemeral ports by default.cbentzel@chromium.org2010-10-271-17/+9
| | | | | | | | | | | | | | | | | | I'm not convinced that this caused some of the test failures, but I needed to leave unexpectedly and didn't have time to investigate. If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order. TestServer by default spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. If necessary, the port can still be fixed using TestServer::ForcePort, but that will hopefully get deprecated quickly. BUG=56814 TEST=try bots pass Review URL: http://codereview.chromium.org/3549003 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/4165004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64070 0039d316-1c4b-4281-b951-d872f2087c98
* testserver.py listens on ephemeral ports by default.cbentzel@chromium.org2010-10-271-9/+17
| | | | | | | | | | | | | If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order. TestServer by default spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. If necessary, the port can still be fixed using TestServer::ForcePort, but that will hopefully get deprecated quickly. BUG=56814 TEST=try bots pass Review URL: http://codereview.chromium.org/3549003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64065 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: Get rid of the test server's /kill switchphajdan.jr@chromium.org2010-10-041-33/+0
| | | | | | | | | | | | | This also allows us to remove a quite complicated test. The lifetime of the test server is now fully controlled by its c++ launcher. BUG=49680 TEST=none Review URL: http://codereview.chromium.org/3479018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61358 0039d316-1c4b-4281-b951-d872f2087c98
* Implement changes_remaining GetUpdates response; this will reducenick@chromium.org2010-09-221-1/+1
| | | | | | | | | | | | | | the number of GetUpdates that the client actually does, since "changes_remaining == 0" is treated as a termination condition. Also, add an indication of client identity to the logger. BUG=55809 TEST=sync_integration_tests, chromiumsync_test.py Review URL: http://codereview.chromium.org/3462006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60229 0039d316-1c4b-4281-b951-d872f2087c98
* Wait on a pipe for the test server to start updavidben@chromium.org2010-09-221-0/+17
| | | | | | | | | | | | | This should speed up testserver-based unit tests considerably and make them less flakey. R=agl,cpu,phajdan,wtc BUG=49680 TEST=net_unittests Review URL: http://codereview.chromium.org/3368012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60199 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "net: add test for False Start corking."agl@chromium.org2010-09-211-24/+0
| | | | | | This reverts commit r60056. The test failed on Windows. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60059 0039d316-1c4b-4281-b951-d872f2087c98
* net: add test for False Start corking.agl@chromium.org2010-09-211-0/+24
| | | | | | | | | | | See r58838 for details of why we do False Start corking. BUG=none TEST=net_unittests http://codereview.chromium.org/3427014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60056 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: Make the parallel launcher use different ports for test https servers ↵phajdan.jr@chromium.org2010-09-151-39/+0
| | | | | | | | | | | for different shards. BUG=54098 TEST=none Review URL: http://codereview.chromium.org/3452001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59547 0039d316-1c4b-4281-b951-d872f2087c98
* Stabilize sync integration testsrsimha@chromium.org2010-09-151-24/+0
| | | | | | | | | | | This patch contains more updates to the ProfileSyncServiceTestHarness class, in light of recent changes to the sync startup sequence, and new tests that require support for offline scenarios. BUG=53858,54743,52007 TEST=sync_integration_tests Review URL: http://codereview.chromium.org/3399002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59463 0039d316-1c4b-4281-b951-d872f2087c98
* Implement gallery install APIrafaelw@chromium.org2010-09-091-1/+2
| | | | | | | | | | This patch implements chrome.experimental.management.install() which is only available for use by the web store. Calling with an extensionId, causes the download url to be constructed internally and downloaded and then cause the installation to bypass the normal permissions dialog. BUG=27431,54148 Review URL: http://codereview.chromium.org/3353015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58956 0039d316-1c4b-4281-b951-d872f2087c98
* Disable request logging in test HTTP server to declutter log output.phajdan.jr@chromium.org2010-08-261-0/+4
| | | | | | | | | TEST=none BUG=52645 Review URL: http://codereview.chromium.org/3163041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57530 0039d316-1c4b-4281-b951-d872f2087c98
* Improve support for requesting client certs in tlslitersleevi@chromium.org2010-08-211-4/+21
| | | | | | | | | | | Currently, tlslite only supports the caller passing in a list of CAs pre-encoded for the TLS CertificateRequest message. This CL improves that, by providing a means of extracting the DER-encoded subject name from an X509 certificate, supplying a list of such names to tlslite's server routines, and having tlslite encode the list of CAs as part of the CertificateRequest. BUG=47656, 47658 TEST=net_unittests Review URL: http://codereview.chromium.org/3177015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56982 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: Remove TryKillingOldServer from testserver.py, it's broken.phajdan.jr@chromium.org2010-08-191-14/+0
| | | | | | | | | | | | | | | Sometimes TryKillingOldServer fails with an exception we don't catch, which is even worse because then the new server fails to start. We should rely on the C++ code to kill the server in a reliable way, rather than this Python hack. TEST=net_unittests, unit_tests, ui_tests, ... BUG=52644 Review URL: http://codereview.chromium.org/3110025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56736 0039d316-1c4b-4281-b951-d872f2087c98
* Test server cleanup patch of death:phajdan.jr@chromium.org2010-08-171-2/+28
| | | | | | | | | | | | | | - reduce the number of different classes - clean up the internal code - modify the interface to expose less internal details (this will allow more flexibility with port numbers) TEST=many BUG=49680 Review URL: http://codereview.chromium.org/3080029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56405 0039d316-1c4b-4281-b951-d872f2087c98
* Simple offline startup integration test.skrul@chromium.org2010-08-131-0/+24
| | | | | | | | | | This is a simple offline startup integration test. This change also includes the groundwork for more complex offline startup test cases, including the ability to enable and disable network connectivity as well as configure the mock sync server with a username. BUG=47918 Review URL: http://codereview.chromium.org/3078031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56087 0039d316-1c4b-4281-b951-d872f2087c98
* Add rudimentary support for client auth in testserver.py and unit testsdavidben@chromium.org2010-08-071-3/+9
| | | | | | | | | | | | | Nothing fancy for now. Just some tests that ERR_SSL_CLIENT_AUTH_CERT_NEEDED is returned from the socket layer, and that URLRequest requests a certificate. R=wtc BUG=51132,51127 TEST=SSLClientSocketTest.ConnectClientAuthNoCert,HTTPRequestTest.ClientAuthTest Review URL: http://codereview.chromium.org/3014055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55318 0039d316-1c4b-4281-b951-d872f2087c98
* Allow testserver to run without chromiumsync.pathorn@chromium.org2010-07-271-5/+7
| | | | | | | | | BUG=43624 TEST=Able to run 'PYTHONPATH=third_party/tlslite:third_party/pyftpdlib python net/tools/testserver/testserver.py --data-dir=chrome/test/data/' Review URL: http://codereview.chromium.org/3014036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53812 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: test server cleanup:phajdan.jr@chromium.org2010-07-231-23/+2
| | | | | | | | | | | | | - simplify the public interface - remove unneeded methods - make it easier to understand TEST=none BUG=49680 Review URL: http://codereview.chromium.org/2881028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53509 0039d316-1c4b-4281-b951-d872f2087c98
* Re-apply http://codereview.chromium.org/1622012timurrrr@chromium.org2010-04-301-3/+58
| | | | | | | | | It was reverted as http://codereview.chromium.org/1822001 the fix in Valgrind scripts has been commited as http://codereview.chromium.org/1736026 TEST=trybots Review URL: http://codereview.chromium.org/1763023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46070 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "[Third time landing] Python implementation of sync server, for testing."phajdan.jr@chromium.org2010-04-301-58/+3
| | | | | | | | | | This broke the memory waterfall, failed to import protobuf. TBR=nick Review URL: http://codereview.chromium.org/1822001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46048 0039d316-1c4b-4281-b951-d872f2087c98