diff options
author | Lance Bragstad <lbragstad@gmail.com> | 2018-06-28 20:31:27 +0000 |
---|---|---|
committer | Lance Bragstad <lbragstad@gmail.com> | 2018-07-09 16:46:57 +0000 |
commit | 775641a5fc549c20be37cf862deca394bf7f2d21 (patch) | |
tree | 78c0c0ae195cb64b71047d63ee369dc8ea0416b6 /test-requirements.txt | |
parent | 13a4e789bcf5d1e8bb67f92c866355f180260df9 (diff) | |
download | oslo-policy-775641a5fc549c20be37cf862deca394bf7f2d21.tar.gz |
Teach Enforcer.enforce to deal with context objects
The ``creds`` dictionary passed into oslo.policy's enforce() method
assumes a lot of the same values already specified by oslo.context
RequestContext objects.
This commit teaches enforce() to handle being passed an instance of
a RequestContext object, and populate credential values accordingly.
Change-Id: Ia74bf6c40b1e05a1c958f4325e00f68be28d91b9
Closes-Bug: 1779172
Diffstat (limited to 'test-requirements.txt')
-rw-r--r-- | test-requirements.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test-requirements.txt b/test-requirements.txt index d8db8f7..aea29ba 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -5,6 +5,7 @@ hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0 oslotest>=3.2.0 # Apache-2.0 requests-mock>=1.1.0 # Apache-2.0 stestr>=2.0.0 # Apache-2.0 +oslo.context>=2.21.0 # Apache-2.0 # computes code coverage percentages coverage!=4.4,>=4.0 # Apache-2.0 |