summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ensure we reset contexts when fixture is used0.2.0Sean Dague2015-03-052-1/+27
| | | | | | | | | | | | | | 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
* Activate pep8 check that _ is importedJames Carey2014-12-111-1/+0
| | | | | | | | | | 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
* Workflow documentation is now in infra-manual0.1.0Jeremy Stanley2014-12-051-4/+3
| | | | | | | Replace URLs for workflow documentation to appropriate parts of the OpenStack Project Infrastructure Manual. Change-Id: Ief329a52c5d76089b528ddf2f5e6de5e38702bec
* Documentation cleanupDoug Hellmann2014-11-199-28/+12
| | | | | | | | | Tidy up filenames, layout, and other minor issues with the documentation before our first release. bp/graduate-oslo-context Change-Id: Ib284bbdb50f868b232abc050311ddd5a9d9bde15
* Add ClearRequestContext fixtureDoug Hellmann2014-11-195-9/+70
| | | | | | | | | 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
* Cache the current context for the threadDoug Hellmann2014-11-192-2/+62
| | | | | | | | | 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
* Add docstring to get_admin_context()Doug Hellmann2014-11-191-0/+1
| | | | | | Document public API function Change-Id: I445076350ba55a76bc71956b8aa1d14929a83a13
* Change instance_uuid to resource_uuidDoug Hellmann2014-11-192-6/+6
| | | | | | | | | Use an application-agnostic term for the resource the context is attached to. bp/app-agnostic-logging-parameters Change-Id: I548120770d0f11a2af56f07d0902433a8c7c98fe
* Better information in the READMEDavanum Srinivas2014-11-191-5/+7
| | | | Change-Id: I51f8d6626ce1623f043a896cd0cc82478512f908
* Generate better documentation for the moduleDavanum Srinivas2014-11-197-20/+40
| | | | Change-Id: Ibad798b09ac1227065173b3b1843cc3b6bfbaf80
* Move out of the oslo namespace packageDoug Hellmann2014-11-147-25/+9
| | | | | | | | | | 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
* get test to actually runDavanum Srinivas2014-11-051-0/+0
|
* fix links and requirements to latest versionsDavanum Srinivas2014-11-053-6/+8
|
* Make the unit test run properly - fix importDavanum Srinivas2014-11-052-29/+1
|
* exported from oslo-incubator by graduate.shDavanum Srinivas2014-11-0529-0/+609
|
* Merge "Add a RequestContext.from_dict method"Jenkins2014-06-192-0/+43
|\
| * Add a RequestContext.from_dict methodThomas Herve2014-06-172-0/+43
|/ | | | | | | This adds a new methods allowing the creation of a RequestContext from a dict, useful when passing it serialized. Change-Id: Id66aba0c600896521a4a236e0a97859735419357
* Merge "Use oslotest instead of common test module"Jenkins2014-04-161-2/+3
|\
| * Use oslotest instead of common test moduleVictor Sergeyev2014-04-151-2/+3
|/ | | | | | | | 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
* Merge "Python 3: enable tests/unit/middleware/test_request_id.py"Jenkins2014-04-071-1/+1
|\
| * 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
* Add model_query() to db.sqlalchemy.utils moduleVictor Sergeyev2014-02-211-0/+11
| | | | | | | | | | 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
* Merge "Adding domain to context and log"Jenkins2013-12-021-2/+19
|\
| * Adding domain to context and logDavanum Srinivas2013-12-021-2/+19
|/ | | | | | | | | 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
* Remove vim headerJoe Gordon2013-11-252-4/+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-221-3/+2
| | | | | | | | | | | 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-131-2/+3
| | | | This reverts commit 571a78a4bb17a753972e5ef90b0bbdff727fcfa7
* Removes generate_uuid from uuidutilsZhongyue Luo2013-11-131-3/+2
| | | | | | | | 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
* Merge "Adding instance_uuid to context and log"Jenkins2013-09-201-2/+5
|\
| * Adding instance_uuid to context and logMichael Basnight2013-09-201-2/+5
|/ | | | | | fixes bug 1220052 Change-Id: I8164e671d721d5cb482cb3a895ed1ff7edbdf1b9
* Merge "Replace using tests.utils with openstack.common.test"Jenkins2013-08-161-2/+2
|\
| * Replace using tests.utils with openstack.common.testAlexander Gorodnev2013-08-091-2/+2
|/ | | | | | | | | 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
* Merge "Fix bad default for show_deleted"Jenkins2013-07-022-1/+5
|\
| * Fix bad default for show_deletedDavanum Srinivas2013-07-012-1/+5
|/ | | | | | | | replace "no" (string) with False (boolean). Added a test case Fixes LP# 1195511 Change-Id: Ib72689b11d747508850ccab8ef1d73727da2caa6
* Merge "Enable hacking H404 test."Jenkins2013-06-111-1/+2
|\
| * Enable hacking H404 test.Dina Belova2013-06-111-1/+2
|/ | | | | | H404 - multi line docstring should start with a summary. Change-Id: I2099e1ee81ff9657f7a07401b8e8f3327d03bdbd
* Merge "Replaces the standard uuid with common in the context module"Jenkins2013-04-201-2/+3
|\
| * Replaces the standard uuid with common in the context moduleZhongyue Luo2013-04-091-2/+3
|/ | | | | | | Common modules can now safely import other common modules since update.py will automatically install dependencies. Change-Id: I9fca5959581ae4f4ab3da20caabbe9c0d53247b6
* Merge "Fix Copyright Headers - Rename LLC to Foundation"Jenkins2013-03-122-2/+2
|\
| * Fix Copyright Headers - Rename LLC to FoundationDavanum Srinivas2013-03-112-2/+2
|/ | | | | | One code change, rest are in headers Change-Id: I73f59681358629e1ad74e49d3d3ca13fcb5c2eb1
* Merge "Fix inconsistency with auth_tok/auth_token"Jenkins2013-03-111-3/+3
|\
| * Fix inconsistency with auth_tok/auth_tokenDavanum Srinivas2013-03-101-3/+3
|/ | | | | | | | Switch to using auth_token instead of auth_ok Fixes LP# 1152826 Change-Id: I56569c1fa8f29b0474440c40644729d436d41c7b
* Merge "Replace direct use of testtools BaseTestCase."Jenkins2013-01-281-3/+2
|\
| * Replace direct use of testtools BaseTestCase.Monty Taylor2013-01-241-3/+2
| | | | | | | | | | | | | | | | | | 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
* | Merge "Use testtools as test base class."Jenkins2013-01-281-2/+2
|\ \ | |/
| * Use testtools as test base class.Monty Taylor2013-01-241-2/+2
|/ | | | | | | | | | | | | 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
* Merge "Move get_context_from_function_and_args() to context.py"Jenkins2012-07-061-0/+15
|\
| * Move get_context_from_function_and_args() to context.pyAndrew Bogott2012-07-031-0/+15
|/ | | | | | | | | 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
* Merge "Added dictify() and uuids to the common request context."Jenkins2012-06-211-1/+27
|\
| * Added dictify() and uuids to the common request context.Andrew Bogott2012-06-201-1/+27
|/ | | | | | | | 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