glance/glance/tests/functional/db
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
..
migrations Multihash implementation for Glance 2018-07-31 21:28:38 -04:00
__init__.py Updates OpenStack LLC with OpenStack Foundation 2013-02-17 19:19:43 -08:00
base.py Fix DeprecationWarnings for RequestContext.tenant/user usage 2019-02-06 09:59:36 -05:00
base_metadef.py Fix order of arguments in assertEqual 2015-09-16 02:55:33 -07:00
test_migrations.py Use oslo_db.sqlalchemy.test_fixtures 2018-02-19 11:45:23 -05:00
test_registry.py Separate out functional tests 2018-01-22 10:29:34 -06:00
test_rpc_endpoint.py Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
test_simple.py Remove usage of parameter enforce_type 2017-05-31 14:32:20 +08:00
test_sqlalchemy.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00