glance/glance/tests/unit/v2
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
..
__init__.py Adding versioned namespaces in test dir 2012-03-25 13:28:45 -07:00
test_discovery_image_import.py Remove deprecated 'enable_image_import' option 2018-06-07 08:16:43 +01:00
test_discovery_stores.py Unit/Functional tests for multi store support 2018-08-01 08:57:56 +00:00
test_image_actions_resource.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
test_image_data_resource.py Fix DeprecationWarnings for RequestContext.tenant/user usage 2019-02-06 09:59:36 -05:00
test_image_members_resource.py Fix member create to handle unicode characters 2017-12-26 19:42:05 +00:00
test_image_tags_resource.py Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
test_images_resource.py Fix DeprecationWarnings for RequestContext.tenant/user usage 2019-02-06 09:59:36 -05:00
test_metadef_resources.py Merge "Properly validate metadef objects" 2017-12-01 08:11:00 +00:00
test_registry_api.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
test_registry_client.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00
test_schemas_resource.py Add multi-store support 2018-08-01 08:53:47 +00:00
test_tasks_resource.py Fix DeprecationWarnings for RequestContext.tenant/user usage 2019-02-06 09:59:36 -05:00