summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Updated from global requirementsjuno-eolstable/junoOpenStack Proposal Bot2015-09-251-1/+1
| | | | Change-Id: I9d7047152778a48d71fdd9a3d74dfdeca9e2d759
* Updated from global requirementsOpenStack Proposal Bot2015-07-283-13/+12
| | | | Change-Id: I344731dfb898d4d53461e4d9be6c27ad0c752274
* Updated from global requirementsOpenStack Proposal Bot2015-04-081-3/+3
| | | | Change-Id: I803d0f99ecfef08f283bbfdee04de7896a0e8530
* Updated from global requirementsOpenStack Proposal Bot2015-02-122-7/+7
| | | | Change-Id: I2b8fb2370b8ab4cb8d7b1b98fd7a0088624e60ff
* Updated from global requirementsOpenStack Proposal Bot2014-12-032-5/+5
| | | | Change-Id: Ia6743a86accc2741a235e05a717ff408c092e471
* Updated from global requirements0.1.0OpenStack Proposal Bot2014-09-103-5/+13
| | | | Change-Id: I6ba0a580547d52534517c50a2367ee111d0f0aef
* Setup for translationAndreas Jaeger2014-09-071-0/+25
| | | | | | | | | | | | | To start translation, we need to initially import the translation file - and place it at the proper place so that the usual CI scripts can handle it. The proper place is for all python projects $PROJECT/locale/$PROJECT.pot - see setup.cfg. Further imports will be done by the OpenStack Proposal bot. Change-Id: I29b9fe0c286d1f54c260bff0569ea3e4e8092c3c
* Merge "Work toward Python 3.4 support and testing"Jenkins2014-09-051-1/+1
|\
| * Work toward Python 3.4 support and testingJeremy Stanley2014-09-031-1/+1
| | | | | | | | Change-Id: I69f453e0e32491cd37d60c978b88d4b35b839d7f
* | Merge "warn against sorting requirements"Jenkins2014-09-052-0/+8
|\ \
| * | warn against sorting requirementsDoug Hellmann2014-09-032-0/+8
| |/ | | | | | | | | Change-Id: I64ae9191863564e278a35d42ec9cd743a233028e Addresses-Bug: #1365061
* | Update docs for first releaseDoug Hellmann2014-08-2610-36/+31
|/ | | | | | | | | | Ensure each exported class has a docstring. Add API to the sphinx docs. Fix a few formatting issues so the rendered docs look OK. Change-Id: Ieef7bae3783a084249169fe9b80ab17518eee15f
* Merge "expose middleware through oslo.middleware"Jenkins2014-08-242-1/+24
|\
| * expose middleware through oslo.middlewaregordon chung2014-08-212-1/+24
| | | | | | | | | | | | | | allow middleware to be called through oslo.middleware rather than through module. Change-Id: Iee535002a3bed221f85e97fb10528fbb9234dcb1
* | Merge "drop middleware suffix in class names"Jenkins2014-08-246-9/+9
|\ \ | |/
| * drop middleware suffix in class namesgordon chung2014-08-136-9/+9
| | | | | | | | | | | | | | as discussed in bp, we should drop the middleware suffix in class names to avoid redundancy. Change-Id: I60e1e84e817e24be9ad1d31381df95c93f7b7990
* | add doc generation supportgordon chung2014-08-152-0/+4
|/ | | | | | | we're missing sphinx requirements that are blocking doc tests. this patch adds this in so we can pass check Change-Id: Ieba4da849ce8abea10a3298df23a0b2145a0bd2e
* fix pep8 issuesgordon chung2014-07-221-2/+4
|
* Merge pull request #3 from berendt/fix_doc_hackinggord chung2014-07-221-2/+2
|\ | | | | Fixed syntax of the HACKING.rst file
| * Fixed syntax of the HACKING.rst fileChristian Berendt2014-07-221-2/+2
| |
* | Merge pull request #2 from berendt/enable_h305gord chung2014-07-221-2/+2
|\ \ | | | | | | Enable hacking check H305
| * | Enable hacking check H305Christian Berendt2014-07-221-2/+2
| |/ | | | | | | | | Hacking check H305 should not be ignored. It's used in other oslo project.
* | Merge pull request #1 from berendt/fix_doc_indexgord chung2014-07-221-6/+1
|\ \ | |/ |/| Cleaning up index.rst file
| * Cleaning up index.rst fileChristian Berendt2014-07-221-6/+1
|/ | | | Removed notes about the generation of the file and fixed the syntax.
* replace with oslo.i18ngordon chung2014-07-226-501/+38
|
* remove stray testsGordon Chung2014-06-246-318/+0
|
* initial oslo.middleware checkinGordon Chung2014-06-2423-27/+1084
|
* exported from oslo-incubator by graduate.shGordon Chung2014-06-2437-9/+634
|
* pep8: fixed multiple violationsIhar Hrachyshka2014-06-201-1/+1
| | | | | | | | | | | | | | | | | Fixed violations: * E128 continuation line under-indented for visual indent * E251 unexpected spaces around keyword / parameter equals * E265 block comment should start with '# ' * E713 test for membership should be 'not in' * F402 import shadowed by loop variable * H305 imports not grouped correctly * H307 like imports should be grouped together' * H402 one line docstring needs punctuation' * H703 Multiple positional placeholders Also enabled H803 check that didn't have any violations. Change-Id: I957ab273ddc61b02763d6b60b21d11ed4e73d472
* Use moxstubout and mockpatch from oslotestVictor Sergeyev2014-04-151-1/+1
| | | | | | | | | | Modules moxstubout and mockpatch from openstack/common/fixture/ are obsolete, so we should use them from oslotest library. Also oslotest depends on mock and mox, so we no longer need to specify them directly in test-requirements files Change-Id: I139133457cd73ee83537dead3446ee30d0ee5589
* Improve help stringsAndreas Jaeger2014-02-071-2/+2
| | | | | | | | | | Follow oslo.config style guide for help strings better to create more consistent help strings: * Capitalize first word of each help string * Finish help strings with "." * Improve wording, capitalization Change-Id: Ia9698807430d8b6b0862dfb8a7f8874703a88ff1
* Use oslotest instead of common test moduleVictor Sergeyev2014-04-154-9/+9
| | | | | | | | Module openstack.common.test is obsolete, so we should use oslotest library instead of it. Modified tests and common database code, new requirement added. Change-Id: I853e548f11a4c3785eaf75124510a6d789536634
* sizelimit: port to Python 3Cyril Roelandt2014-03-142-4/+5
| | | | | | | | | | | In the tests, use bytes for the request body, since that is what is used by webob in Python 3. In RequestBodySizeLimiter.__call__(), do not compare NoneType to an integer: it is forbidden in Python 3. Instead, properly handle the fact that req.content_lenght might be None. Change-Id: I179997789b9e2fcd3f3326e4d724e547c807f195
* Don't store the request ID value in middleware as class variableChris Buccella2014-03-101-6/+9
| | | | | | | | | | | | | | | The original version of the request_id middleware generates a request ID during process_request() and stores the value in a variable, so it can be attached as header in process_request(). This is pretty dangerous, since subsequent requests will overwrite this value, and the wrong request ID may be attached to some responses. This is particularly apparent when requests arrive in parallel. This change replaces process_request() and process_response() with an override of __call__(). This allows the generated req_id to be used in the response header without needing to save it as a class-level variable. Change-Id: I498859140ba113412c9d95d09f0c4c6b8650749c Closes-bug: #1289696
* Python 3: enable tests/unit/middleware/test_request_id.pyCyril Roelandt2014-03-131-1/+1
| | | | | | | In Python 3, webob will return bytes, so we need to fix generate_request_id() so that it also returns bytes. The behaviour is unchanged in Python 2. Change-Id: I389cf20e4c999c9bb576a42388497852f8ba27ec
* Update oslo log messages with translation domainsDoug Hellmann2014-01-081-3/+3
| | | | | | | | | | | | | Update the incubator code to use different domains for log messages at different levels. Update the import exceptions setting for hacking to allow multiple functions to be imported from gettextutils on one line. bp log-messages-translation-domain Change-Id: I6ce0f4a59438612ce74c46b3ee9398bef24c0c19
* Small edits on help stringsAndreas Jaeger2014-01-181-2/+2
| | | | | | | | | | | These were initially noted during import into the manuals at https://review.openstack.org/67502 Fixes include rework of text, missing or extra spaces, wrong capitalization and no sentence style capitalization. Change-Id: I56a47de73e0e494a6f770e29dae8065b398ef5af Co-Authored-By: Diane Fleming <diane.fleming@rackspace.com>
* Middleware to catch all error in WSGI pipelineAkihiro Motoki2013-12-092-0/+90
| | | | Change-Id: I6214b48923efe765dc87bc143fbb346efd0b17b3
* Use hacking import_exceptions for gettextutils._Joe Gordon2013-12-201-1/+1
| | | | | | | Instead of using # noqa every time gettextutils._ is used, add an exception in tox.ini Change-Id: Iafa8509a38596aac791bd809283f3bd75c638a60
* Middlelware to ensure request IDAkihiro Motoki2013-12-092-0/+75
| | | | | | | | | | | | | | The feature of the proposed middleware is simple: * Generate request-id for each REST request * Set the generated request-id to request environment * Add X-OpenStack-Request-Id header to API response to return request-id blueprint middleware-request-id Note that to use this middleware with Context, we need to change auth middlware so that request-id will be retreived from request env. Change-Id: Ic7967cd62e7b743343d70f751b9238339171e013
* middleware.sizelimit: stop importing wsgiJulien Danjou2013-12-041-2/+1
| | | | | | | This patches stops the sizelimit module to rely on the deprecated WSGI module. Change-Id: Ie804a74f833112f7d6d30f787f426d6f7ad0be2f
* Use six.iteritems to make dict work on Python2/3Chang Bo Guo2013-11-281-1/+2
| | | | | | | | | six.iteritems returns an iterator over dictionary‘s items. This replaces dictionary.iteritems() on Python 2 and dictionary.items() on Python 3. See http://pythonhosted.org/six/#six.iteritems Implements: blueprint make-python3-compatible Change-Id: I90be87979ebc7eccd11d66cd1eef16d9b2eb9fda
* Trivial: Make vertical white space after license header consistentNoorul Islam K M2013-11-283-0/+3
| | | | | | | | | Vertical white space between license header and the actual code is not consistent across files. It looks like majority of the files leaves a single blank line after license header. So make it consistent except for those exceptional cases where the actual code starts with a function or class definition. Change-Id: If6679ab19dc2d7a9df93e076db3019abc1e5b86b
* Remove vim headerJoe Gordon2013-10-113-6/+0
| | | | | | | | No need to set tabstop 189 times, this can be set in your vimrc file instead. Also if set incorrectly gate (pep8 check) will catch your mistakes. Change-Id: Ic6f0c0ef94e8194a5c121598305d1ec3c74e4843
* Remove uuidutils imports in oslo modulesZhongyue Luo2013-11-222-6/+8
| | | | | | | | | | | The only use of uuidutils in oslo-incubator is generate_uuid which could be replaced with uuid.uuid4(). Droping the dependency would help deprecating/removing uuidutils in the future. Partial-bug: #1253497 Change-Id: Ie0bc94e0b4aea6563f138c0f09c54c323ba23279
* Revert "Removes generate_uuid from uuidutils"Flavio Percoco2013-11-132-8/+6
| | | This reverts commit 571a78a4bb17a753972e5ef90b0bbdff727fcfa7
* Removes generate_uuid from uuidutilsZhongyue Luo2013-11-132-6/+8
| | | | | | | | As discussed at the summit, generating the UUID string seems trivial enough to not need a function. Each project should define its uuid generation helper function according to its required format. Change-Id: I2689a5d810e1b7663bc6b77385b2913844c70b9e
* Replace using tests.utils part1Sergey Kraynev2013-08-142-14/+18
| | | | | | | | | | It is the second step to replace using tests.utils with stack.common.test. In this patch first part of tests is changed for using openstack.common.test and added needed fixtures in test classes. Change-Id: Id95743059818a80af5bf1fab4ae1cee528b92809 bp: common-unit-tests
* Bump hacking to 0.7.0Zhongyue Luo2013-08-162-5/+4
| | | | | | Fixes H202, H602 errors Change-Id: Ic3045f15116d1d7a28b63bc94a0a341b9304ffdd
* middleware: code cleanupJulien Danjou2013-08-082-8/+1
| | | | | | The removed code doesn't serve anything. Change-Id: I04b0cf7abc465de0115345018d2157da67f6985c