summaryrefslogtreecommitdiff
path: root/dummyserver/server.py
Commit message (Collapse)AuthorAgeFilesLines
* Add support for TLS 1.3 to all HTTPSConnection implementations (#1496)Seth Michael Larson2019-02-271-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add tests for specific TLS/SSL versions * Add change and update bindings * SSLSocket.version() not available sometimes * Add support for kTLSProtocolMaxSupported * Try setProtocolVersionMax again if error * Get ctypes.c_uint.value for SSLSocket.version() * Opt-in TLS 1.3 on macOS 10.13 * Update tornado to 5.1.1 * Add documentation updates for TLSv1.3 * Add wbond/oscrypto license to contrib/securetransport * Remove all TLS 1.3 ciphersuites from DEFAULT_CIPHERS * Experiment showing cipher list per protocol * Update test_https.py * Update test_https.py * Update test_https.py * Update changelog wording to exclude pyOpenSSL * minor rewording * Add support for IPv6 in subjectAltName * Don't use OP_ALL * Update CHANGES.rst * No PROTOCOL_TLSv1_3 * Remove DSS, rearrange SecureTransport ciphers * Use ECDSA before RSA with ECDHE * ReviReorder ciphers * ECDHE * Update test_https.py * Turns out we don't need version detection * Reorder per Hyneks post and favor ephemeral * Refactor HTTPS unit tests * Fix up tests * Test locking pytest-httpbin * Update requests.sh * remove whitespace
* Add support for password-protected client keyfiles (#1489)Seth Michael Larson2019-01-221-0/+2
|
* Revert "Fix test_client_no_intermediate on macOS 10.13+ (#1412)" (#1418)Quentin Pradet2018-08-061-1/+1
| | | | | | | | | | | | | | * Revert "Fix test_client_no_intermediate on macOS 10.13+ (#1412)" This reverts commit 6ef3c06249b7144838b6701c6e9adfa76650ccea. The test was supposed to test a missing intermediate CA, but after that change it was testing a missing root CA. * Stop testing known bad test on macOS 10.13 macOS 10.13 (used by Travis) rejects serial numbers which are more than 36 bytes long, and those tests use certificates with 38 bytes serial numbers.
* Support using tornado-5 for tests (#1414)Michał Górny2018-07-241-4/+5
|
* Fix test_client_no_intermediate on macOS 10.13+ (#1412)Quentin Pradet2018-07-101-1/+1
|
* Do not use bare exceptAlex Gaynor2017-11-211-1/+1
|
* dummyserver/server.py: simlify import ssl strategyRyan T. Dean2017-08-161-6/+2
| | | | | | Given that large portions of the existing test base blindly import ssl, and given that if the ssl module exists, CERT_OPTIONAL will be present, just import ssl unconditionally and use ssl.CERT_OPTIONAL where needed.
* fix up tests and dummyserver /certificate endpointRyan T. Dean2017-08-151-4/+4
| | | | | | | | | | | | * update dummyserver /certificate endpoint to return a json dict of the subject of the client certificate used to connect (needed for py26 compatibility) * update test_client_intermediate to use assertDictEquals to test the returned certificate info from /certificate * update test_client_no_intermediate to call request with retries=False, as certificate authentication failure isn't something that will resolve itself through retries. tests currently pass on py26, py27, py34, py35, and py36 on my mac.
* test/with_dummyserver/test_https.py: addressing code reviewWolfgang Richter2017-08-101-0/+4
| | | | | + Where applicable, using implicit line continuations + Moved certificate serial number constant to a more central location
* test/with_dummyserver/test_https.py: adding intermediate CA client ↵Wolfgang Richter2017-08-101-0/+15
| | | | certificate tests
* Merge branch 'master' into secure-transportCory Benfield2017-04-251-1/+3
|\
| * Resolve Windows + Py36 bugCory Benfield2017-04-241-1/+3
| |
* | Add support for SecureTransport TLS backendCory Benfield2017-03-061-0/+1
|/
* dummyserver: raise syn backlogÉtienne Buira2016-11-251-1/+1
| | | | | | If the client thread called connect() by the time the server thread actually accept()ed connections, the client got a connection refused error.
* Fix flake8 E305 errorslars48392016-11-141-0/+1
|
* Respect Retry-After headerYi EungJun2016-09-261-0/+3
| | | | | Sleep for the seconds specifed by Retry-After response header before retrying the request.
* Add a cert with IP SAN and test for it.Cory Benfield2016-07-111-0/+4
|
* Merge pull request #762 from Lukasa/lukasa/socksAndrey Petrov2015-12-191-1/+3
|\ | | | | Add SOCKS support.
| * Add support for IPv4-only tests.Cory Benfield2015-12-161-1/+3
| |
* | Add tests case using IPv6 addr certs.Cory Benfield2015-12-151-0/+5
|/
* Fix flake8 violationsJohn Vandenberg2015-11-021-0/+1
| | | | Add tox rule to prevent regressions.
* Test CA cert directory.Cory Benfield2015-08-311-0/+1
|
* Issue #610 -- Tests fallback to IPv4 if IPv6 failsDavid D. Riddle2015-05-111-2/+31
| | | | | | | | | | | On systems with IPv6 disabled all IPv6 unit tests will now be skipped, instead of throwing an exception. On some IPv6 enabled systems with badly configured DNS, where the IPv6 loopback address ::1 is not assigned to localhost, the unit tests will fallback to using IPv4 for tests that bind to localhost instead of throwing an socket.gaierror exception. IPv6 tests that bind directly to ::1 will continue to be run.
* use Tornado directly instead of WSGI compatibility layermatejcik2015-04-231-2/+1
|
* don't use IPv6 in tests when it's not availableTomas Tomecek2015-03-161-1/+14
| | | | Fixes #568
* Close connections properlyMarkus Unterwaditzer2015-01-251-0/+1
| | | | Also kill server if the testsuite fails.
* Allow starting dummyserver in standalone modeJoonas Kuorilehto2014-11-111-0/+14
| | | | | | | I didn't find a way to launch dummyserver stand-alone. Helps writing tests if you can launch the dummyserver and just shoot at it with HTTPie. $ python -m dummyserver.server
* Update tests with new certificate for full coverageIan Cordasco2014-11-011-0/+5
| | | | Also add instructions for future selves needing to generate new certificates and pem files
* Tweakage.Andrey Petrov2014-06-301-1/+1
|
* Speed up failed connection detection on Windows.schlamar2014-01-231-0/+17
| | | | | | | If Windows finds the connection host it retries up to two seconds before raising the connection error even when the port is not available. We speed this up by using a non-existent host name.
* Speed up socket level tests on Windows.schlamar2014-01-231-1/+1
|
* Speed up tornado tests on Windows.schlamar2014-01-231-5/+82
| | | | | | | | | | On Windows, socket.create_connection is delayed one second if the host supports IPv6 and there is no listening IPv6 socket. We fixed this with a updated version of bind_sockets which uses the same port on IPv4 and IPv6 if automatic allocation is requested. See this upstream PR for details: https://github.com/facebook/tornado/pull/977
* Refactored tornado test cases.schlamar2013-11-251-55/+14
| | | | | Use an explicit IOLoop instance so it should be more clear what's going on internally.
* Fixed tests for OSX 10.6.Andrey Petrov2013-08-141-1/+1
| | | | Related: https://github.com/facebook/tornado/pull/777
* dummyserver: listen also listen on v6 addressThomas Weißschuh2013-08-081-1/+2
|
* Sane solution to automatic port allocation.schlamar2013-08-071-10/+17
|
* Simplified ProxyServerThread.schlamar2013-07-311-19/+6
|
* Fix deadlock in Tornado threads (single-threaded now)ms4py2013-07-311-15/+9
|
* Created dummyserver tests for ProxyManagerStanislav Vitkovskiy2013-07-311-4/+7
|
* Added proxymanager tests with tornado-based proxyStanislav Vitkovskiy2013-07-311-0/+21
|
* Merge pull request #213 from schlamar/no-reuse-win32Andrey Petrov2013-07-231-1/+2
|\ | | | | Do not use REUSEADDR on Windows.
| * Do not use REUSEADDR on Windows.schlamar2013-07-231-1/+2
| |
* | Made tornado test server thread safe.schlamar2013-07-231-2/+2
|/
* explicitly close listening and connected socketsThomas Weißschuh2013-02-021-0/+1
|
* making dummyserver work with IPv4 by explicitly passing the server host ↵Mahmoud Hashemi2012-03-131-2/+2
| | | | address. Should work fine on IPv6, too. fixes issue #59
* Merging and getting rid of eventlet, wsgiref and other things in ↵Andrey Petrov2012-01-221-49/+58
|\ | | | | | | dummyserver. Lots of sexy refactoring.
| * Fixes for importing tests.Thomas Kluyver2012-01-221-1/+2
| |
| * Add tornado option for dummy server.Thomas Kluyver2012-01-221-1/+35
| |
| * Refactor dummyserver so simpleserver actually starts and stops.Thomas Kluyver2012-01-221-4/+39
| |
* | Updated docstring, fixed ready_lock race condition.Andrey Petrov2012-01-221-5/+6
| |