glance/glance/api
Matt Riedemann 88a8ad7823 Fix DeprecationWarnings for RequestContext.tenant/user usage
RequestContext.tenant and user fields are deprecated in favor
of project_id and user_id respectively.

This change modifies the glance.context.RequestContext constructor
to transition usage of tenant/user to project_id/user_id until
all tests are moved over to the new attributes. Runtime usage of
the old fiels is updated.

To prevent new code from using the deprecated fields, a warnings
filter is added which will make tests fail if they hit code using
the old fields.

Co-Authored-By: Abhishek Kekane <akekane@redhat.com>
Change-Id: I351380840308a24769ece93abc6d1a9a6d6aa06f
2019-02-06 09:59:36 -05:00
..
middleware Add API version 2.8 2018-08-07 16:39:06 +01:00
v1 Remove Images API v1 entry points 2018-07-13 10:21:49 +01:00
v2 Fix DeprecationWarnings for RequestContext.tenant/user usage 2019-02-06 09:59:36 -05:00
__init__.py Remove Images API v1 entry points 2018-07-13 10:21:49 +01:00
authorization.py Multihash implementation for Glance 2018-07-31 21:28:38 -04:00
cached_images.py Add logging when policies forbid an action 2015-04-15 17:59:37 +02:00
common.py Fix DeprecationWarnings for RequestContext.tenant/user usage 2019-02-06 09:59:36 -05:00
policy.py Move 'upload_image' policy check to the controller 2017-12-11 19:58:18 +05:30
property_protections.py hacking: upgrade to 0.9.x serie 2014-10-06 14:41:03 +02:00
versions.py Add API version 2.8 2018-08-07 16:39:06 +01:00