From 873cbf82f6cfc47ec618eb799351f03dd0b72683 Mon Sep 17 00:00:00 2001 From: Martin Chacon Piza Date: Wed, 6 Apr 2022 11:04:08 +0200 Subject: [PATCH] Rename tenant with project_id Since oslo.context=4.0.0 Feb 3, 2022 the deprecated argument tenant was removed [1] - Bump docutils in lower-constraints and test-requirements [1] https://opendev.org/openstack/oslo.context/commit/f4cbe4c296f4dd23c451a5804a70f639cd8976d6 Change-Id: I703d49f5e5870bf45030fc5502749e197aae3a3b --- lower-constraints.txt | 2 +- monasca_common/tests/policy/test_policy.py | 4 ++-- test-requirements.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lower-constraints.txt b/lower-constraints.txt index 6fae158d..62bcce90 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -4,7 +4,7 @@ bandit==1.4.0 confluent-kafka==1.3.0 coverage==4.0 debtcollector==1.2.0 -docutils==0.11 +docutils==0.14 extras==1.0.0 fixtures==3.0.0 future==0.16.0 diff --git a/monasca_common/tests/policy/test_policy.py b/monasca_common/tests/policy/test_policy.py index a9ffae14..4729d932 100644 --- a/monasca_common/tests/policy/test_policy.py +++ b/monasca_common/tests/policy/test_policy.py @@ -28,7 +28,7 @@ class PolicyFileTestCase(base.BaseTestCase): def setUp(self): super(PolicyFileTestCase, self).setUp() self.context = context.RequestContext(user='fake', - tenant='fake', + project_id='fake', is_admin=False) self.target = {} @@ -83,7 +83,7 @@ class PolicyTestCase(base.BaseTestCase): policy_engine.init() self.context = context.RequestContext(user='fake', - tenant='fake', + project_id='fake', is_admin=False) policy_engine._ENFORCER.register_defaults(rules) self.target = {} diff --git a/test-requirements.txt b/test-requirements.txt index 2940b864..9c95d722 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -15,4 +15,4 @@ requests-mock>=1.2.0 # Apache-2.0 testrepository>=0.0.18 # Apache-2.0/BSD testscenarios>=0.4 # Apache-2.0/BSD testtools>=2.2.0 # MIT -docutils>=0.11 +docutils>=0.14