neutron-lbaas/neutron_lbaas/tests/unit/db/loadbalancer
Michael Johnson 4099ed8584 Fix proxy extension for neutron RBAC
Neutron is looking for 'tenant_id' in the response from the proxy plugin.
This patch makes sure the 'project_id' returned from octavia is copied over
to the 'tenant_id' in the response to neutron or assigns the one from the
context.

This patch also adapts Octavia's 403 Forbidden errors to neutron's 404 [1].
[1] https://docs.openstack.org/neutron/pike/contributor/internals/ \
    policy.html#request-authorization

Neutron is also returning a 404 instead of a status "DELETED". This
adjusts that.

Neutron/tempest will ask for the tenant_id field - replace this with
project_id.

Handle 403 Forbidden

Fixes bug to not pass on empty string to Octavia

Story: 2002602
Task: 22220

Change-Id: I840b5e2e8a95a4b3e166db9f9aa44590441aa7b6
2018-08-09 15:04:37 +02:00
..
__init__.py Fixing the tests to run again 2014-12-12 01:55:47 -06:00
test_db_loadbalancerv2.py Merge "Improve speed of listing from DB" 2018-07-06 17:02:18 +00:00
test_proxy_plugin.py Fix proxy extension for neutron RBAC 2018-08-09 15:04:37 +02:00
util.py Octavia Proxy Plugin 2017-12-05 00:49:09 +00:00