| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I9d7047152778a48d71fdd9a3d74dfdeca9e2d759
|
|
|
|
| |
Change-Id: I344731dfb898d4d53461e4d9be6c27ad0c752274
|
|
|
|
| |
Change-Id: I803d0f99ecfef08f283bbfdee04de7896a0e8530
|
|
|
|
| |
Change-Id: I2b8fb2370b8ab4cb8d7b1b98fd7a0088624e60ff
|
|
|
|
| |
Change-Id: Ia6743a86accc2741a235e05a717ff408c092e471
|
|
|
|
| |
Change-Id: I6ba0a580547d52534517c50a2367ee111d0f0aef
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I69f453e0e32491cd37d60c978b88d4b35b839d7f
|
|\ \ |
|
| |/
| |
| |
| |
| | |
Change-Id: I64ae9191863564e278a35d42ec9cd743a233028e
Addresses-Bug: #1365061
|
|/
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
allow middleware to be called through oslo.middleware rather than
through module.
Change-Id: Iee535002a3bed221f85e97fb10528fbb9234dcb1
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| | |
as discussed in bp, we should drop the middleware suffix in class
names to avoid redundancy.
Change-Id: I60e1e84e817e24be9ad1d31381df95c93f7b7990
|
|/
|
|
|
|
|
| |
we're missing sphinx requirements that are blocking doc tests. this
patch adds this in so we can pass check
Change-Id: Ieba4da849ce8abea10a3298df23a0b2145a0bd2e
|
| |
|
|\
| |
| | |
Fixed syntax of the HACKING.rst file
|
| | |
|
|\ \
| | |
| | | |
Enable hacking check H305
|
| |/
| |
| |
| |
| | |
Hacking check H305 should not be ignored. It's used in other oslo
project.
|
|\ \
| |/
|/| |
Cleaning up index.rst file
|
|/
|
|
| |
Removed notes about the generation of the file and fixed the syntax.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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 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
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Change-Id: I6214b48923efe765dc87bc143fbb346efd0b17b3
|
|
|
|
|
|
|
| |
Instead of using # noqa every time gettextutils._ is used, add an
exception in tox.ini
Change-Id: Iafa8509a38596aac791bd809283f3bd75c638a60
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
This patches stops the sizelimit module to rely on the deprecated WSGI
module.
Change-Id: Ie804a74f833112f7d6d30f787f426d6f7ad0be2f
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
| |
This reverts commit 571a78a4bb17a753972e5ef90b0bbdff727fcfa7
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Fixes H202, H602 errors
Change-Id: Ic3045f15116d1d7a28b63bc94a0a341b9304ffdd
|
|
|
|
|
|
| |
The removed code doesn't serve anything.
Change-Id: I04b0cf7abc465de0115345018d2157da67f6985c
|