This fixes the case that when a request looking like
http://example.com/resource/volume
and containing a token comes to the proxy, we translate it to
http://cinder.local/volume/<project_id>
This happens because we populate the project_id information of
a request either from the url, or from the token.
Change-Id: Ie83fec4910eff750ba15f5485428c23ec3505e3b
For a better developer experience, accomplish removal of six.b and
six.u by changing how Werkzeug response objects are handled in the
relevant unit tests.
Change-Id: Iac36e5fd9eb7ef78e6c8e9e8bff1c596e2e5823e
This introduces preliminary support for extensions.
Extensions are registered to routes, and if the
request matches the registered route they will be
called to handle the request and the response.
The interface is still not finalized and will
progress as more extensions with their different
requirements are added.
Also included dependency on oslo_serialization for
loading the json response. Follow up patch will
change all instances of json.loads to
jsonutils.loads
Change-Id: I9c573ce1d4ebe85c07c8ff219f384e3c6c67b39a
This tentatively adds support for that API by letting the
microversion header OpenStack-API-Version go through. Also
added a few unit tests just to check that we're properly routing
the messages path.
Change-Id: Ie21b15ee5d33085e0515a129ea4ef89836ca8d57
Also some mild refactoring in proxy.py. Now unversioned/unactioned calls
can go through without authentication. Renamed self.detailed to the more
descriptive strip_details.
Co-Authored-By: Kristi Nikolla <knikolla@bu.edu>
Change-Id: I5c3a0ab7c020fba480319f11cd1637d5c1f07e11
Added some global session_fixtures to the BaseTest and migrated
test_volumes to use those. Also added url building helper
function.
Change-Id: I655183f7286a046cd272092bd3e5698a1160d029
Replace hard-coded samples with the samples from the samples
module. Add more samples/features to samples module if necessary.
Change-Id: I500b4b23f08358dc16f49ff0ad45e77e6d04f18b
Add JSON sample files in the new samples directory. Use these
sample files in the samples module. Refactor tests to use new
samples.
Change-Id: I414c62ddbe5ed3fc7c4d9474a4dad5142af2d51b
changes the structure of unit tests directory by seperating
image tests from volume tests. Created a base for common
classes used by both.
Change-Id: I0e62b25f33d9d30051808927182081dbdc24eced