tacker/tacker/tests
Hiromu Asahina 39925d1141 Remove deprecated attributes from context
The oslo.context emits a warning for attributes that are not listed in
[1] and considered to be deprecated. According to the warning message,
the policy file should be modified to use $(project_id)s instead of
$(tenant_id)s. Also, context.user is deprecated. We should remove lines
using context.user and use context.user_id only.

The following deprecation warnings are gone with the patch:

- context.py💯 DeprecationWarning: Policy enforcement is depending on
  the value of tenant_id. This key is deprecated. Please update your
  policy file to use the standard policy values.

- test_auth.py:75: DeprecationWarning: Property ‘user’ has moved to
  ‘user_id’ in version ‘2.6’ and will be removed in version ‘3.0’

[1] https://github.com/openstack/oslo.context/blob/master/oslo_context/context.py#L313-L327

Change-Id: Ib06cd0d54772d17838789943b6a09c581b899435
Closes-Bug: #1976219
2022-06-03 10:48:44 +09:00
..
common Remove test helpers for Python2 2020-10-19 12:11:40 +00:00
compliance Apply Robot Framework for testing 2022-03-18 04:30:45 +00:00
contrib Support for grant request with Synchronous response 2020-10-07 13:57:24 +09:00
etc Remove deprecated attributes from context 2022-06-03 10:48:44 +09:00
functional Implemented check on range end to fetch artifact 2022-05-17 15:02:29 +00:00
unit Remove deprecated attributes from context 2022-06-03 10:48:44 +09:00
var rename neutron/tests to tacker/tests 2014-07-04 18:20:50 +09:00
__init__.py Enable hacking check H104 2015-04-09 18:45:52 -07:00
base.py Update references to sys.version_info 2021-07-26 18:18:22 +05:30
constants.py Support feature to attach the existing volume 2021-01-28 13:11:03 +05:30
fake_notifier.py Move unit tests dir to tacker/tests/unit 2017-02-24 16:38:18 +08:00
post_mortem_debug.py Cleanup vim settings 2016-03-28 13:03:56 +02:00
tools.py Update hacking 2016-01-02 17:30:55 +01:00
utils.py Merge "Change test utils to use absolute path" 2022-02-17 07:51:06 +00:00
uuidsentinel.py Improve code coverage of openstack module 2019-06-12 11:20:00 +00:00