summaryrefslogtreecommitdiff
path: root/designate/tests/test_api/test_v2/test_floatingips.py
diff options
context:
space:
mode:
authorMichael Johnson <johnsomor@gmail.com>2023-03-28 00:16:32 +0000
committerMichael Johnson <johnsomor@gmail.com>2023-03-31 00:38:50 +0000
commitc2e51939b43afcdc20e24f86595655bf588a81a0 (patch)
tree90ac4c99bd578807781eacb5a09724300a2f50f9 /designate/tests/test_api/test_v2/test_floatingips.py
parentb8ec3b450b5242c28f19d3e8057c5573807a4954 (diff)
downloaddesignate-c2e51939b43afcdc20e24f86595655bf588a81a0.tar.gz
Update designate for RBAC "direction change"
The RBAC goal has changed[1] and system scope is no longer going to be used. This patch updates Designate to align to this change in direction by removing the system scope from the policies. It also updates the functional tests to be ready for the switch to using the new keystone roles by default. [1] https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html#direction-change Depends-On: https://review.opendev.org/c/openstack/designate-tempest-plugin/+/879111 Change-Id: I1937e215dbd072b0a095df659c75f17a3f48c937
Diffstat (limited to 'designate/tests/test_api/test_v2/test_floatingips.py')
-rw-r--r--designate/tests/test_api/test_v2/test_floatingips.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/designate/tests/test_api/test_v2/test_floatingips.py b/designate/tests/test_api/test_v2/test_floatingips.py
index f7cf20f1..546f3bee 100644
--- a/designate/tests/test_api/test_v2/test_floatingips.py
+++ b/designate/tests/test_api/test_v2/test_floatingips.py
@@ -202,7 +202,8 @@ class ApiV2ReverseFloatingIPTest(ApiV2TestCase):
response = self.client.patch_json(
'/reverse/floatingips/%s' % ":".join([fip['region'], fip['id']]),
fixture.to_dict(),
- headers={'X-Test-Tenant-Id': 'tenant'})
+ headers={'X-Test-Tenant-Id': 'tenant',
+ 'X-Test-Role': 'member'})
self.assertEqual(202, response.status_int)
self.assertEqual('application/json', response.content_type)