summaryrefslogtreecommitdiff
path: root/oslo_middleware/tests/test_request_id.py
Commit message (Collapse)AuthorAgeFilesLines
* Set global_request_id if passed in as X-OpenStack-Request-ID.Sean Dague2017-05-231-0/+41
| | | | | | | | If an inbound header that validates against the regex ``req-$uuid`` is passed in, we'll set it where oslo.context could later read it. This creates a mechanism for parents to pass their request-id to children. Change-Id: I5c5268e8680392395fbe04efe0124575ad8db468
* Allow compatibility headers for request_idSean Dague2017-05-231-0/+26
| | | | | | | | | | | | We discovered that Nova is using a local version of the request_id header code because it's x-compute-request-id predates x-openstack-request-id, and things were never migrated after the oslo code was extracted. In order to let Nova use the base code (which may become more complicated with inbound request-id setting) we need to support a compat headers field, which is additional http header names that should be set with the request-id value. Change-Id: I18a92f8bf2f85fcf30d32be68bae58f64b135df0
* Fix parameters of assertEqual are misplacedyan.haifeng2016-07-231-1/+1
| | | | | | | | | | | | Many assertEqual sentences don't follow assertEqual(expected, actual), These misplaces have 2 impacts: 1, giving confusing messages when some tests failed. 2, mislead other developers, new test modules may follow these wrong pattern. This patch fix all of them. Change-Id: I901e87c52aac317c5cd9942aa1cd35a067aaa94d Closes-Bug: #1604213
* Support Unicode request_id on Python 33.1.0Victor Stinner2015-11-271-2/+4
| | | | | | | | The oslo.context change If48ee7f4d1c113f1f26b3b1698c6b055807b950f will change request_id type on Python 3 from bytes to str. This change prepares Neutron for this change. Change-Id: I872c268ef5f17dc2c1fe0ce8aa7e8af4ebc1d757
* Move files out of the namespace package0.3.0Doug Hellmann2015-01-061-0/+37
Move the public API out of oslo.middleware to oslo_middleware. Retain the ability to import from the old namespace package for backwards compatibility for this release cycle. bp/drop-namespace-packages Change-Id: If88c65c82b64f096a02f7ec62e019aea4de2f9d3