glance/glance
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
..
api Fix DeprecationWarnings for RequestContext.tenant/user usage 2019-02-06 09:59:36 -05:00
async_ Correct typo in config option choices 2018-12-21 09:29:17 -05:00
cmd Implement scaffolding for upgrade checks 2018-12-05 16:43:00 -05:00
common Merge "Add missing ws seperator between words" 2019-01-08 04:44:41 +00:00
db Open Stein for data migrations 2019-01-21 18:00:57 -05:00
domain py3: fix recursion issue under py37 2018-11-02 11:02:38 +00:00
hacking Make i18n log translation functions as no-op 2017-06-21 16:14:15 +07:00
image_cache Remove Images API v1 entry points 2018-07-13 10:21:49 +01:00
locale Imported Translations from Zanata 2018-12-05 12:14:47 +00:00
quota Make QuotaImageTagsProxy deep-copyable 2018-12-18 21:16:19 +00:00
registry Fix DeprecationWarnings for RequestContext.tenant/user usage 2019-02-06 09:59:36 -05:00
tests Fix DeprecationWarnings for RequestContext.tenant/user usage 2019-02-06 09:59:36 -05:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Fix DeprecationWarnings for RequestContext.tenant/user usage 2019-02-06 09:59:36 -05:00
gateway.py Fix for Image members not generating notifications 2016-01-25 04:50:58 -08:00
i18n.py Make i18n log translation functions as no-op 2017-06-21 16:14:15 +07:00
location.py Add multi-store support 2018-08-01 08:53:47 +00:00
notifier.py Fix DeprecationWarnings for RequestContext.tenant/user usage 2019-02-06 09:59:36 -05:00
opts.py Merge "Provision to add new config options in sample config file" 2018-11-20 06:14:01 +00:00
schema.py Import i18n functions directly 2015-12-07 18:20:43 +03:00
scrubber.py Add multi-store support 2018-08-01 08:53:47 +00:00
version.py Remove vim header 2014-01-14 16:03:28 +00:00