summaryrefslogtreecommitdiffstats
path: root/tests/unit/test_wsgi.py
Commit message (Collapse)AuthorAgeFilesLines
* Move wsgi module to deprecated packageDoug Hellmann2013-06-071-622/+0
| | | | | | | | | | | | | | | | | | | | | As we are planning to deprecate the wsgi module, move it out of the main openstack/common folder to the new "deprecated" folder. Move some of the middleware classes into the middleware package, since those are still useful and should be maintained. There's still work to do to remove the dependency of the size limit middleware on the Request class in the now deprecated wsgi module. Refer to the mailing list thread at http://lists.openstack.org/pipermail/openstack-dev/2013-May/009666.html for additional details. Change-Id: I05ff583ef37174835393905a3066390f400ffdcf Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
* Convert unicode strings for python3 portabilityChuck Short2013-05-071-1/+2
| | | | | | | | | | | From http://docs.python.org/3.1/whatsnew/3.0.html You can no longer use u"..." literals for Unicode text. However, you must use b"..." literals for binary data. Use python-six to make this migration easier. Change-Id: I95166a07f4edf33be55a4bdf2674c2f238a06f19 Signed-off-by: Chuck Short <chuck.short@canonical.com>
* Merge "Move wsgi.Service socket creation into the constructor."Jenkins2013-04-221-5/+4
|\
| * Move wsgi.Service socket creation into the constructor.Kiall Mac Innes2013-03-171-5/+4
| | | | | | | | | | | | | | | | This allows wsgi.Service to be used with service.ProcessLauncher Fixes Bug #1156182 Change-Id: I71714d243c8a1b90c7bc1006ca2ad1e8c4b30e57
* | Merge "Allows wsgi server kwargs to be given."Jenkins2013-03-221-0/+19
|\ \
| * | Allows wsgi server kwargs to be given.Alex Meade2013-03-181-0/+19
| |/ | | | | | | | | | | | | | | | | This fix allows someone using openstack.common.wsgi to pass kwargs down to eventlet.wsgi.server when calling wsgi.run_server. Fixes bug 1156930 Change-Id: Id35232f68ee40c5435e157a834fc94d4bbd04970
* / Removes unused imports in the tests moduleZhongyue Luo2013-03-201-2/+0
|/ | | | | | Fixes bug #1157596 Change-Id: I36d5484eaa2f0e21188eed6e70cc1ad785233d6a
* Fix Copyright Headers - Rename LLC to FoundationDavanum Srinivas2013-03-111-1/+1
| | | | | | One code change, rest are in headers Change-Id: I73f59681358629e1ad74e49d3d3ca13fcb5c2eb1
* Use oslo-config-2013.1b3Mark McLoughlin2013-02-171-3/+4
| | | | | | | | | | | | | | | The cfg API is now available via the oslo-config library, so switch to it and remove the copied-and-pasted version. Add the 2013.1b3 tarball to tools/pip-requires - this will be changed to 'oslo-config>=2013.1' when oslo-config is published to pypi. This will happen in time for grizzly final. Remove the 'deps = pep8==1.3.3' and 'deps = pyflakes' from tox.ini as it means all the other deps get installed with easy_install which can't install oslo-config from the URL. Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc
* Support for ipv6 in wsgi.ServiceDavanum Srinivas2013-02-031-1/+63
| | | | | | | | | | | Enable wsgi.Service to listen on ipv6 address by checking if the host specified is ipv6. Based on that set the appropriate family in the eventlet.listen api More tests for just the ipv6, ipv6 with app, ipv6+ssl with app to make sure everything is working fine Change-Id: I2772905128bdbc69dd0fafe4ced848f5c477d7c8
* Support for SSL in wsgi.ServiceDavanum Srinivas2013-01-291-0/+69
| | | | | | | | | | | | | | | | | | | | Enable support for SSL as well using code from glance. We have some new options for configuring the SSL support. test_app starts wsgi.Service with a test app, then creates a url to make sure the http requests are actually served properly test_app_using_router adds wsgi.Router and Mapper() to the mix along with using the wsgify annotation for serving the http requests Fixes LP# 979488 (partial) Fixes LP# 869884 (partial) DocImpact Change-Id: Iae47b13b50e00c102c8c36f4a3e73b24fa4e6303
* Replace direct use of testtools BaseTestCase.Monty Taylor2013-01-241-16/+16
| | | | | | | | | Using the BaseTestCase across the tests in the tree lets us put in log fixtures and consistently handle mox and stubout. Part of blueprint grizzly-testtools. Change-Id: Iba7eb2c63b0c514009b2c28e5930b27726a147b0
* Use testtools as test base class.Monty Taylor2013-01-241-21/+21
| | | | | | | | | | | | | On the path to testr migration, we need to replace the unittest base classes with testtools. Replace tearDown with addCleanup, addCleanup is more resilient than tearDown. The fixtures library has excellent support for managing and cleaning tempfiles. Use it. Replace skip_ with testtools.skipTest Part of blueprint grizzly-testtools. Change-Id: I45e11bbb1ff9b31f3278d3b016737dcb7850cd98
* JSONDictSerializer encode objects to unicodeSean McCully2013-01-031-0/+11
| | | | | | | | | | Averts raising ValueError, Circular Reference Detected exception. Add additional test to JSONDictSerializerTest testing that JSONDictSerializer correctly serializes objects into unicode repr. and not raise error Fixes: bug #1089100 Change-Id: Ifdb0562c7c43ab66617dddb65f16f893df2f4895
* Make wsgi.Server comply with service.Launcher interfaceMichael Basnight2012-12-101-3/+3
| | | | | | fixes LP 1087369 Change-Id: Icf222b5bffe1f40a5c325ffe2a1b397f22713c00
* Use Service thread group for WSGI request handlingDavanum Srinivas2012-11-291-0/+16
| | | | | | | | | | | | | | | - Reuse the pool from thread group in service.Service instead of creating a new green pool - Add ability to control the size of the pool in service.Service - Add a couple of tests for wsgi.Service() to test the size of pool a start/stop as well - Get rid of the wait method by using tg.add_thread - Get rid of pool in wsgi.Service - Added explicit property for host and port Fixes LP #1050379 Change-Id: I40507dc7887fb036ec594bb167cdaa42c278607e
* Update common code to support pep 1.3.Gary Kotton2012-06-181-3/+4
| | | | | | bug 1014216 Change-Id: I3f8fa2e11c9d3f3d34fb20f65ce886bb9c94463d
* PEP8 cleanup (openstack-common)Zhongyue Luo2012-02-111-2/+2
| | | | | | | | | Fixes bug #930625 Remove backslash continuations in openstack-common. Fix type checking taboos. Change-Id: I49ddb9ff5fa5af760dcfccb52cb4793b71e02f19
* add some server testsJason Kölker2011-12-021-0/+20
|
* Rajaram/Vinkesh|increased tests for Request and Response serializersRajaram Mallya2011-09-141-5/+17
|
* Rajaram/Vinkesh | Copied tests for wsgi from nova. Added default ↵Rajaram Mallya2011-09-081-0/+413
content/accept types in Request which can be overridden by projects. Copied tests for XML serialization of Extension Controller's action from nova