| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously using the ClearRequestContext fixture only reset contexts
on fixture teardown. If *all* tests in a test suite use this fixture,
this is fine. However if any tests do not, it means you might start
with a carry over context from previous tests.
Using this fixture means you really wanted a clean slate, so fix it so
that you get a clean state when you get started as well as when you
finish.
Change-Id: I5e6f7bc2866fe66f269c7d5e1f36c711151489c2
Closes-Bug: #1428728
|
|
|
|
|
|
|
|
|
|
| |
Currently translatable messages are not used, so there are no uses
of _.
This will ensure if _ is used in the future pep8 won't assume
it is provided as a builtin.
Change-Id: Iad8357364ad88961c280096480e8521d873f7c7f
|
|
|
|
|
|
|
| |
Replace URLs for workflow documentation to appropriate parts of the
OpenStack Project Infrastructure Manual.
Change-Id: Ief329a52c5d76089b528ddf2f5e6de5e38702bec
|
|
|
|
|
|
|
|
|
| |
Tidy up filenames, layout, and other minor issues with the documentation
before our first release.
bp/graduate-oslo-context
Change-Id: Ib284bbdb50f868b232abc050311ddd5a9d9bde15
|
|
|
|
|
|
|
|
|
| |
Add a fixture class for use in tests to provide a way to flush the
cached RequestContext without exposing how that is stored.
bp/graduate-oslo-context
Change-Id: I27dd50a61d364e1698823629e2676c10ced50af3
|
|
|
|
|
|
|
|
|
| |
Use a threading.local instance to store the current RequestContext, with
an option to not overwrite an existing context.
bp/graduate-oslo-context
Change-Id: I000cb13392ee21258dc2a91683294dc9ff2aeb8f
|
|
|
|
|
|
| |
Document public API function
Change-Id: I445076350ba55a76bc71956b8aa1d14929a83a13
|
|
|
|
|
|
|
|
|
| |
Use an application-agnostic term for the resource the context is
attached to.
bp/app-agnostic-logging-parameters
Change-Id: I548120770d0f11a2af56f07d0902433a8c7c98fe
|
|
|
|
| |
Change-Id: I51f8d6626ce1623f043a896cd0cc82478512f908
|
|
|
|
| |
Change-Id: Ibad798b09ac1227065173b3b1843cc3b6bfbaf80
|
|
|
|
|
|
|
|
|
|
| |
Move the public API out of oslo.context to oslo_context. Since this
library has not been released, we do not need to retain the old interface
for compatibility.
bp/drop-namespace-packages
Change-Id: I19adf862596abae0b034e81472114093425782f8
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
|/
|
|
|
|
|
| |
This adds a new methods allowing the creation of a RequestContext from a
dict, useful when passing it serialized.
Change-Id: Id66aba0c600896521a4a236e0a97859735419357
|
|\ |
|
|/
|
|
|
|
|
|
| |
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 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
|
|
|
|
|
|
|
|
|
|
| |
Added query helper - model_query() function.
There are similar functions in Nova, Cinder, and other projects, so it
makes sense to move this helper to common db code.
POC in Nova - Ic14d2214c8ce16d6b22c6f31511aa6c0838aa17a
Change-Id: I86e78eadc5a76d47452dfefbd4faef697d613b50
|
|\ |
|
|/
|
|
|
|
|
|
|
| |
Add support for upcoming "domain" concept in Keystone V3 API in
both logging and context.
Closes-Bug: #1248936
Implements: blueprint add-domain-info-to-context
Change-Id: Ic2cf3e52cfcc0b8adccdf9c59afaa4014708a303
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
|/
|
|
|
|
| |
fixes bug 1220052
Change-Id: I8164e671d721d5cb482cb3a895ed1ff7edbdf1b9
|
|\ |
|
|/
|
|
|
|
|
|
|
| |
It is the first step to replace using tests.utils with openstack.common.test.
All these tests don't use mock objects, stubs, config files and use only
BaseTestCase class.
Change-Id: I511816b5c9e6c5c34ebff199296ee4fc8b84c672
bp: common-unit-tests
|
|\ |
|
|/
|
|
|
|
|
|
| |
replace "no" (string) with False (boolean). Added a test case
Fixes LP# 1195511
Change-Id: Ib72689b11d747508850ccab8ef1d73727da2caa6
|
|\ |
|
|/
|
|
|
|
| |
H404 - multi line docstring should start with a summary.
Change-Id: I2099e1ee81ff9657f7a07401b8e8f3327d03bdbd
|
|\ |
|
|/
|
|
|
|
|
| |
Common modules can now safely import other common modules
since update.py will automatically install dependencies.
Change-Id: I9fca5959581ae4f4ab3da20caabbe9c0d53247b6
|
|\ |
|
|/
|
|
|
|
| |
One code change, rest are in headers
Change-Id: I73f59681358629e1ad74e49d3d3ca13fcb5c2eb1
|
|\ |
|
|/
|
|
|
|
|
|
| |
Switch to using auth_token instead of auth_ok
Fixes LP# 1152826
Change-Id: I56569c1fa8f29b0474440c40644729d436d41c7b
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/ |
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
|/
|
|
|
|
|
|
|
| |
Word on the street is that exception.py may soon be deprecated,
and context.py is a better place anyway.
(Also removed an import of utils.py because /it/ imports exception.py.)
Change-Id: I856fc6f4558cc01ddca350ee4cfd4684db47475b
|
|\ |
|
|/
|
|
|
|
|
|
| |
This makes the common context similar enough to the nova
context that we can use it for annotating logs like
we do in nova.
Change-Id: I622c76f2e3013e4ff5e8c228d197a55918672447
|